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
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
Five tests failed only in the test-macos job of the full-tier ci dispatch 45044712114 on 89b4d28d8. Linux passed each of them in the same run, and none appears in the diagnoses of the previous macOS runs (#6751, #6744, #6753). Each failed once. None has been reproduced or diagnosed.
Test
Deciding error
tests/browser/test_render_anchors.py::test_code_colouring_keeps_each_blocks_words_and_annotations, subtest language aliases
Line 1619, painted == full.evaluate(tokens): the alias block's coloured tokens lack the last token, ['// keep the source', 'rgb(90, 85, 73)'], which the full-name block has. The text matched (line 1616 passed), so the alias block's colouring had not reached its comment when it was read.
Line 5049: {False: 200, True: -100}, -100 == 100 ± 2. This is the reading the test's docstring describes for the bug it guards: the view's own move cancels Firefox's late wheel scroll.
Line 966, folded == failed: the request-status 404 for missing-image.png names its frame as …/versions/v1.html?t=test-page-key&_leaf-recovered, where the test expects …/versions/v1.html. The page had reloaded through its recovery path before the image request was reported.
Teardown: the floating panel's Back, Resolve and Close buttons, div.lf-fp-messages and the message head moved without input by (0, 577)px; "the same frame moved leaf-floating-panel, div.lf-fp-row".
Line 1925: the change drew after the scroll ended, at 300px of its 300.
The thread-walk teardown has the same shape as the [tall] teardown error of test_an_idle_open_panel_thread_shows_appended_replies in the same job (the panel's furniture moved (0, 577)px). #6754 tracks that one. Only the shape matches, and no shared cause has been shown.
Next step, as running-tend's A red ci on main is live says: dispatch each test alone on the macOS runner (18 copies, as #6744 did) to see which fail repeatedly. For any that don't reproduce alone, reproduce under load on Linux (tests/AGENTS.md, Races). The run's pytest-results-* artifact from test-macos holds the failing pages.
The same job's 12 reading-* setup failures of test_page_holds_still have their own cause, #6766.
Alias colouring. Shiki stops tokenizing a line after 500 ms by default (tokenizeTimeLimit) and returns the rest of the line unstyled. The first block of a language reaches that limit on a slow machine, likely because its first line also compiles the grammar's rules. So the js block, coloured before javascript, lost the tail of its line. Under leaf-dev suite flake --cpu-throttle 20 on Linux, the test failed 6 of 6 copies on main and passed 6 of 6 with the limit off. Bound how long a code line's colouring takes by its length instead of a 500 ms time limit #6769 sets tokenizeTimeLimit: 0 in the syntax entry and rebuilds the vendored bundle.
Recovered frame. Each failing copy differs only in the image 404's frame, which render_version (folded) reads as …/v1.html?t=test-page-key&_leaf-recovered while run_page_code reads it as …/v1.html. _failed_requests in src/leaf/render_gate/page_code.py reads request.frame.url and relies on the bootstrap's replaceState having taken the marks off first. On macOS the image's response is sometimes handled before that. It passed 12 of 12 copies on Linux under --load 2 --cpu-throttle 4. The open question is whether the reading should state the frame without the marks itself, or wait for the bootstrap's rewrite.
Smooth revision above, Firefox. 13 copies hit the case's own xfail: the revision's landing stopped the smooth scroll partway, at 59 to 102px of 300. The other 5 failed the case's precondition at line 1925, because the change drew only after the 300px scroll had ended. So on this runner no copy measured what the case is for, and the next step is in when the case lands its revision relative to the scroll.
The Firefox wheel failure is a product defect in keepFoot (scrolling.js): the view's own move still cancels Firefox's late wheel scroll on macOS. That needs a fix in the runtime, checked against a macOS Firefox dispatch.
#6861 fixes the recovered-frame failure. On the test-macos runner, 54 copies of test_plain_check_reports_page_request_failures_but_ignores_optional_assets failed 8 times on current main and passed all 54 with the fix.
The page-code reading had two ordering races, and macOS runners lost both:
It read each failed request's frame address as the failure arrived, which could be before the bootstrap took _leaf-recovered and the host key off the address. It now reads the address once the page has answered.
It recorded the missed stage before waiting for the runtime's own report, so the report sometimes came second. That showed up in 2 of 54 copies once the first race was fixed.
#6769 merged the alias-colouring fix. Two causes remain open here: the Firefox wheel defect in keepFoot, and the smooth-revision-above Firefox case, whose landing doesn't overlap the scroll on that runner. The thread-walk teardown passed 18 of 18 alone and waits for a recurrence.
Each of the five failures is now fixed, has an open repair or waits on a recurrence, so I'm closing this issue. The two remaining macOS failures turned out to be tests losing races they can't control on a starved host, not new product defects. Both reproduce on Linux under leaf-dev suite flake --load 4, and #6975 and #6977 make each test report a lost race as xfail while still failing on the defect it guards.
Firefox wheel. This isn't a separate keepFoot defect, as my earlier comment said. An instrumented copy shows the view's scroll sequence ending at its quiet spell (SETTLE_MS), about 80 ms after the wheel and before Firefox applied any of its scroll (wheel 10151ms at 400 → end 10242ms at 500 → scroll 10317ms at 500). keepFoot then made the move it owed, which cancelled the pending wheel. ci: run the macOS nightly starved, and accept a late PageUp in a starved Firefox #6197 accepted that loss as a corner case. test: expect the loss of a wheel Firefox applies after the reader's wait in the thread view's room test #6975 reports xfail only when the box heard no scroll before its sequence ended. With keepFoot's deferral removed, the test still fails. Under load: 3 of 16 copies failed before, and after, 15 passed and 1 xfailed.
Smooth revision above, Firefox. Firefox's smooth scrollBy runs by the browser's clock, so on a starved host it can finish before the held change draws. Such a run measured nothing. test: report a Firefox smooth-scroll case whose scroll ended before the change drew as an expected failure #6977 reports that run as xfail and judges every other run as before. Under load, before: 1 of 16 failed with at 299.6px of its 300. After: 24 of 24 copies across both smooth Firefox cases reported xfail. One of them was the lost race; the rest were the strict MOVES_ON_MAIN reason.
Activity
leaf-agent commentedon Nov 22, 2026
#6769 fixes the alias colouring failure. The other three that reproduced remain open here, and the thread-walk teardown didn't reproduce.
A
flakedispatch on macOS, 18 copies of each test on main at75c3a82cb(run 45070753140):test_code_colouring_keeps_each_blocks_words_and_annotations(language aliases)test_a_wheel_as_the_thread_gives_up_room_moves_it_as_far_as_without[firefox_browser]{False: 200, True: -100}each timetest_plain_check_reports_page_request_failures_but_ignores_optional_assetstest_the_page_holds_still_under_the_user[smooth-revision-above-firefox]test_the_thread_walk_stands_on_each_thread_it_openstokenizeTimeLimit) and returns the rest of the line unstyled. The first block of a language reaches that limit on a slow machine, likely because its first line also compiles the grammar's rules. So thejsblock, coloured beforejavascript, lost the tail of its line. Underleaf-dev suite flake --cpu-throttle 20on Linux, the test failed 6 of 6 copies on main and passed 6 of 6 with the limit off. Bound how long a code line's colouring takes by its length instead of a 500 ms time limit #6769 setstokenizeTimeLimit: 0in the syntax entry and rebuilds the vendored bundle.frame, whichrender_version(folded) reads as…/v1.html?t=test-page-key&_leaf-recoveredwhilerun_page_codereads it as…/v1.html._failed_requestsinsrc/leaf/render_gate/page_code.pyreadsrequest.frame.urland relies on the bootstrap'sreplaceStatehaving taken the marks off first. On macOS the image's response is sometimes handled before that. It passed 12 of 12 copies on Linux under--load 2 --cpu-throttle 4. The open question is whether the reading should state the frame without the marks itself, or wait for the bootstrap's rewrite.xfail: the revision's landing stopped the smooth scroll partway, at 59 to 102px of 300. The other 5 failed the case's precondition at line 1925, because the change drew only after the 300px scroll had ended. So on this runner no copy measured what the case is for, and the next step is in when the case lands its revision relative to the scroll.The Firefox wheel failure is a product defect in
keepFoot(scrolling.js): the view's own move still cancels Firefox's late wheel scroll on macOS. That needs a fix in the runtime, checked against a macOS Firefox dispatch.Bound how long a code line's colouring takes by its length instead of…
fix: state the page-code reading's frames and stage once the page has…
leaf-agent commentedon Nov 23, 2026
#6861 fixes the recovered-frame failure. On the
test-macosrunner, 54 copies oftest_plain_check_reports_page_request_failures_but_ignores_optional_assetsfailed 8 times on currentmainand passed all 54 with the fix.The page-code reading had two ordering races, and macOS runners lost both:
_leaf-recoveredand the host key off the address. It now reads the address once the page has answered.#6769 merged the alias-colouring fix. Two causes remain open here: the Firefox wheel defect in
keepFoot, and the smooth-revision-above Firefox case, whose landing doesn't overlap the scroll on that runner. The thread-walk teardown passed 18 of 18 alone and waits for a recurrence.fix: strip the bootstrap's marks from failed requests' frames and ord…
leaf-agent commentedon Nov 24, 2026
Each of the five failures is now fixed, has an open repair or waits on a recurrence, so I'm closing this issue. The two remaining macOS failures turned out to be tests losing races they can't control on a starved host, not new product defects. Both reproduce on Linux under
leaf-dev suite flake --load 4, and #6975 and #6977 make each test report a lost race as xfail while still failing on the defect it guards.keepFootdefect, as my earlier comment said. An instrumented copy shows the view's scroll sequence ending at its quiet spell (SETTLE_MS), about 80 ms after the wheel and before Firefox applied any of its scroll (wheel 10151ms at 400 → end 10242ms at 500 → scroll 10317ms at 500).keepFootthen made the move it owed, which cancelled the pending wheel. ci: run the macOS nightly starved, and accept a late PageUp in a starved Firefox #6197 accepted that loss as a corner case. test: expect the loss of a wheel Firefox applies after the reader's wait in the thread view's room test #6975 reports xfail only when the box heard no scroll before its sequence ended. WithkeepFoot's deferral removed, the test still fails. Under load: 3 of 16 copies failed before, and after, 15 passed and 1 xfailed.scrollByruns by the browser's clock, so on a starved host it can finish before the held change draws. Such a run measured nothing. test: report a Firefox smooth-scroll case whose scroll ended before the change drew as an expected failure #6977 reports that run as xfail and judges every other run as before. Under load, before: 1 of 16 failed withat 299.6px of its 300. After: 24 of 24 copies across both smooth Firefox cases reported xfail. One of them was the lost race; the rest were the strictMOVES_ON_MAINreason.--load 2 --cpu-throttle 4. Code-copy suffix and idle panel-thread offset each failed once on the Nov 22 macOS nightly and pass 18/18 alone #6754, which tracked the same (0, 577)px shape in another test, is closed. If it recurs, the failing run'spytest-results-*pictures should show what moved the panel, and the report for that run will bring it back to triage.Both PRs are with tend-land for CI and landing.
test: expect the loss of a wheel Firefox applies after the reader's w…
test: report a Firefox smooth-scroll case whose scroll ended before t…