Repository navigation
test(sidebar): give the build PC's copy the demo's pane status in sidebar-filter - #3757
Conversation
…e turn-end wait holds whenever the first roster comes
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
One reviewer: test-only PR (scripts/sidebar-filter-demo-regression.ts). Test-only PR ( #3753's new wait could never become true when the first roster arrived after the demo's 4.5 s turn end, which happens under load (a 30 s timeout at |
…t roster (#3759) ## Summary Follows up #3757, from the merge pass's Codex review (LOW). ## Cause In `scripts/sidebar-filter-demo-regression.ts`, the `EventSource` wrapper copies the demo's `pane-status` to the Build PC's row. It does not write that status into `last`, the roster the fixture saved from the demo. `broadcast()` rebuilds both PCs from `last` whenever a step edits the roster: `relabelWorkspace`, `relabelPane`, `removePane` or `disconnect`. After the demo's 4.5 s turn end, a rebuild could therefore put both api rows back to `working`. The Laptop's row had the same gap before #3757. ## Fix (test only, no sleeps) When the demo sends the Laptop a `pane-status`, the wrapper now also writes its `agent_status` and `finish_id` into the saved Laptop snapshot, on both the pane and its agent entry. A roster rebuilt after an edit then keeps the status both rows already show. ## Validation - `TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/sidebar-filter-demo-regression.ts` (en and ko, every scene): 2/2 passes (447 s at load 54, 414 s at load 75). - `bun run check fast`: pass (typecheck, build, unit tests, actionlint). No changelog fragment: this changes a test only.
Summary
Follows up #3753. The merge pass's local gate of #3733 (host load 154) timed out twice in
scripts/sidebar-filter-demo-regression.tsatturnEnded(thewaitForFunction, 30 s).Cause
#3753 waited for "the Laptop's api row is
doneand sits behind the Build PC's copy". That only holds when the demo's first roster arrives before its 4.5 s turn end.If the first roster comes later, both copies are cloned from a snapshot where the turn has already ended. Both rows start
done, the Laptop's stays first, and the condition can never hold.Fix (test only, no sleeps)
EventSourcewrapper now passes eachpane-statusthe demo sends for the Laptop on to the Build PC's copy as well. The two copies stay identical, as they already are for full rosters.turnEndedwaits for both api rows to showdone. That holds whether the turn ends before or after the first roster.Validation
TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/sidebar-filter-demo-regression.ts(en and ko, every scene): 2/2 passes (432 s at load 86, 420 s at load 98).bun run check fast: pass (typecheck, build, unit tests, actionlint).No changelog fragment: this changes a test only.