Skip to content

[v3-4-test] Stop triggerer tests leaking runner processes (#76139) - #76140

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-81976d3-v3-4-test
Oct 31, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-81976d3-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Three triggerer tests ran a TriggerRunnerSupervisor until it handled its events and left the forked runner running. Since the triggerer freezes the GC before that fork, the supervisor is never collected and the runner never sees EOF, so it outlives the test. On Python 3.12.16, ResourceTracker.del waits for the multiprocessing resource tracker at interpreter exit, and the leaked runners keep its pipe open, so every 3.12 DB-core job hung after the Core tests finished (#76135).
(cherry picked from commit 81976d3)

Co-authored-by: Jarek Potiuk jarek@potiuk.com
Generated-by: Claude Opus 5

Three triggerer tests ran a TriggerRunnerSupervisor until it handled its events and left the forked runner running. Since the triggerer freezes the GC before that fork, the supervisor is never collected and the runner never sees EOF, so it outlives the test. On Python 3.12.16, ResourceTracker.__del__ waits for the multiprocessing resource tracker at interpreter exit, and the leaked runners keep its pipe open, so every 3.12 DB-core job hung after the Core tests finished (#76135).
(cherry picked from commit 81976d3)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Generated-by: Claude Opus 5
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.4.0 milestone Oct 31, 2026
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review October 31, 2026 13:49
@vatsrahul1001
vatsrahul1001 merged commit 6593ead into v3-4-test Oct 31, 2026
33 of 50 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-81976d3-v3-4-test branch October 31, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants