Skip to content

Ten browser tests fail only on macOS in the Nov 9 scheduled run: panel back button shift, align, trace click, mark churn #5780

Closed as not planned

Description

@leaf-agent

Ten test cases failed only in the test-macos job of scheduled run 42604289041 (28c3b37f3). None of them failed in either job of the previous scheduled run, 42473165114 (f926f4fa7), and each passed in this run's Linux job. Linux runners can't reproduce them, so the diagnostics below are the evidence. The next macOS run after a repair confirms it (.claude/skills/running-tend/SKILL.md, A red ci on main is live).

The macOS job finished its tests in 2:58 but couldn't upload results.xml (Failed to CreateArtifact: Unable to make request: ENOTFOUND), so these come from the job log (gh run view 42604289041 --job 129116147621 --log-failed).

They need not share a cause. Grouped by what they report:

The floating panel's back button moves 39px without input (teardown watch). Each failure also reports the same frame moved span.lf-compose-placeholder-words:

  • tests/browser/test_render_application_boundary.py::test_package_thread_widgets_keep_local_filters_and_independent_subscriptions
  • tests/browser/test_render_floating_panel.py::test_one_field_starts_a_thread_takes_its_reply_and_settles_it
  • tests/browser/test_render_floating_panel.py::test_looking_at_an_attached_image_keeps_the_draft_where_it_stands
  • tests/browser/test_render_threads.py::test_a_reply_sent_while_the_agent_streams_moves_nothing_when_accepted

They report button.lf-icon-action.lf-fp-back.lf-ui.lf-ui-face moved without input by (0, -39)px. The same run's Linux job reports a related shift: #text in span.lf-compose-placeholder-enters moved without input in test_an_arrival_the_opening_view_will_cover_puts_it_away and test_native_input_survives_progressive_render_revision_and_export. Linux has reported that shift before, and #5642 owns the native-input case. So the comment box's placeholder relaying out is the first lead.

Other teardown watch findings

  • tests/browser/navigation/test_key_scopes.py::test_a_back_gesture_never_throws_away_unsent_words[draft]: typed words left the screen without a key or press: "Unsent words." in leaf-text.lf-draft-edit.lf-ui.

Readings and waits

  • tests/browser/navigation/test_comment_marks.py::test_a_commented_block_says_so_to_a_screen_user, line 670: a poll that changed nothing still rewrote the block, so a screen reader re-reads it, window.__churn == 1.
  • tests/browser/navigation/test_reading_place.py::test_align_current_item_keeps_obligation_control_heading_selection_and_history, line 983: _expect_aligned(page, "#align-ask", exact_margin=False) times out in wait_for_function after 120 s.
  • tests/browser/test_render_playwright_trace.py::test_trace_comparison_pairs_authored_results_across_delayed_sources, line 534: clicking #before's "Actual size" button times out after 120 s, even though Playwright reports the button "visible, enabled and stable". Something else receives the pointer.
  • tests/journeys/test_render_projection.py::test_visual_review_guides_one_typed_still_run, line 290: the page shows before is 1800px wide and after is 780px in .lf-error, but consume_browser_errors finds no browser error at that moment (assert ([])).
  • tests/browser/test_render_floating_panel.py::test_on_a_phone_turning_on_s_tabs_moves_nothing (width='390'), line 1187: the Threads tab stands at y: 743 and then at y: 742.9735, a 0.03px subpixel difference. The test compares the two boxes exactly. test_on_a_phone_turning_on_s_tabs_moves_nothing fails on every main push run; its onset can't be bisected locally #5653, closed by fix: read the phone tab strip after a tap's press lets go, and have the shift watch hear it #5675, owned this test's earlier press-scale reading, which was a different shape.

