Skip to content

test: hold and step the shift-watch overshoot fault instead of letting it run free - #7508

Merged
leaf-agent merged 1 commit into
mainfrom
fix/shift-watch-held-overshoot
Nov 28, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/shift-watch-held-overshoot

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_a_carry_draws_the_way_of_a_step_news_may_take's overshoot fault now holds its carries and steps them, so the watch reads each past-place pose however slowly the host draws frames. This follows the review comment on #7492: running the free overshoot for 1600 ms still depended on frame rate, since a delayed browser can advance past the excursion before the watch samples it twice.

  • The fixture pauses the overshoot's carries as it starts them.
  • step_carries sets them to poses 10, 20 and 5 px past where the rise puts button#head (progress 0.5, 0.6 and 0.9 of the keyframes), holding each for four animation frames, then finishes them at the destination.
  • In the key variant, Shift is pressed on a pose short of the destination (progress 0.25), and the test waits ten frames for its rendering to end before drawing the overshoot. Both key variants use this sequence.
  • The fault case still requires a moved-without-input report naming button#head. The shift watch itself is unchanged. The overshoot goes back to the 200 ms duration the other faults use (1600 ms with a key), since stepping no longer depends on it.

Verification on Linux:

[overshoot-*-True], leaf-dev suite flake --copies 24 --workers 4 --load 2 False True
--cpu-throttle 3 24 passed 24 passed
--cpu-throttle 8 24 passed 24 passed

All 11 cases of the test pass unthrottled. As a control, stepping the same held carries only to poses short of the destination (progress 0.1, 0.2, 0.4) fails both overshoot cases with no button#head report. So the report comes from the overshoot, not from holding the carry.

Refs #6744

…g it run free

#7492 made the overshoot carry run for 1600 ms so a slow host would read its
past-place pose twice. That still depends on frame rate: a delayed browser can
advance past the excursion before the watch samples it twice, and waiting for
`playState === 'finished'` can't recover missed samples.

The fixture now pauses the overshoot's carries, and the test steps them to
poses 10, 20 and 5 px past the destination, holding each for four frames, then
finishes them. In the key variant, Shift is pressed on a pose short of the
destination, and the test waits ten frames for its rendering to end before
drawing the overshoot. The fault case still requires a report naming
`button#head`. The overshoot is back to the 200 ms duration the other faults
use (1600 ms with a key), since stepping no longer depends on it.

Behavior protected: a carry that draws a protected head past where its rise
puts it fails the watch, now on any frame rate.
@leaf-agent
leaf-agent merged commit 8d8609b into main Nov 28, 2026
8 checks passed
@leaf-agent
leaf-agent deleted the fix/shift-watch-held-overshoot branch November 28, 2026 07:57
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.

1 participant