]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Drop coverity cache feature
authorMichal Nowak <mnowak@isc.org>
Mon, 14 Feb 2022 20:06:31 +0000 (21:06 +0100)
committerMichal Nowak <mnowak@isc.org>
Tue, 14 Jun 2022 12:25:04 +0000 (14:25 +0200)
The coverity CI job cache feature is used to ensure that the 1 GB
cov-analysis-linux64.tgz file is being cached on GitLab CI runner, where
it was downloaded in the past. This feature does not seem to work
anymore; given that the proper solution to creating distributed cache is
complicated, better to drop the feature altogether.

(cherry picked from commit c966304e90d08eebc0264b40c3a62c7a2cd51152)

.gitlab-ci.yml

index 89045d45aff7235bcd7be382d5e592be039b4fd8..631b44244d177bd2758a821c420fa5590c9fff0e 100644 (file)
@@ -1251,16 +1251,14 @@ release:
 
 # Coverity Scan analysis upload
 
-.coverity_cache_prep: &coverity_cache_prep
-  - test -f cov-analysis-linux64.md5 && test -f cov-analysis-linux64.tgz || (
-    curl --output cov-analysis-linux64.md5 https://scan.coverity.com/download/linux64
+.coverity_prep: &coverity_prep
+  - curl --output cov-analysis-linux64.md5 https://scan.coverity.com/download/linux64
          --form project=$COVERITY_SCAN_PROJECT_NAME
          --form token=$COVERITY_SCAN_TOKEN
-         --form md5=1;
-    curl --output cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64
+         --form md5=1
+  - curl --output cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64
          --form project=$COVERITY_SCAN_PROJECT_NAME
-         --form token=$COVERITY_SCAN_TOKEN;
-    )
+         --form token=$COVERITY_SCAN_TOKEN
   - test "$(md5sum cov-analysis-linux64.tgz | awk '{ print $1 }')" = "$(cat cov-analysis-linux64.md5)"
   - tar --extract --gzip --file=cov-analysis-linux64.tgz
   - test -d cov-analysis-linux64-2021.12.1
@@ -1285,7 +1283,7 @@ coverity:
     CFLAGS: "${CFLAGS_COMMON} -Og"
     EXTRA_CONFIGURE: "--with-libidn2"
   script:
-    - *coverity_cache_prep
+    - *coverity_prep
     - *configure
     - *coverity_build
   needs:
@@ -1301,11 +1299,6 @@ coverity:
     variables:
       - $COVERITY_SCAN_PROJECT_NAME
       - $COVERITY_SCAN_TOKEN
-  cache:
-    key: cov-analysis-linux64-2021.12.1
-    paths:
-      - cov-analysis-linux64.md5
-      - cov-analysis-linux64.tgz
 
 # Respdiff tests