Allow reruns for test_json and test_xml tests

These tests have been unstable under TSAN in the past, but it appears
that the same failure mode can happen outside of TSAN tests as well.
These tests have produced 12 failures combined in the past three weeks
in nightlies.

(cherry picked from commit 66f6f4bba9)
This commit is contained in:
Nicki Křížek 2025-07-02 17:57:14 +02:00
parent 55cce1c872
commit ff9eae09c4
3 changed files with 2 additions and 6 deletions

View file

@ -54,10 +54,6 @@ 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

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

View file

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