diff mbox series

python3: ptest: skip flaky test_staggered_race_with_eager_tasks

Message ID 20260924114358.24945-1-pratik.farkase@est.tech
State New
Headers show
Series python3: ptest: skip flaky test_staggered_race_with_eager_tasks | expand

Commit Message

Pratik Farkase Sept. 24, 2026, 11:43 a.m. UTC
The asyncio test test_staggered_race_with_eager_tasks starts candidate
coroutines 0.25s apart via staggered_race() and expects the third one to
raise ValueError after an "await asyncio.sleep(0)". On loaded autobuilder
hosts under QEMU emulation the winning coroutine finishes and
staggered_race() cancels the losers before the third coroutine resumes to
raise, so its recorded exception is CancelledError instead of ValueError
(AssertionError: CancelledError() is not an instance of <class
'ValueError'>).

The test is timing-sensitive upstream (CPython #124309) and part of the
broader timing-sensitive test class (CPython #130363). Skip both the
pure-Python and C-accelerated eager task factory variants.

[YOCTO #16435]

Signed-off-by: Pratik Farkase <pratik.farkase@est.tech>
---
 meta/recipes-devtools/python/python3_3.14.7.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3_3.14.7.bb b/meta/recipes-devtools/python/python3_3.14.7.bb
index 57fc599151..f917edebd8 100644
--- a/meta/recipes-devtools/python/python3_3.14.7.bb
+++ b/meta/recipes-devtools/python/python3_3.14.7.bb
@@ -339,6 +339,20 @@  SKIPPED_TESTS += " \
     --ignore test.test_asyncio.test_taskgroups.TestTaskGroup.test_taskgroup_23 \
 "
 
+# Intermittent failure under load - this asyncio staggered_race test starts
+# candidate coroutines 0.25s apart and expects the third one to raise
+# ValueError after an "await asyncio.sleep(0)". On loaded autobuilder hosts
+# under QEMU emulation the winning coroutine finishes and staggered_race
+# cancels the losers before the third coroutine resumes to raise, so its
+# recorded exception is CancelledError instead of ValueError. Upstream test
+# is timing-sensitive (CPython #124309). Skip both the pure-Python and
+# C-accelerated eager task factory variants.
+# Bugzilla YP 16435
+SKIPPED_TESTS += " \
+    --ignore test.test_asyncio.test_eager_task_factory.PyEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks \
+    --ignore test.test_asyncio.test_eager_task_factory.CEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks \
+"
+
 SKIPPED_TESTS:append:libc-musl = " \
     -x test__locale \
     -x test_c_locale_coercion \