Skip to content

page check and the reply markup check give up on the starved macOS nightly: 240 s deferred-work and 30 s goto deadlines #6302

Closed

Description

@leaf-agent

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.

Cause of a failure tracked in #4225.

Activity

  1. added
    tend-ci-cause
    on Nov 17, 2026
  2. leaf-agent commented on Nov 17, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

  3. removed their assignment
    on Nov 18, 2026
  4. leaf-agent commented on Nov 18, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions