Skip to content

Fix parallel test suites freezing instead of reporting a crash - #95

Closed
mvrahden wants to merge 2 commits into
mainfrom
fix/parallel-suite-cleanup-deadlock
Closed

Fix parallel test suites freezing instead of reporting a crash#95
mvrahden wants to merge 2 commits into
mainfrom
fix/parallel-suite-cleanup-deadlock

Conversation

@mvrahden

@mvrahden mvrahden commented Jul 28, 2026

Copy link
Copy Markdown
Owner

When a test crashed inside a suite that runs its tests in parallel, the whole run
froze. Nothing was reported, and it stayed stuck until the global ten-minute
timeout killed it. So instead of seeing what actually broke, you waited ten
minutes and got a timeout.

The cause was in the code we generate for those suites: the suite's cleanup step
waited for work that, after a crash, could never finish. Removing that wait lets
the crash be reported straight away.

A second problem turned up in the same place. Suite cleanup was being handed an
already-expired deadline, so any cleanup that relied on one failed instantly.
It now gets a valid one, and the timeout you configure actually applies.

Added tests that reproduce the original freeze and confirm it now fails fast
instead.

@mvrahden mvrahden changed the title fix(gen): remove suite-scoped WaitGroup that deadlocked parallel suites on panic Fix parallel test suites freezing instead of reporting a crash Jul 28, 2026
@mvrahden

Copy link
Copy Markdown
Owner Author

Superseded by #96, which now targets main directly and contains this work plus the follow-on fixes as a single coherent set of commits. Closing.

@mvrahden mvrahden closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant