Bug 16435

Summary: AB-INT PTEST: python3 ptest failure: in test_staggered_race_with_eager_tasks
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Ross Burton <ross.burton>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium+ CC: mathieu.dubois-briand, randy.macleod, richard.purdie, yoann.congal
Version: unspecified   
Target Milestone: 6.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2026-09-23 08:52:01 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/4591/steps/15/logs/stdio

Failed ptests:
{'python3': ['test_staggered_race_with_eager_tasks', 'python3']}

qemux86-64-ptest ubuntu2404-vk-1

"""
FAIL: test_staggered_race_with_eager_tasks (test.test_asyncio.test_eager_task_factory.PyEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks)
PASS: test_staggered_race_with_eager_tasks_no_delay (test.test_asyncio.test_eager_task_factory.PyEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks_no_delay)

======================================================================
FAIL: test_staggered_race_with_eager_tasks (test.test_asyncio.test_eager_task_factory.PyEagerTaskFactoryLoopTests.test_staggered_race_with_eager_tasks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.14/test/test_asyncio/test_eager_task_factory.py", line 242, in test_staggered_race_with_eager_tasks
    self.run_coro(run())
    ~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.14/test/test_asyncio/test_eager_task_factory.py", line 36, in run_coro
    return self.loop.run_until_complete(coro)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/asyncio/base_events.py", line 720, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result
    raise self._exception.with_traceback(self._exception_tb)
  File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result
    result = coro.send(None)
  File "/usr/lib/python3.14/test/test_asyncio/test_eager_task_factory.py", line 240, in run
    self.assertIsInstance(excs[2], ValueError)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
AssertionError: CancelledError() is not an instance of <class 'ValueError'>

----------------------------------------------------------------------
Ran 48 tests in 5.920s

FAILED (failures=1)
test test.test_asyncio.test_eager_task_factory failed
"""

Full logs https://valkyrie.yocto.io/pub/non-release/20260919-9/testresults/qemux86-64-ptest/python3.log
Comment 2 Ross Burton 2026-09-24 14:51:40 UTC
I filed a specific issue at https://github.com/python/cpython/issues/158097
Comment 3 Mathieu Dubois-Briand 2026-10-20 16:18:58 UTC
Test is now skipped. We might want to re-enable it, if it gets fixed upstream.

https://git.openembedded.org/openembedded-core/commit/?id=35403edbc878c6e655e97010a6ff7732e861b517