python3: ptest: skip flaky test_staggered_race_with_eager_tasks
PATCH 1/1 python3: ptest: skip flaky test_staggered_race_with_eager_tasks
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]
--- meta/recipes-devtools/python/python3_3.14.7.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
meta/recipes-devtools/python/python3_3.14.7.bb +14 -0
@@ -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 \
Signature · 1 line
2.43.0