Repository navigation
test(terminal): wait on real signals in the Windows terminal QA - #1749
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
|
Merging without a CodeRabbit review: CodeRabbit was rate-limited, so no review ran. The merge pass reviewed it instead. A gate reviewer on a different model than the author's confirmed the listeners are attached before the triggers, the waits are bounded, and the request watermarks exclude stale completions. The exact head built and passed all four native Windows QA groups on the Windows 11 test PC, in throwaway clones. All required checks are green and no review thread is open. |
Refs #1537 (item 2; item 1 was fixed by #1749). ## Change - **`.github/workflows/windows-terminal-qa.yml`** runs `scripts/windows-terminal-browser-qa.ts`, the native Windows mirrored-terminal check (PowerShell history under the wheel, touch drag and tap, horizontal panning across output, text and IME input at a phone's width), which ran in no workflow: - GitHub-hosted `windows-latest` only, `contents: read`, no secrets: a fork's PR never reaches the self-hosted runners. - herdr 0.9.3 from its release zip, checked against a pinned SHA-256 (CI's herdr everywhere else); Bun through `./.github/actions/setup-ci`; the lockfile's Playwright Chromium (cached). - Every external action pinned by commit SHA, like the rest. - Runs on PRs that touch the mirror, the terminal components, gesture/viewport helpers, settings, the xterm patch or `setup-ci`; weekly on main; and on a manual dispatch. Not a required check. The test herdr's log is kept as an artifact when it fails. - **The script itself was broken on current main**: since #1961 a mirrored pane wider than a phone folds to the screen by default, so its 390 px panning steps had nothing to pan. It now picks Original width (`ovis:mirror-wrap` = false) before loading, and waits until the grid overflows before panning, so a folded grid fails with that message instead of a 15 s timeout. - **Two more script fixes the first runner runs found**: cleanup no longer replaces the run's own error (the closed pane's PowerShell holds the test folder for a moment: EBUSY, now waited for, bounded at 15 s), and the IME edge check places its caret by the measured cell width instead of a fixed 52 columns, which on the runner's font put the caret cell across the phone's edge (the xterm patch rightly treats a cut cell as off screen). - `docs/development.md`, the script's header, `ci-browser.test.ts`'s manual-list comment and a changelog fragment say where it runs. ## Not changed (items 3-5 of #1537) - **3, hidden pane gets a 1 px textarea width**: only when the host has no box (`display: none` or zero size), where nothing can be typed. Panes the canvas hides use `visibility: hidden` (`PaneCanvas.css:24`), keep their box and get real bounds; the `.xterm-screen` ResizeObserver resyncs when a box returns. No observable defect found. - **4, the bounds type written inline in the xterm patch**: a tidy-up with no behaviour change; left out to keep this PR to the workflow. - **5, a layout read per host scroll event while bounds apply**: scrolling leaves layout clean, so the read does not force a reflow; only a scroll during composition does. Not measured; no defect found. ## Verification - **Windows terminal QA green on 5f80b63, all four PASS lines: https://github.com/devswha/ovis/actions/runs/40647753903** (and on ef4c78d: https://github.com/devswha/ovis/actions/runs/40646709409). Earlier runs on this PR (40645679178, 40646211178) failed on the two script issues above. The same script also passed 4/4 on the maintainer's Windows 11 PC in a fresh clone. - `bun run check fast` green on 953e43f and again on ef4c78d (workflow syntax/actionlint, typecheck, build, unit tests, incl. `scripts/ci-setup.test.ts` pin checks). - Reviews: omo-native-code-reviewer PASS on 2dd4acd (MEDIUM: trigger list too narrow - fixed in 953e43f; MEDIUM: workflow not yet run - this PR's run). Codex Sol 6.1 Fast xhigh BLOCK on 2dd4acd (HIGH: the mirror fold above; MEDIUM: trigger list) - both fixed in 953e43f; its re-review of 953e43f: PASS; its review of the two script fixes (953e43f..ef4c78d): PASS. ## Merge This changes `.github/workflows`: **the merge waits for the owner's go**, which Dori will ask for with this PR's link.
Change
Items 1 and 2 of #1537 (follow-ups to #1534), in
scripts/windows-terminal-browser-qa.tsonly:scrollevent with a bound, so the absence check follows a signal that the pipeline ran.docs/development.mdis left for later.Items 3-5 touch the xterm patch, which another open PR holds, or are performance notes; they stay open.
Refs #1537
Validation
bun run buildandbun scripts/windows-terminal-browser-qa.tspass 4/4.bun run typecheck, conventions tests andbun run check fast: pass.