You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
page check and the reply markup check give up on the starved macOS nightly: 240 s deferred-work and 30 s goto deadlines #6302
Three checks that open the page in a browser gave up on macOS in scheduled run 44068597322 (2aabb5436). It is the first complete test-macos run since #6197 made that job run starved, with four workers on three cores. All three pass on Linux in the same run and locally on main 518b9f4b0, and passed on macOS on Nov 15 (run 43706054091, before #6197).
tests/journeys/test_interact_product.py::test_page_fixtures_pass_check[examples/developer/feature-gallery] and [examples/developer/thread-panel-gallery]: page check reports {"code": "not-ready", "severity": "error", "values": {"stage": "arrived", "error": "work the page deferred past presentation never landed within 240000ms"}} (the arrived stage in src/leaf/render_checks.py).
tests/journeys/test_interact_product.py::test_reply_validates_widget_markup: the reply's markup check fails with the HTML in the reply doesn't draw: Page.goto: Timeout 30000ms exceeded … navigating to "http://127.0.0.1:…/?t=…&_leaf-recovered", waiting until "load", so the test's expected markup finding never arrives.
These are deadlines inside Leaf's own checks, not the tests', so an agent on a slow or busy machine meets them too. Root AGENTS.md, "Wait for the event that ends the work", asks that a deadline stand only where an outside party imposes one and sit at least ten times above the work on a loaded machine. The open questions are whether 240 s means the deferred work never landed or only landed late, and whether the 30 s goto bound belongs there at all. tests/AGENTS.md, "Races", says how to starve a Linux run to reproduce a macOS-only load failure.
The 30 s half has a fix waiting to land. The 240 s arrived half needs a macOS reproduction, so I've assigned this to @max-sixty.
30 s goto.#6310 opens every render-gate page with SERVED_TIMEOUT_MS (120 s) as its default. Before, they used Playwright's default 30 s, which the reply markup check's page.goto ran past. The change reproduces on Linux with a stub page whose load takes 40 s: before it, the check fails at 30 s with the same Page.goto: Timeout 30000ms exceeded; after it, navigation completes. #6310's CI and landing now go through tend-land, and the next scheduled test-macos run is the check after it merges.
240 s arrived. In run 44068597322, both galleries reached presented, but some arrival the page declared deferred (deferredArrival, afterPresentation or whenNear in browser/runtime/presentation.js) was still open at 240 s. I couldn't make that happen on Linux. With 12 busy loops on 4 cores, the feature gallery's check took 110 s (52 s unloaded) and the thread-panel gallery's took 37 s, and both passed. The macOS run was slow throughout but did finish other gallery readings:
the feature gallery's Firefox-console reading passed in 187 s;
test_page_fixture_renders[thread-panel-gallery] passed in 243 s;
the feature gallery's whole check test took 617 s across its versions before the one that failed.
The records can't tell an arrival that lands after 240 s from one that never lands. A run under taskpolicy -b with busy loops (tests/AGENTS.md, "Races") would settle it. Pass either gallery's test_page_fixtures_pass_check there with the 240 s deadline raised, and the answer is a larger deadline; still stuck at arrived, and some deferred arrival never settles under starvation, which needs a fix in its owner.
The 30 s half is merged (#6310). The 240 s half still has no Linux reproduction, so today's scheduled test-macos run is the next evidence. It is the first since #6310 merged; if the galleries stall at arrived again, its failure report brings this back to triage.
A harsher starvation run on Linux didn't produce a stalled arrival. I pinned the feature gallery's test_page_fixtures_pass_check, with its server and Chrome, to one core shared with busy loops, on main 6babaa91a:
busy loops on the core
test time
result
2
89 s
pass
8
188 s
pass
24
478 s
pass
At 24 loops the whole check ran at about 1/25 of a core, yet the test still finished faster than the macOS run, which spent 617 s on the earlier versions before one hit the deadline. Every version reached arrived well within the 240 s handover deadline. So under slowdown alone, no deferred arrival in that gallery fails to land. That leaves either a macOS-specific stall or a handover that only ran past 240 s on that slower runner. The previous comment's taskpolicy -b run is still what would tell them apart.
Activity
leaf-agent commentedon Nov 17, 2026
The 30 s half has a fix waiting to land. The 240 s
arrivedhalf needs a macOS reproduction, so I've assigned this to @max-sixty.30 s goto. #6310 opens every render-gate page with
SERVED_TIMEOUT_MS(120 s) as its default. Before, they used Playwright's default 30 s, which the reply markup check'spage.gotoran past. The change reproduces on Linux with a stub page whoseloadtakes 40 s: before it, the check fails at 30 s with the samePage.goto: Timeout 30000ms exceeded; after it, navigation completes. #6310's CI and landing now go through tend-land, and the next scheduledtest-macosrun is the check after it merges.240 s
arrived. In run 44068597322, both galleries reachedpresented, but some arrival the page declared deferred (deferredArrival,afterPresentationorwhenNearinbrowser/runtime/presentation.js) was still open at 240 s. I couldn't make that happen on Linux. With 12 busy loops on 4 cores, the feature gallery's check took 110 s (52 s unloaded) and the thread-panel gallery's took 37 s, and both passed. The macOS run was slow throughout but did finish other gallery readings:test_page_fixture_renders[thread-panel-gallery]passed in 243 s;The records can't tell an arrival that lands after 240 s from one that never lands. A run under
taskpolicy -bwith busy loops (tests/AGENTS.md, "Races") would settle it. Pass either gallery'stest_page_fixtures_pass_checkthere with the 240 s deadline raised, and the answer is a larger deadline; still stuck atarrived, and some deferred arrival never settles under starvation, which needs a fix in its owner.fix: give the render gate's page navigations the served deadline, not…
leaf-agent commentedon Nov 18, 2026
The 30 s half is merged (#6310). The 240 s half still has no Linux reproduction, so today's scheduled
test-macosrun is the next evidence. It is the first since #6310 merged; if the galleries stall atarrivedagain, its failure report brings this back to triage.A harsher starvation run on Linux didn't produce a stalled arrival. I pinned the feature gallery's
test_page_fixtures_pass_check, with its server and Chrome, to one core shared with busy loops, on main6babaa91a:At 24 loops the whole check ran at about 1/25 of a core, yet the test still finished faster than the macOS run, which spent 617 s on the earlier versions before one hit the deadline. Every version reached
arrivedwell within the 240 s handover deadline. So under slowdown alone, no deferred arrival in that gallery fails to land. That leaves either a macOS-specific stall or a handover that only ran past 240 s on that slower runner. The previous comment'staskpolicy -brun is still what would tell them apart.