]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
CI: Pipeline consistency checker
authorMaria Matejka <mq@ucw.cz>
Mon, 23 Mar 2026 14:43:40 +0000 (15:43 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 7 Apr 2026 09:50:51 +0000 (11:50 +0200)
Tries to re-generate the pipeline specification and fails if it would
have done any changes.

.gitlab-ci.yml
misc/gitlab/template.yml.j2

index ad7d5aea3793576d444874f0135d14f035ebd7c1..5d7706c79e2888b60f2685ec2409fd0a56cd7057 100644 (file)
@@ -194,6 +194,19 @@ pipeline-infodump:
     echo "Docker regex: $[[ inputs.docker-regex ]]"
     echo "Docker one: $[[ inputs.docker-one ]]"
 
+## Pipeline consistency check
+pipeline-uptodate:
+  stage: consistency
+  image: registry.nic.cz/labs/bird:docbuilder
+  script:
+  - autoreconf -i
+  - ./configure
+  - touch misc/gitlab/template.yml.j2
+  - make gitlab-venv
+  - git status --porcelain
+  - git diff --exit-code
+  rules:
+  - !reference [ .default-rules ]
 
 ## Consistency checks for stable branches
 commit-messages:
index d239253bbc814eca932ec70de28a7cf4ed6641af..7cdf5a3dc581ff320b8c577a8da0897c0be6a375 100644 (file)
@@ -181,6 +181,19 @@ pipeline-infodump:
     echo "Docker regex: $[[ inputs.docker-regex ]]"
     echo "Docker one: $[[ inputs.docker-one ]]"
 
+## Pipeline consistency check
+pipeline-uptodate:
+  stage: consistency
+  image: registry.nic.cz/labs/bird:docbuilder
+  script:
+  - autoreconf -i
+  - ./configure
+  - touch misc/gitlab/template.yml.j2
+  - make gitlab-venv
+  - git status --porcelain
+  - git diff --exit-code
+  rules:
+  - !reference [ .default-rules ]
 
 ## Consistency checks for stable branches
 commit-messages: