From: Michał Kępień Date: Thu, 26 Mar 2020 10:03:52 +0000 (+0100) Subject: Refactor TSAN system test job definitions X-Git-Tag: v9.14.12~9^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46c97f36d08b8031bcc223a3480030423cc0255;p=thirdparty%2Fbind9.git Refactor TSAN system test job definitions Multiple YAML keys have identical values for both TSAN system test job definitions. Extract these common keys to a YAML anchor and use it in TSAN system test job definitions to reduce code duplication. (cherry picked from commit a9aa295f1f3a5af1861d5be150f66522358da8aa) --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c581dd79fa..584a0272bd0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -259,7 +259,7 @@ stages: .setup_softhsm: &setup_softhsm | sh -x bin/tests/prepare-softhsm2.sh -.system_test: &system_test_job +.system_test_common: &system_test_common <<: *default_triggering_rules stage: system before_script: @@ -268,11 +268,27 @@ stages: script: - ( cd bin/tests/system && make -j${TEST_PARALLEL_JOBS:-1} -k test V=1 ) - test -s bin/tests/system/systests.output + +.system_test: &system_test_job + <<: *system_test_common artifacts: untracked: true expire_in: "1 day" when: on_failure +.system_test_tsan: &system_test_tsan_job + <<: *system_test_common + allow_failure: true + after_script: + - find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \; + artifacts: + expire_in: "1 day" + paths: + - bin/tests/system/*/tsan.* + - bin/tests/system/*/*/tsan.* + - tsan/ + when: on_failure + .kyua_report: &kyua_report_html | kyua --logfile /dev/null report-html \ --force \ @@ -918,20 +934,10 @@ system:gcc:tsan: variables: TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON} <<: *base_image - <<: *system_test_job + <<: *system_test_tsan_job needs: - job: gcc:tsan artifacts: true - allow_failure: true - after_script: - - find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \; - artifacts: - expire_in: "1 day" - paths: - - bin/tests/system/*/tsan.* - - bin/tests/system/*/*/tsan.* - - tsan/ - when: on_failure unit:gcc:tsan: variables: @@ -967,20 +973,10 @@ system:clang:tsan: variables: TSAN_OPTIONS: ${TSAN_OPTIONS_COMMON} <<: *base_image - <<: *system_test_job + <<: *system_test_tsan_job needs: - job: clang:tsan artifacts: true - allow_failure: true - after_script: - - find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \; - artifacts: - expire_in: "1 day" - paths: - - bin/tests/system/*/tsan.* - - bin/tests/system/*/*/tsan.* - - tsan/ - when: on_failure unit:clang:tsan: variables: