Repository navigation
ci: run the macOS nightly starved, and accept a late PageUp in a starved Firefox - #6197
Merged
Merged
Conversation
…ved Firefox Max's direction for tests whose result depends on CPU: design them so it can't, confirm that in the nightly runs, and keep starved runs out of the merge pipeline. The macOS nightly now runs at four workers on the runner's three cores, which starves every test. A trial run at four workers (run 43780587059) took 4h11m against 4h12m at two, with the CPU at 0% idle throughout and memory peaking at 7.1 of 7.5 GB. tests/AGENTS.md now names that job as the rule's check. In a starved Firefox, PageUp in a live log can do nothing: Firefox applies the key's scroll 280-800 ms late, after the reader's 80 ms wait for it, and no event says the browser won't scroll, so ending the loss needs a deadline. Max accepted it as a corner case, so the two Firefox PageUp cases of `test_a_page_up_in_a_log_a_stream_feeds_leaves_its_end` are now non-strict expected failures; they pass at normal load. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
previously approved these changes
Nov 16, 2026
… only PageUp's The same PR's CI run lost a wheel in Firefox the way a starved Firefox loses PageUp: the browser applies the scroll after the reader's 80 ms wait ends. Main's last three push runs pass the case, so it fails only under load. The mark now covers each Firefox aim the browser scrolls, and leaves u, which Leaf's own glide scrolls. > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
approved these changes
Nov 16, 2026
This was referenced Nov 16, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 18, 2026
… failures under #6348 (#6350) Marks Chromium's `PageUp`, `PageUp on a link`, `wheel` and `wheel across` cases of `test_a_page_up_in_a_log_a_stream_feeds_leaves_its_end` as non-strict expected failures, as #6197 did for Firefox, with #6348 as the reason. This applies the maintainer's decision on #6159 after the starved macOS nightly ([run 44068597322](https://github.com/max-sixty/leaf/actions/runs/44068597322)) lost one Chromium `PageUp on a link` trial of six, the same way #6159 reproduced in Firefox. The Firefox condition becomes `aim != "u"` for both engines; `u` stays strict, since it glides by Leaf's own scroll. The comment and reason now name #6348, which tracks the code or test change that lets both browsers' marks go. Only the test's expectation changes, not product behavior. Locally, all ten cases ran: the two `u` cases passed and the eight marked cases xpassed (unstarved runner). Closes #6159 Co-authored-by: leaf-agent <[email protected]>
This was referenced Nov 24, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 24, 2026
…ait in the thread view's room test (#6975) `test_a_wheel_as_the_thread_gives_up_room_moves_it_as_far_as_without[firefox_browser]` fails on a slow machine for a reason Leaf already accepts, not because of the `keepFoot` defect it guards. It failed 8 of 18 copies on the macOS runner ([run 45070753140](https://github.com/max-sixty/leaf/actions/runs/45070753140)) and 3 of 16 on Linux under `leaf-dev suite flake --load 4`, always reading `{False: 200, True: -100}`. An instrumented copy logged the view's events in the failing runs: ``` wheel 10151ms at 400 → end 10242ms at 500 → scroll 10317ms at 500 ``` The box's scroll sequence ended at its quiet spell (`SETTLE_MS`, 80 ms plus two frames), before Firefox applied any of the wheel's scroll. `keepFoot` then made the move it owed at that end, and that write cancelled the pending wheel. #6197 accepted this loss as a corner case for the same reason: no event says the browser won't scroll, so ending it needs a deadline. That PR marked the PageUp-in-a-log cases as non-strict expected failures. This test only reports xfail when that ordering actually happened. It counts the view's scroll events until the sequence ends, and calls `pytest.xfail` only when it heard none. The defect the test guards, the view moving at the wheel itself, scrolls the box before the end. So that defect still fails the test: with `keepFoot`'s deferral removed (`if (readerScrolls(box))` → `if (false)`), the test reads `{False: 200, True: -100}` and fails rather than xfailing. With the change, under the same `--load 4`, 15 of 16 copies passed and 1 xfailed. Before it, 3 of 16 failed. Refs #6767 — automated triage. The issue's smooth-revision-above Firefox case and the thread-walk teardown are separate and stay open there. Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Max's direction for tests whose result depends on CPU: design them so it can't, confirm that in the nightly runs, and keep starved runs out of the merge pipeline. This makes the macOS nightly that run: it now uses four workers on the runner's three cores, which starves every test. A trial at four workers (run 43780587059) took 4h11m against 4h12m at two, with the CPU at 0% idle throughout and memory peaking at 7.1 of 7.5 GB, no swap.
tests/AGENTS.mdnow names that job as the slow-machine rule's check.In a starved Firefox, PageUp in a live log can do nothing: Firefox applies the key's scroll 280–800 ms late, after the reader's 80 ms wait for it, and no event says the browser won't scroll, so ending the loss needs a deadline. Max accepted it as a corner case, so the Firefox cases of
test_a_page_up_in_a_log_a_stream_feeds_leaves_its_endwhose scroll the browser applies (PageUp, PageUp on a link, wheel, wheel across) are now non-strict expected failures; this PR's first CI run lost a wheel the same way. They pass at normal load, as they did locally here and on main's last three push runs.u, which Leaf's own glide scrolls, stays a plain case.To weigh: the trial run at four workers had 30 failures against 21 at two. #6154, #6155, #6166 and #6169 fixed the load-dependent ones found then, but the first nightly after this may still turn up more; each is a test whose result depends on speed.