Skip to content

test(sidebar): give the build PC's copy the demo's pane status in sidebar-filter - #3757

Merged
devswha merged 1 commit into
mainfrom
test/sidebar-filter-mirror-status
Nov 12, 2026
Merged

devswha merged 1 commit into
mainfrom
test/sidebar-filter-mirror-status

Conversation

@devswha

@devswha devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Summary

Follows up #3753. The merge pass's local gate of #3733 (host load 154) timed out twice in scripts/sidebar-filter-demo-regression.ts at turnEnded (the waitForFunction, 30 s).

Cause

#3753 waited for "the Laptop's api row is done and 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)

  • The script's EventSource wrapper now passes each pane-status the 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.
  • turnEnded waits for both api rows to show done. 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.

…e turn-end wait holds whenever the first roster comes
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Improved demo verification by confirming the API pane has finished on both PCs before considering the turn complete.

The demo fixture mirrors local pane-status messages to the build PC row. The turnEnded wait now requires the API pane status to be done on both the local and build PCs.

Changes: Pane status synchronization

Layer / File(s) Summary
Mirror status updates and wait for both PCs
scripts/sidebar-filter-demo-regression.ts
The fixture forwards local pane-status messages to the build PC row. The turnEnded wait requires a done status row for both local and build.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

  • devswha/ovis#3753: Adds the turnEnded(page) helper whose synchronization condition this change updates.

Suggested reviewers: duytbp, haeminway1

Merge Risk: Minimal · up to 1c8ec

This is a test-only change that makes a flaky demo regression script more reliable. It has no production impact, and no merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the test change and its target: the Build PC's sidebar copy now gets the demo's pane status in the sidebar-filter test. It matches the summary, which says the EventSource wrapper forwa…
Description check Passed The description follows the template's main parts. The Change section explains the problem (turnEnded timeouts when the first roster arrives after the 4.5 s turn end), the cause, and the fix. The Vali…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the test change and its target: the Build PC's sidebar copy now gets the demo's pane status in the sidebar-filter test. It matches the summary, which says the EventSource wrapper forwards Laptop pane-status messages to the Build PC row and the turnEnded wait now requires both api rows to be done. The title is specific and does not cover the timeout cause, which is acceptable.

Full details: Description check

Explanation

The description follows the template's main parts. The Change section explains the problem (turnEnded timeouts when the first roster arrives after the 4.5 s turn end), the cause, and the fix. The Validation section lists the regression script runs (en and ko, 2/2 passes) and bun run check fast, and it states that no changelog fragment is needed because the change is test-only. It does not mention contract-test coverage, which the template asks for only on HTTP/WS changes, so this is not a gap for this PR. It also does not link an issue, but the template requires that only for features, and this is a test fix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0260744 and 1c8ece5.

Files selected for processing: 1

  • scripts/sidebar-filter-demo-regression.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@devswha
devswha merged commit 69d6c59 into main Nov 12, 2026
13 checks passed
@devswha

devswha commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head 1c8ece5a56b4 as 69d6c5974f41 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
codex CLEAR

One reviewer: test-only PR (scripts/sidebar-filter-demo-regression.ts).

Test-only PR (scripts/sidebar-filter-demo-regression.ts), so one reviewer: Codex Terra, CLEAR.

#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 :229 in a local merge gate). The fixture now gives the build PC's copy the same pane status, and the wait is for both rows done, which holds whichever comes first. The author ran it twice in full at a host load of 86 to 98.

@devswha
devswha deleted the test/sidebar-filter-mirror-status branch November 12, 2026 12:12
devswha added a commit that referenced this pull request Nov 12, 2026
…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.
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