Cases that already have owners and failed in the same macOS job: test_a_transfer_keeps_its_persisted_source_when_the_destination_write_fails[reply], test_new_rail_keeps_a_pin_reachable, test_a_body_the_module_cannot_draw_says_why_over_its_source and test_a_finger_reaches_the_page_commands_its_keys_reach (#5711), test_an_edit_above_the_paragraph_read_holds_it_with_the_reply_box_scrolled_away[above-browser] (#5744's sibling case), and test_trace_comments_restore_an_exact_image_and_duplicate_named_element (#5657).

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

    One of the ten has a fix in review. The other nine stay open here, along with what I found about them.

    Fixed in #5781: test_visual_review_guides_one_typed_still_run. consume_browser_errors read the problem list as soon as it was called. A widget's failure box and its console report reach Python by separate paths, so the test could see the .lf-error text before the report arrived, and then consume []. #5351 and #5352 patched this race in single tests. #5781 makes the helper wait for the first problem the same way reported_browser_errors already does. It passes on Linux, and the next scheduled test-macos run will confirm it on macOS.

    Phone tabs (test_on_a_phone_turning_on_s_tabs_moves_nothing[390]). This test has now failed on macOS in three scheduled runs in a row: 42205827418, 42365682113 and this one. The first two were the tabs' press scale, which #5675 fixed. This time the tabs stayed put and only Close moved: it sat at y: 743 on Menu and On Me, then at 742.97 on Threads. Close is centred in .lf-fp-aux (align-items: center, browser/styles/floating-panel.css), and each tab puts a different control before it: none on Menu, the chooser on On Me and On Claude, Find on Threads. An offset of 0.0265px is what you get when a neighbour is about 0.05px taller than 34px. That fits macOS font metrics giving the Find button, or the aux line, a fractional height. I couldn't confirm it, because on Linux every box measures a whole number of pixels. The next step is to log each .lf-fp-aux child's getBoundingClientRect().height per tab on macOS. If one isn't 34, the fix is to give the controls' aux line a fixed height rather than widen the test's tolerance.

    Mark churn (test_a_commented_block_says_so_to_a_screen_user). The MutationObserver on #p1 counted one mutation after a poll that should have changed nothing. Right before the observer starts, the test presses Enter on the note and focus moves into the thread, and the block shows the note's focus ring. So a focus-ring attribute coming off #p1 late, on the slower runner, is the likeliest source, but the test records only a count. Recording each mutation's type and attributeName would separate that from a real rewrite.

    Not started: the four lf-fp-back shifts of −39px, which share span.lf-compose-placeholder-words with the Linux placeholder shifts that #5642 owns in part, the draft words watch, the align timeout, and the trace "Actual size" click that something else intercepts.

  3. added
    waits-on-user
    on Nov 10, 2026
  4. self-assigned this
    on Nov 11, 2026
  5. removed
    waits-on-user
    on Nov 11, 2026
  6. leaf-agent commented on Nov 14, 2026

    @leaf-agent
    CollaboratorAuthor

    The trace "Actual size" click failed the same way on Linux, in main push run 43626639929 (a3d626355), so this case is not macOS-only.

    The call log shows what intercepts the pointer. The first click attempt finds the button "visible, enabled and stable", but <body … data-lf-presented="1"> intercepts pointer events. On every retry after that, for 120 s, the button is "not visible". The test presses "Image scale" just before (test_render_playwright_trace.py:533) to reveal that button. So whatever "Image scale" opened seems to close when the first press lands on the body, but I haven't confirmed that.

  7. max-sixty commented on Nov 14, 2026

    @max-sixty
    Owner

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

    Test Status
    test_a_commented_block_says_so_to_a_screen_user fixed by #5978
    test_visual_review_guides_one_typed_still_run fixed on main by #5781
    test_looking_at_an_attached_image_keeps_the_draft_where_it_stands fixed on main by #5840
    test_package_thread_widgets_keep_local_filters_and_independent_subscriptions open
    test_one_field_starts_a_thread_takes_its_reply_and_settles_it open
    test_a_reply_sent_while_the_agent_streams_moves_nothing_when_accepted open
    test_a_back_gesture_never_throws_away_unsent_words[draft] open
    test_align_current_item_keeps_obligation_control_heading_selection_and_history open
    test_trace_comparison_pairs_authored_results_across_delayed_sources open
    test_on_a_phone_turning_on_s_tabs_moves_nothing[390] open

    #5840 fixed the same back-button finding for the attached-image test only. The three other back-button tests (package_thread, one_field, reply_sent) are not confirmed.

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

  8. max-sixty commented on Nov 15, 2026

    @max-sixty
    Owner

    Update on the 7 tests the status comment above left open. Local runs were on this Mac's efficiency cores (taskpolicy -b), one pytest at a time.

    Test Status
    test_one_field_starts_a_thread_takes_its_reply_and_settles_it fixed by #6020: main's shift watch failed it 7 of 16 runs ("lf-fp-back moved without input", 1–53px), the fix passes 16 of 16
    test_package_thread_widgets_keep_local_filters_and_independent_subscriptions passing on main (2 of 2 locally); its Nov 13 failure was #5941's, fixed by #5943
    test_a_reply_sent_while_the_agent_streams_moves_nothing_when_accepted passing on main (2 of 2 locally)
    test_on_a_phone_turning_on_s_tabs_moves_nothing[390] passing on main: #5675 fixed the Nov 5–7 failures, the Nov 9 subtest failure hasn't recurred, 3 of 3 locally
    test_a_back_gesture_never_throws_away_unsent_words[draft] not reproduced in 3 plain runs and 4 under --cpu-throttle 8 and 16
    test_align_current_item_keeps_obligation_control_heading_selection_and_history not reproduced in 3 plain runs and 4 throttled; it timed out at 120 s on Nov 9 and Nov 12
    test_trace_comparison_pairs_authored_results_across_delayed_sources not reproduced in 2 runs; failed only on Nov 9, a click timeout

    #6015 also fixed test_a_body_the_module_cannot_draw_says_why_over_its_source, which this issue lists too (details on #5711).

    #6020 is a change to the shift watch, not the runtime. A sent reply grows the panel, and box-motion carries the panel's head up from the ResizeObserver delivery of the frame the reply is drawn in. When the server's answer landed before the watch's next frame check, as it can within a long frame, the watch had already closed the send's credit, so the carry read as movement without input. The Nov 9 failures of the package-thread and streaming tests reported the same back-button movement, so #6020 may cover them too; no local run reproduced either, so the next scheduled run is the evidence.

    For test_a_back_gesture_never_throws_away_unsent_words[draft], the Nov 12 failure was the test's own CloseWatcher receiving the back gesture (browserBack == 0). A likely cause is that back_gesture waits a fixed two frames for the page's CloseWatcher instead of waiting for the page to finish rendering. That is unverified.

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

  9. leaf-agent commented on Nov 15, 2026

    @leaf-agent
    CollaboratorAuthor

    A second test now fails on Linux in the same way: test_trace_comparison_keeps_native_playback_and_shares_image_inspection, in main push run 43720451830 (9f3c6590b). The click on #after's "Actual size" button at test_render_playwright_trace.py:1063 times out after 120 s. Just before it, the test presses "Image scale" to reveal that button. The call log has the same shape as the earlier case at line 534. The first attempt finds the button "visible, enabled and stable", but <body … data-lf-presented="1"> intercepts pointer events. Every retry after that reports the button "not visible".

    So the trace image-scale menu's first press can miss its button on Linux in two tests, on two different viewers (#before and #after). Both tests use the same "Image scale" then "Actual size" sequence, and a fix in that menu or in that test pattern should cover both.

    Found while diagnosing the #3985 report.

  10. max-sixty commented on Nov 16, 2026

    @max-sixty
    Owner

    Closing, because the two cases left open don't reproduce. The rest are fixed: #6063 fixed the trace's "Actual size" click, and the status comments above cover the others. If either case below fails again in a nightly run, reopen this issue and add that run's evidence.

    • test_align_current_item_keeps_obligation_control_heading_selection_and_history timed out at 120 s in _expect_aligned on Nov 9 and Nov 12, and passed on Nov 13, 14 and 15. It passed in 3 plain local runs and 4 under --cpu-throttle 8 and 16.
    • test_a_back_gesture_never_throws_away_unsent_words[draft] failed on Nov 9 and Nov 12, and passed on Nov 13, 14 and 15, with the same 7 local passes. On Nov 12, window.ranTitle == "keep" passed and then window.browserBack was 1. So the page's own close watcher took the back gesture, and the test's browser-back watcher closed too. That fits Chrome grouping a close watcher made without a user activation with the one made before it, rather than the page having no watcher yet when the gesture came. This is an inference from the log and is unverified.

    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

Labels

tend-ci-cause

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions