Skip to content

Four tests fail only on macOS in the Nov 14 scheduled run: margin card on reply focus, cross-block search marks, two widget-quality runtimes #5950

Closed

Description

@leaf-agent

In the test-macos job of scheduled run 43587194195 (6cfc59a83), four tests failed that passed on macOS in the five previous scheduled runs with JUnit results (43412323289, 43204020539, 43007021682, 42473165114, 42365682113). The one exception is the margin journey, which failed on Nov 12 (43007021682) for a reason #5879 has since fixed. All four pass in this run's Linux job. They also pass locally on Linux at main 82913de7f. Between the last passing run (a9e4d3e99) and this one, only #5936 (server turn-end check), #5937 (file-tree folders), #5938 (comments), #5939, #5940 (deps) and #5943 (thread test waits) landed. None of them changes the runtime paths below.

They look unrelated, so each needs its own diagnosis. I've assigned this to the maintainer because no Linux runner reproduces them (Fixing a CI failure's cause in running-tend).

  • tests/journeys/test_render_margin.py::test_margin_card_holds_its_top_while_read_and_its_reply_while_written. After the agent's reply arrives, the card's top holds, which passes at line 425. Then the test clicks the Reply box and calls rendered(page), and the card has moved from 152px to 612px (cardTop 612.046875, expected 152.046875 ± 0.5, line 433). A card that jumps 460px when the user focuses its reply box would be a real product defect, not test noise.
  • tests/browser/test_render_anchors.py::test_a_search_match_across_blocks_marks_and_selects_each_piece[browser-page]. The search status reads 1 of 1, but the painted marks are [1, 0]: the second block has no mark box yet (line 6891). The test reads the marks once, right after the status text, so this may be a read that happens before the second block's mark is painted. That hasn't been checked.
  • tests/journeys/test_widget_quality.py::test_bundled_widgets_meet_the_widget_quality_checks[playwright] and [visual-review]. Both report UnreadablePage: the runtime never started within 240000ms (src/leaf/render_gate/widget_quality.py:225) after about 243s each. The other 17 packages pass in about 0.4–7s. The probe holds the first leaf.js request, captures first boxes, then releases it. output.log has no ERR_NETWORK_CHANGED, which is the transient shape seen on Nov 11–13. These are the only two cases that hit the 240s limit, so the cause is probably specific to these two packages' examples rather than the runner.

A reproduction on macOS, or the failing pages' pictures in the run's pytest-results-test-macos-* artifact, should settle whether each one is a product race or a test read.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    I've diagnosed one of the four failures and opened a test fix for it in #5951. The other three still need macOS. Here is what the run's failure pictures add:

    • Cross-block search marks: a test read race, fixed in test: wait for the page search's marks to repaint before reading them #5951. The status is drawn in the input handler, but the marks are drawn in the next repaint frame (browser/runtime/repaint.js, nextRender). The partial query before shadow already reads 1 of 1 and marks only the first block, which is the [1, 0] that macOS reported. In the failure picture both pieces are marked. On Linux, delaying the page's animation frames reproduces [1, 0], and the added rendered(page) wait fixes it.
    • Margin card on reply focus: the page scrolled, not the card. The failure picture shows the page scrolled almost to the top, with the card still beside its anchor, the "Which bracket" question. So the 460px is the page's scroll moving back by 460px after the Reply click, while the card stays attached to its passage. Locally the page holds scrollY 530 of a 1531px document through the reply click. The test passes, including with --cpu-throttle 10. What a macOS run should settle is what moves the window's scroll when the reply box takes focus.
    • Two widget-quality runtimes. playwright and visual-review pass locally in 14s and 7s, also with --cpu-throttle 10. In the same macOS job, several unrelated tests ran for 120–800s (for example test_new_rail_keeps_a_pin_reachable at 487s and test_each_sampled_focus_ring_is_shown_whole_in_its_surface at 793s), so a stalled runner is still possible. The artifact has no picture of these two, so only a macOS reproduction can tell a stall from a startup that never begins.

    The issue stays with the maintainer for the two macOS-only causes.

  3. max-sixty commented on Nov 14, 2026

    @max-sixty
    Owner

    Of the 4 tests this issue lists, 1 is fixed by #5978, 1 is fixed on main, and 2 are open. The next scheduled macOS run will show whether the fixes hold.

    Test Status
    test_margin_card_holds_its_top_while_read_and_its_reply_while_written fixed by #5978
    test_a_search_match_across_blocks_marks_and_selects_each_piece[browser-page] fixed on main by #5951
    test_bundled_widgets_meet_the_widget_quality_checks[playwright] open
    test_bundled_widgets_meet_the_widget_quality_checks[visual-review] open

    This was written by Claude Code on behalf of max-sixty

  4. max-sixty commented on Nov 15, 2026

    @max-sixty
    Owner

    Update on the 2 test_bundled_widgets_meet_the_widget_quality_checks cases the status comment above left open: [playwright] didn't reproduce in 2 runs on this Mac's efficiency cores (taskpolicy -b). On Nov 14, [playwright] and [visual-review] started in the same second on different workers, and neither page's runtime started within 240 s. That points to one event on the runner rather than to the two widgets. It fits the net::ERR_NETWORK_CHANGED failures of Nov 11–13, when loads from 127.0.0.1 failed (402 such errors on Nov 11, 348 on Nov 12). These two pages don't record console errors, so their log can't confirm it.

    This was written by Claude Code on behalf of max-sixty

  5. max-sixty commented on Nov 15, 2026

    @max-sixty
    Owner

    Closing: #5978 fixed the margin card case and #5951 the search marks, and both pass in the Nov 15 scheduled macOS run (43706054091). The two widget-quality cases failed only on Nov 14, when neither page's runtime started within 240 s in the same second, and both pass on Nov 15.

    This was written by Claude Code on behalf of max-sixty

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