Skip to content

fix: give the render gate's page navigations the served deadline, not Playwright's 30s - #6310

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6302
Nov 17, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The render gate's pages fell back to Playwright's default 30 s for every wait that names no deadline, and that includes page.goto's wait for load. On the starved macOS nightly (run 44068597322), test_reply_validates_widget_markup hit that limit: the reply's markup check reported Page.goto: Timeout 30000ms exceeded instead of the markup finding. Root AGENTS.md, "Wait for the event that ends the work", asks for deadlines like this to be sized for a loaded machine, and the SERVED_TIMEOUT_MS comment already gives Playwright's 30 s as the bound that fails on a busy host.

The pages now come from a new helper, render_checks.open_render_page, which sets SERVED_TIMEOUT_MS (120 s) as each page's default. That covers page check's page-code and scheme readings, the drawing picture, the screens and the static export. Before this, only widget_quality set the bound, by hand, and it now uses the helper. scheme keeps its own served_timeout_ms override for probe waits, so the tests that stall a probe at 500 ms or 3 s still bound only the probe and not the navigation.

Verification. I ran run_page_code against a stub server whose stylesheet takes 40 s, so the page's load arrives after 40 s:

  • Before: browser-error, Page.goto: Timeout 30000ms exceeded after 30 s.
  • After: navigation completes and the reading moves on to /api/state.

The reply markup test, the scheme stall tests, and the picture, screens and export journeys pass on Linux, along with tests/model/test_render_gate.py and test_suite_source.py. This failure appears only on test-macos, so the next scheduled run on main is the check after merge.

What this leaves. In the same run, page check gave up on the feature and thread-panel galleries at stage arrived ("work the page deferred past presentation never landed within 240000ms"). The page had presented, but some declared deferred arrival hadn't settled after 240 s. I couldn't reproduce that on Linux: with 12 busy loops on 4 cores, the feature gallery's check took 110 s instead of 52 s and passed. The run's records can't tell a slow arrival from one that never lands, so #6302 stays open for that part.

Refs #6302 — automated triage

… Playwright's 30s

page check, the reply markup check, the drawing picture, the screens and the
static export opened their pages with Playwright's default 30s for every wait
that names no deadline, page.goto's wait for `load` included. On the starved
macOS nightly the reply markup check's goto ran past it and reported
`Page.goto: Timeout 30000ms exceeded` instead of the markup finding. Every page
these readers open now comes from `render_checks.open_render_page`, which sets
`SERVED_TIMEOUT_MS`, the bound the probe waits and the suite already take.
Only widget_quality set it before; scheme keeps its own probe override.

Refs #6302
@leaf-agent
leaf-agent merged commit 63d4634 into main Nov 17, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6302 branch November 17, 2026 17:49
max-sixty added a commit that referenced this pull request Nov 18, 2026
…t has taken 240 s (#6376)

The 240 s `arrived` failures on the starved macOS nightly were deferred
work landing late, not work that never lands. `wait_until_ready` now
gives up only once a page has gone `HANDOVER_DEADLINE_MS` (still 240 s)
without progress, rather than once the whole handover has taken that
long. Progress is a readiness stage the wait hasn't seen, or fewer
arrivals left at its stage than at any reading before
(`HandoverProgress`), read from a new `lfArrivalsOutstanding` beside
`lfReadiness`. A page whose arrivals only make way for others still
fails at the bound. The render gate's shared handover budget goes.

Closes #6302 (its 30 s half was #6310).

Why a progress bound rather than a fourth raise (30 → 90 → 240 s): each
live sample a check starts loads its own page, three at a time, so the
whole handover grows with the page's samples. Reproduced here under
`taskpolicy -b` beside 96 busy loops: on main the feature gallery's
check fails exactly as on the nightly, at 240 s with 43 of 50 arrivals
landed; with the deadline raised all land by 260 s into that wait, never
more than 62 s apart. This branch passes both galleries starved.

To weigh: a sample's whole page is still one arrival of its host, and
the widget upgrade has no finer signal, so each must fit one 240 s
window.

Tests: a new browser test fails on main and passes here, and a model
test covers a page whose arrivals only swing; focused render-gate,
readiness and gallery-check tests, `test:runtime` and `check:browser`
pass. The opt-in website-verifier tests in `dev/tests`, whose fake page
had drifted from #5228 and #6090, pass again. The first commit's message
has the measurements.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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