Skip to content

fix: use the suite deadline for failure screenshots - #4373

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4370
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4370

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Failure screenshots added in #4295 used a local five-second timeout, so the suite's shared-deadline check rejected the helper. Capture now explicitly uses SERVED_TIMEOUT_MS, including for watched pages that bypass readable(). Screenshots remain bounded and best-effort; closed pages and Playwright failures retain their existing handling.

The reported test_a_wait_takes_the_suites_deadline failed before this change and passes after it. A direct Chromium probe also saved a nonempty screenshot and skipped a closed page. Python compilation and the whitespace check pass.

Closes #4370 — automated triage

Keep the failure diagnostics added in #4295, including bounded capture and closed-page/error handling, while using the shared browser hang deadline instead of a five-second local bound. No new timeout policy or deadline-check exception is needed.

Closes #4370
@leaf-agent
leaf-agent merged commit 5b62cca into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4370 branch October 27, 2026 06:48
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.

Suite deadline check rejects the failure-screenshot helper

1 participant