Skip to content

Expect the native-input delivery test to fail while #5642 is decided - #6130

Merged
max-sixty merged 1 commit into
mainfrom
agent-a2a8aafcf84d9cf54
Nov 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-a2a8aafcf84d9cf54

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

test_native_input_survives_progressive_render_revision_and_export errors at teardown because the shift watch sees the panel's Comment… c slide sideways as the row's version notice comes and goes. How the row should share its room between the notice and the hint is still being decided in #5642. So this PR marks the test xfail(strict=True) with that reason. Max asked for the xfail.

The mark alone doesn't work here. The watch reports its findings when the browser fixture ends, but pytest reads xfail against the test's call, so the same findings would still error the test at teardown. conftest.py now asks a test marked xfail to fail on its watches' findings as its body returns (reject_browser_problems in render_harness.py). That takes the findings from the collector, so teardown reports nothing new. Every other test reports as before, and the watch is unchanged. I chose this over the watch's own per-test opt-out, shifts_unsurveyed, which would let the test pass silently and stop watching it entirely. Because the mark is strict, once the hint holds still the test fails as XPASS, which prompts removing the mark.

Tests: the test reports XFAIL. As a control, a passing test given the same strict mark failed with [XPASS(strict)].

This was written by Claude Code on behalf of max-sixty

…cided

The test errors at teardown because the shift watch sees the panel's "Comment… c" slide sideways as the row's version notice comes and goes. How the row should share its room between the notice and the hint is still being decided in #5642, so the test is marked `xfail(strict=True)` with that reason.

The watch reports its findings when the browser fixture ends, but pytest reads `xfail` against the test's call. Reported at teardown, the same findings would still error the test. So `conftest.py` now asks a test marked `xfail` to fail on its watches' findings as its body returns (`reject_browser_problems` in `render_harness.py`). That takes them from the collector, so teardown reports nothing new. Every other test reports as before, and the watch itself is unchanged. Strict means a run where the hint holds still fails as XPASS, which prompts removing the mark.

Checked: the test now reports XFAIL, and a passing test given the same strict mark fails with `[XPASS(strict)]`.

> _This was written by Claude Code on behalf of max-sixty_
@max-sixty
max-sixty merged commit 65e661c into main Nov 16, 2026
5 checks passed
@max-sixty
max-sixty deleted the agent-a2a8aafcf84d9cf54 branch November 16, 2026 07:57
leaf-agent added a commit that referenced this pull request Nov 16, 2026
…h the held search before Shift+n (#6211)

Two tests failed in main's push run
[43928743834](https://github.com/max-sixty/leaf/actions/runs/43928743834)
(`3bc561561`). This PR fixes both, and changes only the tests.

- **`test_code_is_colored_without_a_word_moving`**: the test was stale
after #6191. That PR moved a docked `lf-note`'s line indent out of its
padding and into `margin-inline-start`, so the card keeps its
first-paint size. The card and its words still stand where they did, but
the note's border box now starts at the indent: 33.5px from the frame
for the example's 4-space line, where the test expected 1px. The test
now measures the note's margin box, which is what meets the frame (to
within 0.1px, since the indent is a fractional number of `ch`). It fails
on `main`. With #6191's `code.css` reverted, the old assertion passes.
-
**`test_a_step_back_after_the_page_changed_keeps_the_match_it_stood_on`**:
the test pressed before the page was ready. It released the held search
slices and pressed Shift+n at once. On a slow runner the search was
still going, so the step back stayed on the first match and said
"Searching", which is the behavior #5910 specified, and the wait for the
last match ran out at 120 s. The test now runs the held slices, and any
they schedule, until the search ends, and then presses. With `leaf-dev
suite flake --cpu-throttle 8`, it failed 4 of 18 copies before this
change and 0 of 18 after. It also passed 18 of 18 at throttle 16.

The other two failures in that run already have owners: #5642/#6130 and
#6139.

Not covered here: at throttle 8 to 16,
`test_code_is_colored_without_a_word_moving` also fails sometimes at an
earlier line. The test reads the `lf-code` token colours before
`bucket_key` is split into its own span. CI has not shown this failure,
and it happens with or without this change.

Refs #3985 — automated triage

Co-authored-by: leaf-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants