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 <[email protected]>
---
 meta/recipes-devtools/python/python3_3.14.7.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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 \
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246583): 
https://lists.openembedded.org/g/openembedded-core/message/246583
Mute This Topic: https://lists.openembedded.org/mt/121407897/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to