Skip to content

Experiment: pytest-timeout with the Sentry test isolation - #416

Closed
DABH wants to merge 6 commits into
mainfrom
timeout-plus-sentry
Closed

DABH wants to merge 6 commits into
mainfrom
timeout-plus-sentry

Conversation

@DABH

@DABH DABH commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Experiment only, not for merge: #413 (pytest-timeout, fail-fast off) with #415 (Sentry test isolation) on top. The question is whether the Sentry test still captures a stray third event on Windows 3.10 when pytest-timeout is installed, once each test has its own IDs and a fresh Sentry client. If this run's Windows 3.10 job is green, #415 removes the one failure #413 has left, and the two can land in that order.

DABH added 6 commits November 12, 2026 14:00
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.
Both tests shared one workflow ID and one task queue, and the Sentry
client and scopes carried over between them, so a worker or breadcrumb
from the first test could show up in the second. Each test now gets its
own IDs and a fresh client with cleared scopes.
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.
Diagnostic only, so the Windows failure shows what the third event is.
@DABH DABH closed this Nov 13, 2026
@DABH
DABH deleted the timeout-plus-sentry branch November 13, 2026 02:45
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