Skip to content

Three browser tests fail only on macOS in the Nov 8 scheduled run: open view cover, preparation landing, reply box scrolled away #5744

Closed

Description

@leaf-agent

Three browser tests failed only in the test-macos job of scheduled run 42473165114 (f926f4fa7). None of them failed on macOS in the previous scheduled run, 42365682113 (391c24622). All three pass on Linux main 2f47830e4 locally with --run-main, so a Linux runner can't reproduce them. These diagnostics are the evidence from before a repair, and the next macOS run after one is the evidence from after it (A red ci on main is live in .claude/skills/running-tend/SKILL.md). They need not share a cause.

  • tests/browser/test_render_floating_panel.py::test_an_open_view_covers_the_page_beneath_it: after Escape closes the view, seenRect(window.under, new Map()) returns null, and the test's evaluate throws TypeError: Cannot read properties of null (reading 'right') (test_render_floating_panel.py:2642). The page reports under as not shown at all once the view is gone.
  • tests/browser/test_render_shift_watch.py::test_an_input_owns_the_landing_of_a_widget_preparation_it_began: the test moves #control by 40px while the markdown grammar is held and expects the shift watch to report it. The watch reported nothing (consume_browser_errors found [], test_render_shift_watch.py:1552).
  • tests/browser/threads/test_seated_threads.py::test_an_edit_above_the_paragraph_read_holds_it_with_the_reply_box_scrolled_away[on screen-browser]: after the test scrolls the paragraph to 150px from the top, the reply box is still fully in the viewport (viewport ratio 1). That fails the case's precondition before the edit it tests (test_seated_threads.py:486). The window is 1440×900. A taller thread layout on macOS, or a scroll that didn't go as far, would both give this reading.

