mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-05 01:02:04 -04:00
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.
(cherry picked from commit e59bc5b366)
This commit is contained in:
parent
2ab553c042
commit
fddf60da09
1 changed files with 6 additions and 0 deletions
|
|
@ -364,6 +364,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
|
||||
|
|
@ -433,6 +434,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"
|
||||
|
|
@ -1530,6 +1532,7 @@ respdiff:
|
|||
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:asan:
|
||||
<<: *respdiff_job
|
||||
|
|
@ -1543,6 +1546,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
|
||||
|
|
@ -1559,6 +1563,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
|
||||
|
|
@ -1573,6 +1578,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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue