]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Verify Git repo validity
authorMichal Nowak <mnowak@isc.org>
Mon, 7 Nov 2022 16:50:10 +0000 (17:50 +0100)
committerMichal Nowak <mnowak@isc.org>
Fri, 11 Nov 2022 12:55:05 +0000 (13:55 +0100)
This check should help catching issues like [1] early.

[1] https://gitlab.isc.org/isc-projects/bind9/-/wikis/%22main%22-branch-partial-history-rewrite-in-August-2022

.gitlab-ci.yml

index 8ca368d0f95fa031ba75c7ca66824eefbbfc8442..dffb57e0b7be100a1718fcf4313f7b756053cfc7 100644 (file)
@@ -1408,6 +1408,22 @@ stress:rpz:freebsd12:amd64:
     variables:
       - $CI_COMMIT_TAG || ($BIND_STRESS_TEST_OS =~ /freebsd/i && $BIND_STRESS_TEST_MODE =~ /rpz/i && $BIND_STRESS_TEST_ARCH =~ /amd64/i)
 
+# git fsck operates over the whole repository and is sufficient to schedule it
+# only in one branch, preferably "main". GitLab's clone strategy prevents us
+# from using the "bind9" repo clone; we need to clone it ourselves.
+fsck:
+  <<: *base_image
+  stage: postcheck
+  variables:
+    GIT_STRATEGY: none
+  script:
+    - git clone https://gitlab.isc.org/isc-projects/bind9.git bind9-full-clone
+    - cd bind9-full-clone/
+    - git fsck
+  only:
+    - schedules
+  needs: []
+
 gcov:
   <<: *base_image
   <<: *default_triggering_rules