Skip to content

test(ui): run the split view and background-tab size checks in their own browser script (needs owner OK) - #3242

Merged
devswha merged 1 commit into
mainfrom
test/split-ui-contexts
Nov 7, 2026
Merged

devswha merged 1 commit into
mainfrom
test/split-ui-contexts

Conversation

@devswha

@devswha devswha commented Nov 7, 2026

Copy link
Copy Markdown
Owner

What

scripts/ui-contexts-regression.ts took 309 s on a green CI run and hit the 600 s per-script cap under load (two red runs on main). checkSplitView (48-146 s) and checkBackgroundTabKeepsTerminalSize (40-113 s) were the two slowest checks in it.

They now run in a new browser script, scripts/ui-contexts-layout-regression.ts, in the same browser-main job (BROWSER_SCRIPTS, still 2 workers). Each script gets its own isolated herdr session, server, Chromium and fixture.

  • scripts/ui-contexts-run.ts: the isolation and teardown wrapper, moved from ui-contexts-regression.ts without changes and parameterised by group.
  • scripts/ui-contexts-checks.ts: runUiContextChecks(group). layout runs the two checks above and main runs all the others, in their original order.
  • The checks themselves are not edited. No sleeps or waits were added.
  • The new script is added to ci-browser.sh, browser-main's BROWSER_SCRIPTS and browser-other's BROWSER_EXCLUDE, the evidence-off list, test:ui, the timings table and docs/development.md.
  • pages-gate.test.ts still requires all 24 moved checks exactly once, now including the layout group. Its unit/live refusal guard now runs against both entry scripts.

Test-only change: no app, server or shared code is touched. It does edit .github/workflows/ci.yml (two script lists), hence "needs owner OK".

Validation

All runs were in herdr-ci-runner:local on old-desktop, from a standalone clone of the branch, with the browser containers limited to 4 CPUs like a hosted runner:

  • bun run check fast: exit 0.
  • ui-contexts-regression.ts 3x: 260 s, 238 s, 204 s, all passed.
  • ui-contexts-layout-regression.ts 3x: 96 s, 146 s, 126 s, all passed.
  • On the host after the timings-table edit: bun test scripts/ci-browser-parallel.test.ts scripts/pages-gate.test.ts scripts/ci-browser.test.ts passed 70/70.

Skipped: the full integration suite, which this change does not touch.

…ser script of their own

ui-contexts-regression.ts took 309 s on a green CI run and timed out at the 600 s per-script cap
under load; checkSplitView and checkBackgroundTabKeepsTerminalSize were a third to a half of it.
They now run in ui-contexts-layout-regression.ts on a fixture of their own, in the same
browser-main job. The checks themselves are unchanged.
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1e25843 and 6807a57.

Files selected for processing: 12

  • .github/workflows/ci.yml
  • docs/development.md
  • package.json
  • scripts/ci-browser-parallel.ts
  • scripts/ci-browser-timings.json
  • scripts/ci-browser.sh
  • scripts/ci-browser.test.ts
  • scripts/pages-gate.test.ts
  • scripts/ui-contexts-checks.ts
  • scripts/ui-contexts-layout-regression.ts
  • scripts/ui-contexts-regression.ts
  • scripts/ui-contexts-run.ts
  • 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

@devswha

devswha commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

CodeRabbit was rate-limited on this PR and did not review head 6807a57. These reviews stand in for it:

  • omo review (dori): CLEAR at 6807a57.
  • Codex adversarial review (read-only, gpt-6.1-terra): no findings. It compared the check calls and their order, fixture ownership, wrapper teardown, and the CI and local script lists.

No findings, so nothing was changed.

@devswha
devswha merged commit 95fc184 into main Nov 7, 2026
31 of 33 checks passed
@devswha
devswha deleted the test/split-ui-contexts branch November 7, 2026 00:57
@devswha

devswha commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Merge note (merge pass) at head 6807a57:

  • Merged on GitHub's required checks, all green on this head (Fast checks, Integration and browser, Native Windows install).
  • omo review receipt: CLEAR at this exact head. Unresolved review threads: 0 (GraphQL). CodeRabbit: neutral; no CodeRabbit review ran on this head.
  • Test-only CI script split: two ui-contexts checks move into a new scripts/ui-contexts-layout-regression.ts, run in the same browser job. The workflow and package.json edits only add that script to the existing script lists; the owner delegated this approval and the lead approved the edit. The first Integration tests run hit the known PTY timing flake (server/pty/host.test.ts) and passed on rerun.

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