Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ambv opened this issue May 3, 2025 · 1 comment
Closed

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

ambv opened this issue May 3, 2025 · 1 comment
Labels
3.14 new features, bugs and security fixes topic-free-threading type-bug An unexpected behavior, bug, or error

Comments

@ambv
Copy link
Contributor

ambv commented May 3, 2025

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.

@ambv ambv added topic-free-threading type-bug An unexpected behavior, bug, or error labels May 3, 2025
@picnixz picnixz added the 3.14 new features, bugs and security fixes label May 4, 2025
@pablogsal
Copy link
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
Labels
3.14 new features, bugs and security fixes topic-free-threading type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants