Skip to content

test(terminal): wait on real signals in the Windows terminal QA - #1749

Merged
devswha merged 2 commits into
mainfrom
test/windows-terminal-qa-signals
Oct 23, 2026
Merged

devswha merged 2 commits into
mainfrom
test/windows-terminal-qa-signals

Conversation

@devswha

@devswha devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Change

Items 1 and 2 of #1537 (follow-ups to #1534), in scripts/windows-terminal-browser-qa.ts only:

  • The checks that "nothing happened" after a tap or a scroll request waited two fixed animation frames, so they could pass when they should fail. They now run a positive control first (a real scroll write that must arrive) and wait on the host's scroll event with a bound, so the absence check follows a signal that the pipeline ran.
  • The script runs in no workflow and was not documented; it now opens with a short note on what it needs and how to run it. Adding it to a workflow or to docs/development.md is 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

  • On the Windows 11 test PC, in a fresh clone with this change (deleted afterwards): bun run build and bun scripts/windows-terminal-browser-qa.ts pass 4/4.
  • bun run typecheck, conventions tests and bun run check fast: pass.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between 43d05f1 and e7e5be6.

📒 Files selected for processing: 1
  • scripts/windows-terminal-browser-qa.ts

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

📝 Summary

Summary by CodeRabbit

  • Tests
    • Expanded Windows terminal browser checks to verify that wheel scrolling produces one additional successful scroll update, followed by a successful metrics request.
    • Horizontal-pan checks now wait for a scroll event, with a timeout, rather than relying on animation-frame timing.
    • The test instructions now document isolated-session and build prerequisites.

The Windows terminal browser regression test now tracks request start order, uses a wheel action to verify scroll and metrics requests, and waits for a scroll event during horizontal panning. The script header documents session isolation and test prerequisites.

Changes: Windows terminal browser regression

Layer / File(s) Summary
Scroll test synchronization
scripts/windows-terminal-browser-qa.ts
The test records request start order, checks for a new successful scroll POST and metrics GET after a wheel action, and confirms one additional scroll write. The horizontal-pan helper waits for a scroll event or times out after 15 seconds. The header documents the session requirement and test setup.

Priority: ⬇️ Low

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

Change: Other

Possibly related issues

Merge Risk: ⚪ Minimal · up to e7e5b

The browser QA synchronization changes are ready to merge after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the Windows terminal QA test change and the shift to waiting on real signals.
Description check Passed The description includes the required Change and Validation sections. It explains the problem, resulting behavior, issue references, deferred scope, test environment, and validation results.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 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

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 23, 2026

Copy link
Copy Markdown
Owner Author

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.

@devswha
devswha merged commit 04f5c50 into main Oct 23, 2026
9 checks passed
@devswha
devswha deleted the test/windows-terminal-qa-signals branch October 23, 2026 09:04
devswha added a commit that referenced this pull request Oct 28, 2026
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.
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