Repository navigation
fix(shots): hold the transition while a scene leaving program is removed - #271
Conversation
Quest-Claim: 007c42d5a26a046d
The test took Interview by the show's 300 ms fade on the real clock, which the program clock ends on its own. Under load it ended before the transitioning assertion, or between the frame kittest read and the click on the sheet's Remove: the sheet then lost its "leaving the program" line, re-centered shorter, and the click landed on the backdrop, closing it. Starting the transition an hour ahead holds it at its start until the removal ends it. Finishes quest/m0/shots-scene-remove-flake.md and adds quest/m0/shots-exit-segfault.md for a crash on exit found while reproducing it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe scene-removal test now schedules its transition to Interview one hour ahead. The prior document about investigating intermittent scene-removal failures is deleted. A new document describes a reported SIGSEGV after shots-test runs and outlines a core-dump investigation. Merge Risk:
|
|
Maintainer decision (/quest-run, 2026-11-26):
(Written by Claude Opus 5.5) |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…quit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finishes
quest/m0/shots-scene-remove-flake.md:shots::a_scene_removes_from_its_padno longer races the program clock.Root cause
The test took Interview using the show's 300 ms fade, with
Instant::now()as the start. Then it checked that removing Main while Main was leaving finishes the transition. The engine's program clock ends that fade on its own after 300 ms of real time, so under load the test lost the race in two ways:shots.rs:832assert!(transitioning()): a stall longer than 300 ms aftertakeended the fade first.shots.rs:836, Main not removed: the sheet says "It is leaving the program…" only while the fade is under way. The fade ended between the frame kittest read the sheet's Remove position from and the click. The sheet lost that sentence, got shorter, and re-centered. The click then landed on the backdrop, which closes the modal without removing anything.Instrumented runs also showed the fade had usually ended before the confirm click (159 of 163 passing runs). So the step mostly wasn't testing the "leaving in a transition" path it describes.
Fix
The test starts the transition an hour ahead. The program clock holds it at its start, and the removal under test is what ends it. No retry, sleep, or timeout changed. This is a test-only change: the product code behaves as #266 intended.
Caused by
Validation
Stress loop: the test binary run directly, 96 copies at once on a 24-core host (4× oversubscription), each with its own
SHOTS_DIR, throughquest gate.settle20 s timeout (:727)just cipasses, and a fulljust shotsrun passes (110 of 110).The
settletimeouts and the crash on exit are separate from this race; see Decisions and Follow-ups.Decisions
Made without the maintainer (away); please review:
kio::clock::Manualclock on the shots runtime. The manual clock would stop the program clock thatsettle, the thumbnails, andquitrely on. A stinger was the other way to hold it, but it needs a playing media clip. The one-hour start fixes state instead of widening a wait.settle's 20 s bound is unchanged. It only ran out at 4× oversubscription (quest gatekeeps load below that). It is shared by every shots view, which the quest puts out of scope. No follow-up was added; recommend one only if it shows up at normal load.Follow-ups
quest/m0/shots-exit-segfault.md[S] - a shots test process sometimes crashes with SIGSEGV aftertest result: okunder 4× oversubscription (3 of 384 runs). Nextest would fail that run. Decided 2026-11-26 (maintainer, /quest-run): ✅ keep it (rejected: drop it), recorded in its Plan. No open decisions.API and wire impact
None (test and quest files only).
Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown (arm A)
Implementer: Claude Code, claude-opus-5-5, unknown (iterate, XS, arm A)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.Head: 044ab7a
Base: origin/main at f78243b
Risk: medium,
the base has no RISK.md to name what is always high or customer-facing, so every change is mediumClassified: medium by default
Reviewer: Codex, gpt-6.2-sol, medium effort
Session:
01a21a93-7cbf-7302-8f03-d0ef52194a87, round 2Score: 10/10,
The revised teardown note correctly limits the comparison to tests that call `quit` and identifies `shoot` as the named-view teardown path.Rounds: 2; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none