Repository navigation
test(sidebar): take sidebar-filter rosters only after the demo's turn end - #3753
Conversation
… end reorders the Agents list
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Validation on the final head f587a4d: |
Local merge gate: PASS
The Linux suites of the required checks (Fast checks, Integration and browser), run on main ab5a573 with this PR's head f587a4d merged in (local merge 67c9d59e6dad, not pushed), as groups side by side in the self-hosted CI runner image on
Reruns:
Total 508s. |
Merge passMerged head
One reviewer: test-only PR (scripts/sidebar-filter-demo-regression.ts). Test-only PR ( The demo ends one pane's turn 4.5 s after each load, which moves that agent row behind its copy on the other PC. The script took its baseline rosters before that moment and compared after it, so the pair came back swapped ( Left, LOW (Codex, traced, not run): if the first roster arrives late, the new wait can have nothing to become true on. Sent to the author's lane. |
…ebar-filter (#3757) ## 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.
) ## Summary `scripts/conversation-search-demo-regression.ts:115` failed twice on main (CI 43185338832 at aea3fdf): the search returned the first snippet as one joined text, while the test expected only `Adding a payments_idempotent_replays_total counter…`. ## Cause The script searched for `replay` as soon as the first chat turn was drawn. 4.5 s after each load, the demo ends that same turn and appends its final answer (`site/demo/transport.ts`, "the turn in progress"). So a search made before the turn end finds only the commentary. A search made after it, which happens whenever the page is slow to get there, finds the commentary and the final answer joined in one snippet. ## Fix (test only, no sleeps) Before searching, the script waits for the turn's final answer (`6 tests pass.`) to appear in the current pane. It then expects the settled snippet, taken from a local run; it is the same text main's failed run got. The later searches in the script (`&changed=1`, `&older=1`) do not check snippet text. ## Validation - `TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/conversation-search-demo-regression.ts`: 3/3 passes (7 PASS lines each, load 19 to 23). - `bun run check fast`: pass (typecheck, build, unit tests, actionlint). No changelog fragment: this changes a test only. Same demo timer as #3753.
Summary
scripts/sidebar-filter-demo-regression.tsintermittently failed with two Agents rows swapped (buildRemote migrationahead of localIdempotent payments)::575"phone dark: the roster is back after the drawer closed": PR runs 43175647381 and 43175630298, each failed twice.:818"desktop dark: clearing brings every saved fold back": the merge pass's local gate, failed twice.:575again in the merge pass's local gate on 17d8ab0, failed once.Cause
The demo ends the api pane's turn 4.5 s after each load (
site/demo/transport.ts, "the turn in progress"). Thatpane-statusdelta passes through the script'sEventSourcewrapper unchanged, so only the Laptop's api row goesdone. The Build PC's copy, cloned from full rosters only, staysworking. The Laptop's row then moves into the resting part, behind the Build PC's copy.So a roster taken before that moment and compared with one taken after it sees the pair swap:
foldTransitions' second block takes its baseline right afternewPage, with no wait.happyPathwaited for thedonemark but not for the reorder that follows it.A probe confirmed the settled state on every run: the Build PC's api row stays
working, and the Laptop's api row sits after it.Fix (test only, no sleeps)
turnEnded(page)waits until the Laptop's api row showsdoneand sits behind the Build PC's copy. It runs:newPage, so every scenario starts from the settled list;page.reload(), which restarts the demo and its timer.happyPath's old partial wait is removed.Validation
TMPDIR=~/.cache/ovis-tmp/ci-loop bun scripts/sidebar-filter-demo-regression.ts(en and ko, every scene): 1 full run passed (455 s, load 90) before this PR; more runs in progress, results added in a commentbun run check fast: pass (typecheck, build, unit tests, actionlint)No changelog fragment: this changes a test only.