Skip to content

Fail hung tests after five minutes instead of stalling CI - #413

Open
DABH wants to merge 2 commits into
mainfrom
pytest-timeout
Open

DABH wants to merge 2 commits into
mainfrom
pytest-timeout

Conversation

@DABH

@DABH DABH commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds pytest-timeout with a 300 second per-test limit to the root project and to the standalone sample projects. I was trying to debug stalling tests and it was very annoying to wait 30min to see a stall happen. This seems better and more debuggable.

@DABH
DABH marked this pull request as ready for review November 13, 2026 05:57
@DABH
DABH requested review from a team as code owners November 13, 2026 05:57
DABH added 2 commits November 13, 2026 12:32
Add pytest-timeout with a 300 second limit to the root project and the
standalone samples, so a stuck test fails with a stack dump and the job
finishes instead of sitting at the 30 minute limit with no trace.
With fail-fast on, one flaky job cancels the rest and hides whether they
would have passed, which has made this week's stalls harder to read.
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