Skip to content

"AMD64 Android 3.x" buildbot: find_device() fails with timeout after 10 minutes #150386

@vstinner

Description

@vstinner

Example of failure: https://buildbot.python.org/#/builders/1591/builds/4676

  + Exception Group Traceback (most recent call last):
  |   File "<frozen runpy>", line 198, in _run_module_as_main
  |   File "<frozen runpy>", line 88, in _run_code
  |   File "/home/buildbot/buildarea/3.x.mhsmith-android-x86_64/build/Platforms/Android/__main__.py", line 1059, in <module>
  |     main()
  |   File "/home/buildbot/buildarea/3.x.mhsmith-android-x86_64/build/Platforms/Android/__main__.py", line 1035, in main
  |     asyncio.run(result)
  |   File "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/runners.py", line 194, in run
  |     return runner.run(main)
  |            ^^^^^^^^^^^^^^^^
  |   File "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/runners.py", line 118, in run
  |     return self._loop.run_until_complete(task)
  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   File "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
  |     return future.result()
  |            ^^^^^^^^^^^^^^^
  |   File "/home/buildbot/buildarea/3.x.mhsmith-android-x86_64/build/Platforms/Android/__main__.py", line 726, in run_testbed
  |     async with asyncio.TaskGroup() as tg:
  |                ^^^^^^^^^^^^^^^^^^^
  |   File "/home/buildbot/.pyenv/versions/3.12.6/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 "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    |     return await fut
    |            ^^^^^^^^^
    |   File "/home/buildbot/buildarea/3.x.mhsmith-android-x86_64/build/Platforms/Android/__main__.py", line 488, in find_device
    |     await asyncio.sleep(1)
    |   File "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/tasks.py", line 665, in sleep
    |     return await future
    |            ^^^^^^^^^^^^
    | asyncio.exceptions.CancelledError
    | 
    | The above exception was the direct cause of the following exception:
    | 
    | Traceback (most recent call last):
    |   File "/home/buildbot/buildarea/3.x.mhsmith-android-x86_64/build/Platforms/Android/__main__.py", line 541, in logcat_task
    |     serial = await wait_for(find_device(context, initial_devices), startup_timeout)
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    |     async with timeouts.timeout(timeout):
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "/home/buildbot/.pyenv/versions/3.12.6/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    |     raise TimeoutError from exc_val
    | TimeoutError
    +------------------------------------
program finished with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-androidtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions