Bug 15564 - AB-INT PTEST: python3 ptest failure: in test_taskgroup_23
Summary: AB-INT PTEST: python3 ptest failure: in test_taskgroup_23
Status: RESOLVED FIXED
Alias: None
Product: Package Testing (ptest)
Classification: QA/Testing
Component: ptest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.1 M2
Assignee: Trevor Gamblin
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2024-07-25 08:08 UTC by João Marcos Costa
Modified: 2026-09-10 15:07 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
pub/non-release/20240722-78/testresults/qemuarm64-ptest/core-image-ptest-python3 (929.55 KB, application/gzip)
2024-07-25 08:10 UTC, João Marcos Costa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description João Marcos Costa 2024-07-25 08:08:23 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6658/steps/13/logs/stdio

AssertionError: 
Failed ptests:
{'python3': ['test_taskgroup_23', 'python3']}

qemuarm64-ptest ubuntu1804-arm-1

and from the attached logs:

======================================================================
ERROR: test_taskgroup_23 (test.test_asyncio.test_taskgroups.TestTaskGroup.test_taskgroup_23)
----------------------------------------------------------------------
  + Exception Group Traceback (most recent call last):
  |   File "/usr/lib/python3.12/unittest/async_case.py", line 90, in _callTestMethod
  |     if self._callMaybeAsync(method) is not None:
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/usr/lib/python3.12/unittest/async_case.py", line 112, in _callMaybeAsync
  |     return self._asyncioRunner.run(
  |            ^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
  |     return self._loop.run_until_complete(task)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
  |     return future.result()
  |            ^^^^^^^^^^^^^^^
  |   File "/usr/lib/python3.12/test/test_asyncio/test_taskgroups.py", line 657, in test_taskgroup_23
  |     async with taskgroups.TaskGroup() as g:
  |   File "/usr/lib/python3.12/asyncio/taskgroups.py", line 145, in __aexit__
  |     raise me from None
  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
  +-+---------------- 1 ----------------
    | Traceback (most recent call last):
    |   File "/usr/lib/python3.12/test/test_asyncio/test_taskgroups.py", line 664, in test_taskgroup_23
    |     self.assertEqual(len(g._tasks), 0)
    | AssertionError: 2 != 0
    +------------------------------------

----------------------------------------------------------------------
Ran 35 tests in 6.815s

FAILED (errors=1)
Comment 1 João Marcos Costa 2024-07-25 08:10:59 UTC
Created attachment 5062 [details]
pub/non-release/20240722-78/testresults/qemuarm64-ptest/core-image-ptest-python3
Comment 2 Randy MacLeod 2024-07-25 14:47:07 UTC
An intermittent bug that is in an async case so likely timing related.

If it happens again, disable the test.
Comment 4 João Marcos Costa 2024-07-26 08:24:35 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6843/steps/12/logs/stdio

qemux86-64-ptest fedora38-ty-6

Not the same taskgroup, though. This was test_taskgroup_04.
Comment 5 João Marcos Costa 2024-08-20 09:25:00 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6701/steps/12/logs/stdio

qemuarm64-ptest ubuntu2204-arm-1

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

there is no 'test_taskgroup_23' in the list, but according to the logs:

test_taskgroup_23 (test.test_asyncio.test_taskgroups.TestTaskGroup.test_taskgroup_23) ... Executing <TimerHandle when=32.2324932 _set_result_unless_cancelled(<Future finis...events.py:449>, None) at /usr/lib/python3.12/asyncio/futures.py:311 created at /usr/lib/python3.12/asyncio/tasks.py:661> took 0.304 seconds

Executing <TimerHandle when=33.930668919999995 _set_result_unless_cancelled(<Future finis...events.py:449>, None) at /usr/lib/python3.12/asyncio/futures.py:311 created at /usr/lib/python3.12/asyncio/tasks.py:661> took 0.140 seconds
ERROR
Comment 6 Randy MacLeod 2025-02-13 15:38:24 UTC
Hasn't happened on the new YP AB.
Comment 7 João Marcos Costa 2026-03-09 10:14:22 UTC
Happened again:

https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3190/steps/13/logs/stdio

qemuarm64-ptest ubuntu2504-vk-arm1

Reopening, just in case.
Comment 8 Randy MacLeod 2026-03-12 14:55:49 UTC
Patch out and report to upstream, mabye?
Comment 9 Randy MacLeod 2026-03-19 15:05:01 UTC
Either increate timeout or skip test if that doesn't make sense.