The last case fails at a precondition and the second at the watch's own reading, so each may be a test that assumes Linux metrics. Read each test's intent before deciding whether the test or the page is wrong. #5711 owns the macOS-only failures from the run before this one.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    All three passed on macOS in the Nov 7 run (42365682113, 391c24622) and failed in the Nov 8 run (42473165114, f926f4fa7), so whatever changed landed in those 32 commits. I couldn't make any of them fail on Linux. That leaves no cause I can defend yet, so there's no fix PR. Today's scheduled macOS run on main is the next piece of evidence: it shows whether each of these is a durable failure or a single miss.

    What rules out the obvious explanations. On current main, c99713190, all six cases pass on Linux at --cpu-throttle 0, 6 and 20, so a slower renderer doesn't reproduce them. They also pass with the runtime's one platform switch forced to macOS (MAC set to true). So neither explanation accounts for them. Font metrics and the engine build are still possible causes, and a Linux runner can't vary either.

    Reply box scrolled away ([on screen-browser]). This is not a scroll that fell short or a page too short to scroll. On Linux, after the test's scrollBy, the reply box stands at y≈1160, 1010px below the paragraph. The page can scroll about 2100px past that point, so the scroll isn't clamped. The macOS failure screenshot (screens/…reply_box_scrolled_away_on_screen-browser_…-0.png in the run's macOS artifact) shows something else. The page is about 360px further down than the test put it. The paragraph being read is above the window, and the focused reply box sits with its foot near the panel's 84px scroll-padding-bottom, where a reveal of the focused field would put it. It stayed there for the whole 120s wait. So on macOS, something scrolled the focused box back into view after the user's scroll. If that holds up, it's a page defect, not a test that assumes Linux metrics. I held the /api/* requests that follow typing, released them after the scroll, and the page still didn't move on Linux. So it isn't simply a late server answer.

    Open view cover. After Escape, seenRect(under) is null, while the failure screenshot shows the page at scroll 0 with paragraphs 0–10 uncovered above the folded row. The panel's cover follows its moving surface (declareCover), and the test reads it as soon as .lf-fp-view is gone, without panel_settled(page, open=False). That made a closing motion the first suspect. A frame-by-frame probe on Linux disproves it: under reads as seen on every frame from the first one after Escape, including the frames where the ground is still animating.

    Preparation landing. I have no lead specific to macOS. Of the commits in the range, #5638 is the only one that changes tests/shift_watch.js: it adds credit for a popover carried by its implicit anchor. That is where I'd look first if this failure recurs. It is a suspect, not a cause.

    Next step. If today's scheduled run fails these again, the experiment that can tell causes apart is a ci workflow_dispatch on macOS at 391c24622 with the suspect commits added back. For the reply box, that means #5665 and #5693, which change when the user's place is kept. For the other two, it means #5638. A Linux runner can't add evidence beyond what is here.

  3. leaf-agent commented on Nov 9, 2026

    @leaf-agent
    CollaboratorAuthor

    In the Nov 9 scheduled run (42604289041, 28c3b37f3), the reply-box precondition failed on macOS in the sibling case test_an_edit_above_the_paragraph_read_holds_it_with_the_reply_box_scrolled_away[above-browser], with the same reading: expect(box).not_to_be_in_viewport() saw viewport ratio 1. The [on screen-browser] case and test_an_open_view_covers_the_page_beneath_it passed in that run. test_an_input_owns_the_landing_of_a_widget_preparation_it_began failed again. The macOS job couldn't upload its JUnit file (ENOTFOUND), so the job log is the record: gh run view 42604289041 --job 129116147621 --log-failed.

  4. added
    waits-on-user
    on Nov 10, 2026
  5. self-assigned this
    on Nov 11, 2026
  6. removed
    waits-on-user
    on Nov 11, 2026
  7. max-sixty commented on Nov 14, 2026

    @max-sixty
    Owner

    Of the 4 cases this issue lists, 3 are fixed by #5978 (merged) and 1 is open. The next scheduled macOS run will show whether the fixes hold.

    Test Status
    test_an_input_owns_the_landing_of_a_widget_preparation_it_began fixed by #5978
    test_an_edit_above_the_paragraph_read_holds_it_with_the_reply_box_scrolled_away[on screen-browser] fixed by #5978
    test_an_edit_above_the_paragraph_read_holds_it_with_the_reply_box_scrolled_away[above-browser] fixed by #5978
    test_an_open_view_covers_the_page_beneath_it open

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

  8. leaf-agent commented on Nov 14, 2026

    @leaf-agent
    CollaboratorAuthor

    test_an_open_view_covers_the_page_beneath_it, the case still marked open, has failed on macOS only once: in the Nov 8 run (42473165114). It passed in all six scheduled macOS runs since, from Nov 9 through Nov 14 (42604289041, 42802603869, 43007021682, 43204020539, 43412323289, 43587194195). Over that same stretch, the three cases #5978 fixed kept failing. So this one reads as a single miss, not a durable failure. If it fails again, the missing panel_settled(page, open=False) before the read is still the first place to look.

    How each run was read

    Nov 9 is from the job log, since that run's macOS JUnit upload failed (see the comment above). Nov 10 is from the failed-test list in gh run view 42802603869 --job 129783653014 --log-failed, which doesn't name this test. Nov 11–14 are from each run's pytest-results-test-macos-* JUnit file, where the testcase has no failure or error child.

  9. max-sixty commented on Nov 15, 2026

    @max-sixty
    Owner

    Update on test_an_open_view_covers_the_page_beneath_it, the one test the status comment above left open: it didn't reproduce in 2 runs on this Mac's efficiency cores (taskpolicy -b). It failed only on Nov 8, reading a null rect while the view was shut, and hasn't failed in the 5 nightly runs that finished since.

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

  10. max-sixty commented on Nov 15, 2026

    @max-sixty
    Owner

    Closing: all three tests pass in the Nov 15 scheduled macOS run (43706054091). #5978 fixed the reply-box and widget-preparation cases. test_an_open_view_covers_the_page_beneath_it failed only on Nov 8 and has passed in every scheduled run since.

    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