2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Allow rerun of unstable statschannel tests under TSAN

The test_traffic_json and test_traffic_xml occasionally fail when
running under TSAN. This happens in CI and is most likely a result of
some instability that doesn't seem to be easily reproduced.
This commit is contained in:
Nicki Křížek 2024-08-12 15:43:19 +02:00
parent d0d6ad0c52
commit ec2fc7680a
No known key found for this signature in database
GPG Key ID: 01623B9B652A20A7
3 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,10 @@ def is_dnsrps_available():
return True
def with_tsan(*args): # pylint: disable=unused-argument
return feature_test("--tsan")
have_libxml2 = pytest.mark.skipif(
not feature_test("--have-libxml2"), reason="libxml2 support disabled in the build"
)

View File

@ -100,5 +100,6 @@ def test_zone_with_many_keys_json(statsport):
)
@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.with_tsan)
def test_traffic_json(statsport):
generic.test_traffic(fetch_traffic_json, statsip="10.53.0.2", statsport=statsport)

View File

@ -130,5 +130,6 @@ def test_zone_with_many_keys_xml(statsport):
)
@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.with_tsan)
def test_traffic_xml(statsport):
generic.test_traffic(fetch_traffic_xml, statsip="10.53.0.2", statsport=statsport)