From bfd9293efab72b1a45d050276ed526850e8b38b7 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 15 Sep 2025 14:39:13 -0500 Subject: [PATCH 1/2] debug dns_failures_logging --- test/asynchronous/utils.py | 3 +++ test/utils.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/asynchronous/utils.py b/test/asynchronous/utils.py index 02ba46c71a..88534498a1 100644 --- a/test/asynchronous/utils.py +++ b/test/asynchronous/utils.py @@ -193,6 +193,9 @@ def flaky( def decorator(target_func): @wraps(target_func) async def wrapper(*args, **kwargs): + print( + f"Hello from flaky {max_runs=} {min_passes=} {disable_flaky=} {is_cpython_linux=} {affects_cpython_linux=}" + ) passes = 0 for i in range(max_runs): try: diff --git a/test/utils.py b/test/utils.py index bfc606fe83..fcd976b42d 100644 --- a/test/utils.py +++ b/test/utils.py @@ -191,6 +191,9 @@ def flaky( def decorator(target_func): @wraps(target_func) def wrapper(*args, **kwargs): + print( + f"Hello from flaky {max_runs=} {min_passes=} {disable_flaky=} {is_cpython_linux=} {affects_cpython_linux=}" + ) passes = 0 for i in range(max_runs): try: From 3317c1a8002dd647caff25c81a4efdf713a433b6 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 15 Sep 2025 15:05:16 -0500 Subject: [PATCH 2/2] more flaky allowed --- test/asynchronous/test_srv_polling.py | 2 +- test/asynchronous/utils.py | 3 --- test/test_srv_polling.py | 2 +- test/utils.py | 3 --- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/test/asynchronous/test_srv_polling.py b/test/asynchronous/test_srv_polling.py index d6f0f6a18f..3d4aed1bc1 100644 --- a/test/asynchronous/test_srv_polling.py +++ b/test/asynchronous/test_srv_polling.py @@ -225,7 +225,7 @@ def response_callback(*args): await self.run_scenario(response_callback, False) - @flaky(reason="PYTHON-5500") + @flaky(reason="PYTHON-5500", max_runs=3) async def test_dns_failures_logging(self): from dns import exception diff --git a/test/asynchronous/utils.py b/test/asynchronous/utils.py index 88534498a1..02ba46c71a 100644 --- a/test/asynchronous/utils.py +++ b/test/asynchronous/utils.py @@ -193,9 +193,6 @@ def flaky( def decorator(target_func): @wraps(target_func) async def wrapper(*args, **kwargs): - print( - f"Hello from flaky {max_runs=} {min_passes=} {disable_flaky=} {is_cpython_linux=} {affects_cpython_linux=}" - ) passes = 0 for i in range(max_runs): try: diff --git a/test/test_srv_polling.py b/test/test_srv_polling.py index 09c900cf09..f5096bea01 100644 --- a/test/test_srv_polling.py +++ b/test/test_srv_polling.py @@ -225,7 +225,7 @@ def response_callback(*args): self.run_scenario(response_callback, False) - @flaky(reason="PYTHON-5500") + @flaky(reason="PYTHON-5500", max_runs=3) def test_dns_failures_logging(self): from dns import exception diff --git a/test/utils.py b/test/utils.py index fcd976b42d..bfc606fe83 100644 --- a/test/utils.py +++ b/test/utils.py @@ -191,9 +191,6 @@ def flaky( def decorator(target_func): @wraps(target_func) def wrapper(*args, **kwargs): - print( - f"Hello from flaky {max_runs=} {min_passes=} {disable_flaky=} {is_cpython_linux=} {affects_cpython_linux=}" - ) passes = 0 for i in range(max_runs): try: