Skip to content

test_external_inspection flaky on x86-64 Ubuntu 24.04 on free-threading #133359

Closed

Description

@ambv

With #133284 applied, test_async_global_awaited_by occasionally fails, reporting fewer than 1000 pending tasks. Example failure:
https://github.com/python/cpython/actions/runs/14813289395/job/41590700582

Additionally, the oldest tasks in such case are missing the awaited_by link to a task group context manager:
(2199028913760, 'Task-25', [[['echo_client_spam'], 2199050127392]])

A healthy task reports being under the task group context manager:
(2199056497056, 'Task-1997', [[['_aexit', '__aexit__', 'echo_client_spam'], 2199049603104]])

I looked at it on macOS ARM and Ubuntu ARM, but it does not reproduce despite re-running the test with -F. On GHA it happens often enough for us to notice on the PR.

Activity

  1. added
    type-bug
    on May 3, 2025
  2. added
    3.14
    on May 4, 2025
  3. pablogsal commented on May 4, 2025

    @pablogsal
    Member

    Looks like this is indeed not a free threading problem after all: #133368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14topic-free-threadingtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions