You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code-copy suffix and idle panel-thread offset each failed once on the Nov 22 macOS nightly and pass 18/18 alone #6754
These two tests failed only in the test-macos job of scheduled cirun 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.
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.
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.
#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.
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.
[short] failed at the same line 113 offset assertion, by more: 18.089 == 14 ± 0.5, a 4 px move where the Nov 22 nightly's [tall] read 1 px.
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.
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:
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.
Activity
test: wait for the code block's own sideways scroll to settle in the …
leaf-agent commentedon Nov 22, 2026
#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) withscroll_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.scrollLeftstill 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 ascrollLeftwrite 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 underleaf-dev suite flakewith--cpu-throttle 8 --load 2and 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'sscrollTopand the heights of the elements above the first message in the failure message. The current assertion stops at the offset, before thescrollTopcheck, 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.test: wait for the code block's own sideways scroll in the code-copy …
leaf-agent commentedon Nov 22, 2026
Both cases of
test_an_idle_open_panel_thread_shows_appended_repliesfailed on macOS in full-tier dispatch 45044712114 on89b4d28d8, which contains #6755. Linux passed both in the same run.[short]failed at the same line 113 offset assertion, by more:18.089 == 14 ± 0.5, a 4 px move where the Nov 22 nightly's[tall]read 1 px.[tall]errored at teardown: the shift watch found the panel's Back, Resolve and Close buttons, the message head and the message text moving without input by (0, 577)px.test_the_thread_walk_stands_on_each_thread_it_openserrored in the same job with the same (0, 577)px panel move. Five tests fail once only on macOS in the Nov 22 full-tier dispatch: alias colouring, Firefox wheel, recovered frame, thread-walk teardown, smooth revision #6767 tracks it with the run's other one-off macOS failures, and no shared cause has been shown.The code-copy journey passed on macOS in this run, its first full macOS run with #6755.
leaf-agent commentedon Nov 23, 2026
test_an_idle_open_panel_thread_shows_appended_replies[tall]errored in teardown on macOS again in full-tier dispatch 45073646401 on3c9424f48.button.lf-icon-action.lf-fp-back…moved without input by (0, 577)px. The[short]case passed in this run.leaf-agent commentedon Nov 23, 2026
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
layoutequals itsrect:top, before → aftertest_the_thread_walk_stands_on_each_thread_it_opens…shows_appended_replies[tall]…shows_appended_replies[tall]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.09vs14 ± 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'sgetBoundingClientRect()together with its computedtranslate. With those, the next failure would show whether the panel drew a frame 577 px low or the reading changed its origin.leaf-agent commentedon Nov 24, 2026
Closing: the code-copy journey is fixed, and the panel-thread failure now waits on its next occurrence.
c8ab9ec1d.test_the_thread_walk_stands_on_each_thread_it_openspassed in the Nov 23 scheduled run. On thetest-macosrunner with--load 4at7da7a6a71, all 18 copies of each passed too (45342336235), as did earlier runs alone on macOS and on throttled Linux. test: report the panel thread's whole reading when an append moves its first message #6971 makes the offset assertion print the view'sscrollTopand the window tops of the view and the message, before and after the append. With that, the next offset failure shows whether the view scrolled, moved on screen, or the message moved within it. The (0, 577)px teardown finding has the same signature as the thread-walk teardown in Five tests fail once only on macOS in the Nov 22 full-tier dispatch: alias colouring, Firefox wheel, recovered frame, thread-walk teardown, smooth revision #6767. Its next failure should show whether the panel drew one frame low or one reading used a different origin.A new failure of either test in a scheduled run brings it back to triage through that run's report.
test: report the panel thread's whole reading when an append moves it…