Skip to content

ci: raise backend-unit-test pytest timeout 15m → 25m (stop spurious runner-variance cancels) - #1719

Merged
vybe merged 1 commit into
devfrom
ci/pytest-timeout-25min
Jul 22, 2026
Merged

vybe merged 1 commit into
devfrom
ci/pytest-timeout-25min

Conversation

@dolho

@dolho dolho commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

Raises the backend-unit-test.yml pytest matrix job's timeout-minutes 15 → 25.

Why

The suite runs ~7-8 min on a normal GitHub runner, but the shared runners vary ~2-2.5×. A slow one sits at ~78% of the suite (all tests passing — pure dots in the log) when it hits the 15-min cap and gets killed. That surfaces as a red pytest (…, seed …) fail plus a regression diff fail — even though the diff itself reports "✅ No new failures."

Seen three times this cycle on PRs that can't possibly break pytest:

Each needed a manual empty-commit/branch patch. This fixes it fleet-wide so no PR flakes on runner variance.

Safety

25 min covers the observed ~19-min worst case with margin, and does not mask a genuine hang — pytest-timeout still bounds any single test. One-line, workflow-only change.

🤖 Generated with Claude Code

…cancels)

The pytest matrix job runs ~7-8 min on a normal GitHub runner, but the shared
runners vary ~2-2.5x. A slow one was sitting at ~78% of the suite (all tests
passing — pure dots in the log) when it hit the 15-min `timeout-minutes` and got
killed, which surfaces as a red "pytest (…) fail" + a "regression diff" fail even
though the diff itself reports "No new failures". Seen repeatedly this cycle
(#1700, #1712) with zero real failures.

25 min gives headroom for the slow tail without masking a genuine hang —
pytest-timeout still bounds any single test. Not payload-specific; belongs on
dev so every PR stops flaking on runner variance.

Related to #1712
@dolho
dolho requested a review from AndriiPasternak31 as a code owner July 21, 2026 07:50
@dolho
dolho requested a review from vybe July 21, 2026 07:52
@github-actions

Copy link
Copy Markdown

⚠️ Nightly unit-suite check skipped — merge conflict against dev.

Resolve by running git merge dev locally and pushing the result. The next nightly run will re-test once the conflict is gone.

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Validated via /validate-pr: required checks green, security scan clean, scope focused.

@vybe
vybe merged commit af24ae7 into dev Jul 22, 2026
20 checks passed
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.

2 participants