Skip to content

Code-copy suffix and idle panel-thread offset each failed once on the Nov 22 macOS nightly and pass 18/18 alone #6754

Not planned

Description

@leaf-agent

These two tests failed only in the test-macos job of scheduled ci run 45014446027 on d53e9994f. Linux passed both in the same run. Both also passed on macOS in the Nov 21 scheduled run (44896279165, c72a8ad03) and in the full-tier dispatch 44989336653 on fac415460. A flake dispatch ran 18 copies of each alone on the macOS runner at b433c569c (45035384303), and all 36 passed. So neither has reproduced outside the full nightly, and the cause of each is undiagnosed.

Test Deciding error
tests/journeys/test_render_anchors.py::test_code_copy_keeps_source_and_stays_beside_scrolling_and_revised_blocks In suffix_uncovered() (line 594), after #title is tapped: assert reading["end"][0] < reading["frame"][1] → 433.203125 < 366. The suffix's right edge sits 67 px past the pre's right edge, as if the pre.scrollLeft = pre.scrollWidth set just before it had not taken effect, or something reset it.
tests/browser/test_render_threads.py::test_an_idle_open_panel_thread_shows_appended_replies[tall] Line 113: after the tall reply is appended, the first message's offset within .lf-fp-view reads 15.02 where it was 14 ± 0.5. The message moved about 1 px.

Both look like readings that depend on load. The code-copy test reads geometry right after a scroll and a tap that nothing waits on, and the panel test reads a 1 px move after an append. Neither is established. tests/AGENTS.md, Races, says how to reproduce a starved failure on Linux: run leaf-dev suite flake with --load busy loops or --cpu-throttle. Running the merge base under the same load separates a load-dependent test from a regression. If one reproduces, state the ordering the read relies on (Races, Transient states) rather than widening the tolerance. The test-macos job's pytest-results-* artifact for the run holds the failing pages.

Cause of a failure tracked in #6751.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #6755 fixes an ordering gap in the code-copy journey. The panel-thread offset is still undiagnosed and stays open here.

    Code copy. The test waited for its two sideways scrolls (the touch swipe on #plain, ArrowRight on #colored) with scroll_settled(page), which watches the document's vertical scroll, so it returned before the block stopped moving. A probe right after the wait read #plain.scrollLeft still rising from 295 to 472 over about 25 frames. #6755 makes both waits watch the block on the x axis. It doesn't prove this explains the macOS reading. The fling stops around 470 px of a 2933 px range, not 67 px from the end, and on Linux a scrollLeft write cancels the fling. Since the test already passed 18/18 alone on macOS, the next scheduled run after #6755 merges is the check.

    Panel thread, [tall]. It passed 20/20 on Linux under leaf-dev suite flake with --cpu-throttle 8 --load 2 and with --cpu-throttle 20 --load 4, so it hasn't reproduced. If the next nightly fails it again, the next step is to record the view's scrollTop and the heights of the elements above the first message in the failure message. The current assertion stops at the offset, before the scrollTop check, so the artifact can't say whether the view scrolled or something above the message grew.

    At throttle 20, every copy of the code-copy journey timed out earlier, at line 452, waiting for ArrowRight to start scrolling #colored. That rate looks too slow for keyboard scrolling to start at all, not like the nightly failure.

  3. leaf-agent commented on Nov 22, 2026

    @leaf-agent
    CollaboratorAuthor

    Both cases of test_an_idle_open_panel_thread_shows_appended_replies failed on macOS in full-tier dispatch 45044712114 on 89b4d28d8, which contains #6755. Linux passed both in the same run.

    The code-copy journey passed on macOS in this run, its first full macOS run with #6755.

  4. leaf-agent commented on Nov 23, 2026

    @leaf-agent
    CollaboratorAuthor

    test_an_idle_open_panel_thread_shows_appended_replies[tall] errored in teardown on macOS again in full-tier dispatch 45073646401 on 3c9424f48. button.lf-icon-action.lf-fp-back… moved without input by (0, 577)px. The [short] case passed in this run.

  5. leaf-agent commented on Nov 23, 2026

    @leaf-agent
    CollaboratorAuthor

    The panel-thread teardown failures and the thread-walk teardown in #6767 show the same reading, so they likely share one cause. The panel-thread test stays open here. The code-copy journey has now passed in both full macOS runs since #6755 (45044712114, 45073646401).

    The 577 px is a constant, not the height the reply added. In each errored run, every landmark the watch flagged moved down by exactly 577 px between two readings about 50 to 270 ms apart. The watch saw no animation and no scroll, and each node's layout equals its rect:

    Run Test Back button top, before → after
    45044712114 test_the_thread_walk_stands_on_each_thread_it_opens 146 → 723
    45044712114 …shows_appended_replies[tall] 723 → 1300
    45073646401 …shows_appended_replies[tall] 723 → 1300

    The offset is the same from two starting positions and with two different replies: this test's 30 paragraphs, and the thread-walk's "The window covers it. " * 300. Both are answers taller than the view, so the move follows a tall append but isn't sized by it. In the [tall] runs the "after" reading puts the panel's head below the 900 px window. The failure screenshot from 45073646401 shows the panel settled with its head near y = 160, so whatever drew the panel at +577 px didn't last. Either the panel drew one passing frame 577 px low, or one reading took its coordinates from a different origin than the reading before it. Its evidence doesn't yet tell these apart. The [short] offset failure (18.09 vs 14 ± 0.5) has a different signature and may be unrelated.

    None of the three has failed when run alone: 18/18 alone on macOS, and 20/20 on Linux under --cpu-throttle 20 --load 4. Each failure has come in a full-tier macOS run. The next step is to have the shift watch record its two readings' scroll offsets and the panel's getBoundingClientRect() together with its computed translate. With those, the next failure would show whether the panel drew a frame 577 px low or the reading changed its origin.

  6. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    Closing: the code-copy journey is fixed, and the panel-thread failure now waits on its next occurrence.

    A new failure of either test in a scheduled run brings it back to triage through that run's report.

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