]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Drop cppcheck CI job
authorMichal Nowak <mnowak@isc.org>
Tue, 30 Nov 2021 12:52:49 +0000 (13:52 +0100)
committerMichal Nowak <mnowak@isc.org>
Tue, 14 Dec 2021 14:10:30 +0000 (15:10 +0100)
Every cppcheck update brings the cost of addressing new false positives
in the BIND 9 source code while not reaping any benefits in case of
identified issues with the code.

(cherry picked from commit 654cc61bb93da031c599488102fe162d09b87fc7)

.gitignore
.gitlab-ci.yml

index c6b8ee52eedf4eba2907f18319a2cc4b5f8f31cf..7ef6b86d137300ce8f6fe5d0e9f7db7e20868f4e 100644 (file)
@@ -59,7 +59,5 @@ named.memstats
 named.run
 timestamp
 /compile_commands.json
-/cppcheck_html/
-/cppcheck.results
 /tsan
 /util/check-make-install
index 58be57c62599b28ec5d34b10044b20240e057dd1..5a0d61fbbded8cca73aa230c08a1d788efa6494b 100644 (file)
@@ -406,34 +406,6 @@ stages:
       - kyua_html/
     when: on_failure
 
-.cppcheck_args: &run_cppcheck
-  - cppcheck --enable=warning,performance,portability,information,missingInclude --include=config.h --std=c11 --language=c --project=compile_commands.json --error-exitcode=2 -j ${TEST_PARALLEL_JOBS:-1} --xml --output-file=cppcheck.results --relative-paths="$CI_PROJECT_DIR" --inline-suppr --suppressions-list=util/suppressions.txt
-
-.cppcheck_report: &cppcheck_report_html
-  - cppcheck-htmlreport --title="BIND 9 ($CI_COMMIT_SHORT_SHA) Cppcheck Report" --file=cppcheck.results --report-dir=cppcheck_html/
-
-.cppcheck: &cppcheck_job
-  <<: *default_triggering_rules
-  stage: postcheck
-  script:
-    - *configure
-    - (make -nwk all || true) | compiledb
-    - export GCC_VERSION=$(gcc --version | sed -n 's/.* \([0-9]\+\)\.[0-9]\+\.[0-9]\+.*/\1/p')
-    - sed -i "/gcc\",/a\"-DCPPCHECK\", \"-D__STDC__\", \"-D__GNUC__=${GCC_VERSION}\"," compile_commands.json
-    - *run_cppcheck
-  after_script:
-    - *cppcheck_report_html
-  artifacts:
-    paths:
-      - compile_commands.json
-      - cppcheck.results
-      - cppcheck_html/
-    expire_in: "1 day"
-    when: on_failure
-  needs:
-    - job: autoreconf
-      artifacts: true
-
 ### Job Definitions
 
 # Jobs in the precheck stage
@@ -818,10 +790,6 @@ unit:gcc:sid:amd64:
     - job: gcc:sid:amd64
       artifacts: true
 
-cppcheck:
-  <<: *base_image
-  <<: *cppcheck_job
-
 # Job for out-of-tree GCC build on Debian "sid" (amd64)
 # Also tests configration option: --with-lmdb.