[Git][NTPsec/ntpsec][master] ci: use parallel:matrix on "*-refclocks" jobs

Matt Selsky (@selsky) gitlab at mg.gitlab.com
Wed Oct 28 19:44:10 UTC 2026



Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
61eaa902 by Matt Selsky at 2026-10-27T23:21:06-04:00
ci: use parallel:matrix on "*-refclocks" jobs

Several *-refclocks jobs differed only in image, so build them from a
.refclocks template with one matrix for the required distros and one,
with allow_failure, for alpine-edge, debian-unstable and ubuntu-devel.
Jobs are now named "refclocks: [<distro>]".

alpine, alpine-edge and fedora-latest now pass --pyshebang like the
others; it only affects installed scripts, and these jobs never install.

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -38,6 +38,12 @@ include:
   tags:
     - gitlab-org
 
+.refclocks:
+  <<: *job_definition
+  image: $IMAGE_REGISTRY/$DISTRO
+  script:
+    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
+
 prisoner-0:
   <<: *job_definition
   image: $IMAGE_REGISTRY/alpine
@@ -47,6 +53,33 @@ prisoner-0:
     - DESTDIR=build/prison python3 ./waf install uninstall
     - DESTDIR=../prison python3 ./waf install uninstall
 
+refclocks:
+  extends: .refclocks
+  parallel:
+    matrix:
+      - DISTRO: [
+          alpine,
+          centos-latest,
+          debian-stable,
+          debian-stable-mdns,
+          debian-testing,
+          fedora-latest,
+          rocky,
+          ubuntu-latest,
+          ubuntu-rolling,
+        ]
+
+refclocks-unstable:
+  extends: .refclocks
+  allow_failure: true
+  parallel:
+    matrix:
+      - DISTRO: [
+          alpine-edge,
+          debian-unstable,
+          ubuntu-devel,
+        ]
+
 alpine-basic:
   <<: *job_definition
   image: $IMAGE_REGISTRY/alpine
@@ -56,12 +89,6 @@ alpine-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-alpine-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/alpine
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build
-
 alpine-edge-basic:
   allow_failure: true
   <<: *job_definition
@@ -72,13 +99,6 @@ alpine-edge-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-alpine-edge-refclocks:
-  allow_failure: true
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/alpine-edge
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build
-
 # AsciiDoc-3-Fedora:
 #   <<: *job_definition
 #   image: fedora
@@ -138,12 +158,6 @@ debian-stable-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-debian-stable-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/debian-stable
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 debian-testing-basic:
   <<: *job_definition
   image: $IMAGE_REGISTRY/debian-testing
@@ -153,12 +167,6 @@ debian-testing-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-debian-testing-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/debian-testing
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 debian-unstable-basic:
   allow_failure: true
   <<: *job_definition
@@ -169,13 +177,6 @@ debian-unstable-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-debian-unstable-refclocks:
-  allow_failure: true
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/debian-unstable
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 ubuntu-latest-basic:
   <<: *job_definition
   image: $IMAGE_REGISTRY/ubuntu-latest
@@ -185,12 +186,6 @@ ubuntu-latest-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-ubuntu-latest-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/ubuntu-latest
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 ubuntu-devel-basic:
   <<: *job_definition
   allow_failure: true
@@ -202,13 +197,6 @@ ubuntu-devel-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-ubuntu-devel-refclocks:
-  <<: *job_definition
-  allow_failure: true
-  image: $IMAGE_REGISTRY/ubuntu-devel
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 ubuntu-rolling-basic:
   <<: *job_definition
   image: $IMAGE_REGISTRY/ubuntu-rolling
@@ -218,12 +206,6 @@ ubuntu-rolling-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-ubuntu-rolling-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/ubuntu-rolling
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 freebsd-basic:
   <<: *job_definition
   script:
@@ -254,12 +236,6 @@ centos-latest-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-centos-latest-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/centos-latest
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 rocky-basic:
   <<: *job_definition
   image: $IMAGE_REGISTRY/rocky
@@ -268,12 +244,6 @@ rocky-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-rocky-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/rocky
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 fedora-latest-basic:
   <<: *job_definition
   image: $IMAGE_REGISTRY/fedora-latest
@@ -282,12 +252,6 @@ fedora-latest-basic:
     - python3 ./waf install
     - python3 ./waf uninstall
 
-fedora-latest-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/fedora-latest
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build
-
 python3:
   <<: *job_definition
   image: $IMAGE_REGISTRY/python3
@@ -350,12 +314,6 @@ debian-stable-mDNS-basic:
   script:
     - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage build --pyshebang "/usr/bin/env python3"
 
-debian-stable-mDNS-refclocks:
-  <<: *job_definition
-  image: $IMAGE_REGISTRY/debian-stable-mdns
-  script:
-    - python3 ./waf configure --enable-warnings --enable-Werror --disable-doc --disable-manpage --refclock=all build --pyshebang "/usr/bin/env python3"
-
 debian-stable-ubsan:
   <<: *job_definition
   image: $IMAGE_REGISTRY/debian-stable



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/61eaa902b90e374698c1b4e380b0f27ed6632c65

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/61eaa902b90e374698c1b4e380b0f27ed6632c65
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20261028/3df2e4ee/attachment-0001.htm>


More information about the vc mailing list