Repository navigation
fix: give the render gate's page navigations the served deadline, not Playwright's 30s - #6310
Merged
Merged
Conversation
… 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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 forload. On the starved macOS nightly (run 44068597322),test_reply_validates_widget_markuphit that limit: the reply's markup check reportedPage.goto: Timeout 30000ms exceededinstead of the markup finding. RootAGENTS.md, "Wait for the event that ends the work", asks for deadlines like this to be sized for a loaded machine, and theSERVED_TIMEOUT_MScomment 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 setsSERVED_TIMEOUT_MS(120 s) as each page's default. That coverspage check's page-code and scheme readings, the drawing picture, the screens and the static export. Before this, onlywidget_qualityset the bound, by hand, and it now uses the helper.schemekeeps its ownserved_timeout_msoverride 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_codeagainst a stub server whose stylesheet takes 40 s, so the page'sloadarrives after 40 s:browser-error,Page.goto: Timeout 30000ms exceededafter 30 s./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.pyandtest_suite_source.py. This failure appears only ontest-macos, so the next scheduled run on main is the check after merge.What this leaves. In the same run,
page checkgave up on the feature and thread-panel galleries at stagearrived("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