From: Nicki Křížek Date: Tue, 28 Jan 2025 14:23:01 +0000 (+0100) Subject: Use make clean to reduce artifacts in successful jobs X-Git-Tag: v9.21.5~21^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e59bc5b36610168eadde1ce3687f903d2a4630ce;p=thirdparty%2Fbind9.git Use make clean to reduce artifacts in successful jobs Reduce the amount of artifacts stored by running make clean at the end of unit and system test run. If any of the previous commands fail, the runner will stop executing the commands in `script` immediately, so the cleanup only happens if none of the previous commands failed. The build artifacts from unit and system tests are re-used anywhere and should be safe to throw away immediately. Same for respdiff. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be5c0ed73c8..0c627efd4a1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -373,6 +373,7 @@ stages: - > "$PYTEST" --junit-xml="$CI_PROJECT_DIR"/junit.xml -n "$TEST_PARALLEL_JOBS" | tee pytest.out.txt - '( ! grep -F "grep: warning:" pytest.out.txt )' + - make clean >/dev/null 2>&1 after_script: - test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}" - *display_pytest_failures @@ -427,6 +428,7 @@ stages: - test -n "${OUT_OF_TREE_WORKSPACE}" && cd "${OUT_OF_TREE_WORKSPACE}" script: - make -j${TEST_PARALLEL_JOBS:-1} -k unit V=1 + - make clean >/dev/null 2>&1 after_script: - test -d bind-* && cd bind-* - REALSOURCEDIR="$PWD" @@ -1616,6 +1618,7 @@ respdiff: MAX_DISAGREEMENTS_PERCENTAGE: "0.15" script: - bash respdiff.sh -m /usr/lib/x86_64-linux-gnu/libjemalloc.so.2 -s named -q "${PWD}/100k_mixed.txt" -c 3 -w "${PWD}/rspworkdir" "${CI_PROJECT_DIR}" "/usr/local/respdiff-reference-bind/sbin/named" + - cd ../.. && make clean >/dev/null 2>&1 respdiff:asan: <<: *respdiff_job @@ -1629,6 +1632,7 @@ respdiff:asan: MAX_DISAGREEMENTS_PERCENTAGE: "0.15" script: - bash respdiff.sh -s named -q "${PWD}/100k_mixed.txt" -c 3 -w "${PWD}/rspworkdir" "${CI_PROJECT_DIR}" "/usr/local/respdiff-reference-bind/sbin/named" + - cd ../.. && make clean >/dev/null 2>&1 respdiff:tsan: <<: *respdiff_job @@ -1643,6 +1647,7 @@ respdiff:tsan: TSAN_OPTIONS: "${TSAN_OPTIONS_DEBIAN}" script: - bash respdiff.sh -s named -q "${PWD}/100k_mixed.txt" -c 3 -w "${PWD}/rspworkdir" "${CI_PROJECT_DIR}" "/usr/local/respdiff-reference-bind/sbin/named" + - cd ../.. && make clean >/dev/null 2>&1 after_script: - *find_python - *parse_tsan @@ -1657,6 +1662,7 @@ respdiff-third-party: MAX_DISAGREEMENTS_PERCENTAGE: "0.2" script: - bash respdiff.sh -s third_party -q "${PWD}/100k_mixed.txt" -c 1 -w "${PWD}/rspworkdir" "${CI_PROJECT_DIR}" + - cd ../.. && make clean >/dev/null 2>&1 # Performance tests