Skip to contentSkip to conversation

python3: ptest: skip flaky test_taskgroup_23

PATCH New Pratik Farkase 1 participant 1 message Sep 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3: ptest: skip flaky test_taskgroup_23

The asyncio test test_taskgroup_23 creates tasks that each sleep for a fixed time, then sleeps 1.35s and asserts all tasks have completed. On loaded autobuilder hosts under QEMU emulation the event loop timers are delayed, so tasks are still pending when the assertion runs and the test fails intermittently (AssertionError: 2 != 0).

This is part of the broader class of timing-sensitive CPython tests tracked at https://github.com/python/cpython/issues/130363

[YOCTO #15564]

---
 meta/recipes-devtools/python/python3_3.14.7.bb | 9 +++++++++
 1 file changed, 9 insertions(+)
meta/recipes-devtools/python/python3_3.14.7.bb +9 -0
index 18373e5b5e..997a1ef48c 100644
@@ -329,6 +329,15 @@ SKIPPED_TESTS += " \
     --ignore test.test_remote_pdb.PdbAttachTestCase.test_attach_to_process_with_colors \
 "
 
+# Intermittent failure under load - this asyncio taskgroup test assumes
+# scheduled tasks finish within a fixed sleep, which does not hold on
+# loaded autobuilder hosts under QEMU emulation where timer callbacks are
+# delayed. Part of the broader timing-sensitive test class (CPython #130363).
+# Bugzilla YP 15564
+SKIPPED_TESTS += " \
+    --ignore test.test_asyncio.test_taskgroups.TestTaskGroup.test_taskgroup_23 \
+"
+
 SKIPPED_TESTS:append:libc-musl = " \
     -x test__locale \
     -x test_c_locale_coercion \
Signature · 1 line
2.43.0