Skip to content

Five tests fail only on macOS in the Nov 23 scheduled run: align current item, file editor save, read-state teardown, pr-walkthrough ring, motion recordings #6872

Description

@leaf-agent

These tests failed only in the test-macos job of scheduled run 45159811021 on c8ab9ec1df44. The Linux test job ran them in the same run and passed them, and none failed in the previous scheduled run, 45014446027 on d53e9994f. None has been reproduced. As running-tend's A red ci on main is live says, the next step is to dispatch each test alone on the macOS runner and find which fail every time.

Test Deciding error
tests/browser/navigation/test_reading_place.py::test_align_current_item_keeps_obligation_control_heading_selection_and_history _expect_aligned (line 1312): Page.wait_for_function times out after 120 s
tests/browser/test_render_files.py::test_file_editor_adopted_text_starts_undo_history_and_save_retries moved-without-input on div.cm-gutterElement.cm-activeLineGutter in lf-file-editor#notes-file by (0, 4) and (0, 14). The same run also reports Failed to load resource: net::ERR_FAILED on /api/files/notes and words-left-screen "Baseline notes.Draft." #6859, #6787 and #6776 changed this widget's save and colouring in the range.
tests/journeys/test_render_read_state.py::test_a_page_seat_the_open_panel_stands_over_is_not_read[True] and [False] (teardown) moved-without-input on leaf-text.lf-ui in lf-diff#patch's shadow root by (0, -257) and (0, -297)
tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface 1 fault over 42 samples: in pr-walkthrough, the top edge of the ring on lf-group "Approve PR #3865?" shows at 87% of 171 samples. #6842 and #6840 changed how boxes draw their rings in the range.
tests/journeys/widgets/test_motion.py::test_motion_recordings_share_native_playback_and_a_sticky_transport after play.tap() the two recordings' currentTime differ: 0.3232 == 0.2859 (line 100). #5169 and #4418 tracked earlier drifts between these recordings.

The same run's other macOS-only failures already have owners: the github-discoveries render gate and the [Feed] teardown shift in test_primary_reading_holds_remote_changes_before_package_layout belong to #6744, and the Firefox glide key and Firefox send-flash tests belong to #6303.

Cause of a failure tracked in #6867.

Activity

  1. added
    tend-ci-cause
    on Nov 23, 2026
  2. changed the title [-]Six tests fail only on macOS in the Nov 23 scheduled run: align current item, file editor save, read-state teardown, pr-walkthrough ring, motion recordings[/-] [+]Five tests fail only on macOS in the Nov 23 scheduled run: align current item, file editor save, read-state teardown, pr-walkthrough ring, motion recordings[/+] on Nov 23, 2026
  3. leaf-agent commented on Nov 23, 2026

    @leaf-agent
    CollaboratorAuthor

    I ran each test alone on the macOS runner: 9 copies with --load 2, on main at 1bf92095f (run 45203893598). That splits the five tests three ways.

    pr-walkthrough ring: a real defect, fix in #6887. It failed 9 of 9. A bisect on the same runner put the first failing commit at #6771 (e4cf28028); its parent passes. A diagnostic run showed what covers the ring: the focus preview of the decision's margin marker. #6771's markRoom walks the preview's subject's tree ancestors. The marker's seat isn't inside the lf-group, so the walk never counted the decision's ring. The preview stood with its bottom exactly on the ring's outer edge (y 434.8), and its face's shadow covered x 1058–1192 of the ring's top edge. #6887 starts the walk from the element a margin seat stands for. On that branch the journey test passes 3 of 3 copies on macOS, and a new browser test reproduces the 0px clearance on Linux. Its CI and landing are with tend-land.

    Read-state teardown shift: intermittent, not yet fixed. Each parameter failed 1 of 9, with the same leaf-text shift (−257, −297) as the scheduled run. In the failing frame the diff's thread outlet grows 88px (150 → 238, the answer laid out) in the same paint as the test's second scrollBy, which brings the outlet up from below the 900px window foot. So the answer's growth wasn't credited to any input. That fits the answer's layout and the scroll landing in one starved frame. The next step is to let the answer's frame render before the scroll and show the before and after on the macOS runner (54 copies at the 1-in-9 rate). That work stays on this issue.

    Align current item, file editor save, motion recordings: passed every copy (9 of 9 each). None of the three reproduced under load on its own, so the only evidence left is the next failure. If one recurs, its deciding diagnostic should show whether it is the same failure:

    • the align test: the condition _expect_aligned waits for;
    • the file editor test: the ERR_FAILED on /api/files/notes beside the gutter shift;
    • the motion test: the currentTime gap after the pause-align step.

    This issue stays open for the read-state shift.

  4. leaf-agent commented on Nov 23, 2026

    @leaf-agent
    CollaboratorAuthor

    The file-editor test failed again, this time on Linux in push run 45249094355, with the same ERR_FAILED and gutter-shift diagnostics. It now reproduces locally (11 of 12 copies at --cpu-throttle 8), and the cause is the test's fake clock. Playwright's clock turns requestAnimationFrame into a timer, so CodeMirror's measure after view.setState, which corrects the gutter from its fresh 14px estimate to 24px rows, can land after a real paint. #6905 runs the test on real time, and it passes 18 of 18 copies at throttle 8. It doesn't touch this issue's read-state teardown shift.

  5. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    The read-state teardown shift has a fix in #6974. The test scrolled to the answer as soon as it entered the DOM, so on a starved runner the answer's layout and the scroll landed in one frame, and the watch read the outlet's growth as a move without input. The test now waits for the answer to render before it scrolls. On the macOS runner, current main failed 8 of 54 copies with the same −257/−297 px shift (run 45342510720), and the branch passed 108 of 108 (run 45342507421). Its CI and landing are with tend-land.

    This was the last test here still waiting on a fix: the ring and the file editor were fixed in #6887 and #6905, and the align and motion tests wait for a recurrence. So #6974 closes this issue when it merges.

  6. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    The file editor's gutter shift is back, in a different test from the one #6905 fixed. tests/browser/test_render_files.py::test_file_editor_status_controls_take_a_finger_on_a_phone failed only on macOS in scheduled run 45378690705 on e7d5808f3, and Linux test passed it. Its findings have the same shape as this issue's original row: moved-without-input on div.cm-gutterElement.cm-activeLineGutter and div.cm-gutterElement in lf-file-editor#notes-file, by (0, 4) and (0, 14), plus console-error Failed to load resource: net::ERR_FAILED and a 409 (Conflict) on /api/files/notes. Not yet reproduced. The next step is a macOS dispatch of this test alone, to compare its rate with the adopted_text test #6905 fixed.

  7. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    The phone status-controls failure has the same cause as #6905's: the test installed Playwright's fake clock before the page loaded, so CodeMirror's gutter measure could land after a real paint. It reproduces locally, failing 11 of 12 copies at --cpu-throttle 8 with the same gutter finding. #7027 runs the test on real time with its assertions unchanged, and it passes 18 of 18 copies under the same throttle. Its CI and landing are with tend-land, and it closes this issue when it merges, since the align and motion tests are waiting for a recurrence.

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