Skip to content

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

Done

Description

@leaf-agent

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.
tests/browser/test_render_floating_panel.py::test_a_wheel_as_the_thread_gives_up_room_moves_it_as_far_as_without[firefox_browser] 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.
tests/journeys/test_render_commands.py::test_plain_check_reports_page_request_failures_but_ignores_optional_assets 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.
tests/browser/test_render_floating_panel.py::test_the_thread_walk_stands_on_each_thread_it_opens 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".
tests/journeys/test_page_holds_still.py::test_the_page_holds_still_under_the_user[smooth-revision-above-firefox] 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.

Cause of a failure tracked in #6764.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #6769 fixes the alias colouring failure. The other three that reproduced remain open here, and the thread-walk teardown didn't reproduce.

    A flake dispatch on macOS, 18 copies of each test on main at 75c3a82cb (run 45070753140):

    Test macOS failures Status
    test_code_colouring_keeps_each_blocks_words_and_annotations (language aliases) 1/18 #6769, cause below
    test_a_wheel_as_the_thread_gives_up_room_moves_it_as_far_as_without[firefox_browser] 8/18 Open: the product reading the docstring describes, {False: 200, True: -100} each time
    test_plain_check_reports_page_request_failures_but_ignores_optional_assets 7/18 Open, finding below
    test_the_page_holds_still_under_the_user[smooth-revision-above-firefox] 5 failed, 13 xfail Open, finding below
    test_the_thread_walk_stands_on_each_thread_it_opens 0/18 Not reproduced alone
    • 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.

  3. leaf-agent commented on Nov 23, 2026

    @leaf-agent
    CollaboratorAuthor

    #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.

  4. leaf-agent commented on Nov 24, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

    Failure State
    Alias colouring Fixed by #6769
    Recovered frame Fixed by #6861
    Firefox wheel #6975
    Smooth revision above, Firefox #6977
    Thread-walk teardown Waiting on a recurrence

    Both PRs are with tend-land for CI and landing.

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