mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 01:59:26 +00:00
Allow flaky unit tests to be re-run in CI
Mark instable unit tests with `flaky` test suite. Execute the stable separately in CI. Allow the flaky ones to be re-executed once in case they fail.
This commit is contained in:
parent
3c84cf04b7
commit
50a1d49e7d
@ -454,8 +454,9 @@ stages:
|
||||
script:
|
||||
- *fips_feature_test
|
||||
- RET=0
|
||||
- meson test -C build --no-rebuild || RET=1
|
||||
- meson test -C build --no-rebuild --no-suite flaky || RET=1
|
||||
- cp build/meson-logs/testlog.junit.xml $CI_PROJECT_DIR/junit.xml
|
||||
- meson test -C build --no-rebuild --suite flaky || meson test -C build --no-rebuild --suite flaky || RET=1
|
||||
- *check_for_junit_xml
|
||||
- (exit $RET)
|
||||
- test "$CLEAN_BUILD_ARTIFACTS_ON_SUCCESS" -eq 0 || ninja -C build clean >/dev/null 2>&1
|
||||
@ -463,7 +464,9 @@ stages:
|
||||
untracked: true
|
||||
when: always
|
||||
reports:
|
||||
junit: junit.xml
|
||||
junit:
|
||||
- junit.xml
|
||||
- build/meson-logs/testlog-flaky.junit.xml
|
||||
|
||||
.unit_test_tsan: &unit_test_tsan_job
|
||||
<<: *unit_test_job
|
||||
|
@ -57,6 +57,11 @@ isc_test = [
|
||||
'work',
|
||||
]
|
||||
|
||||
flaky_isc_test = [
|
||||
'proxystream',
|
||||
'random',
|
||||
]
|
||||
|
||||
if config.has('HAVE_NGHTTP2')
|
||||
isc_test += 'doh'
|
||||
endif
|
||||
@ -84,10 +89,14 @@ foreach unit : isc_test
|
||||
],
|
||||
)
|
||||
|
||||
suites = ['isc']
|
||||
if unit in flaky_isc_test
|
||||
suites += 'flaky'
|
||||
endif
|
||||
test(
|
||||
unit,
|
||||
test_bin,
|
||||
suite: 'isc',
|
||||
suite: suites,
|
||||
timeout: 300,
|
||||
workdir: meson.current_source_dir(),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user