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.

devswha added a commit that referenced this pull request Nov 10, 2026
…o no one script sets the lane's end (needs owner OK) (#3562)

## Why

`Browser regression (other scripts)` is the job every PR waits for: 19
minutes at 6 workers, 10.5 at 16, while every other job ends within 5.

The cause is the lane's start order more than the size of any script.
`scripts/ci-browser-parallel.ts` starts scripts longest first by
`scripts/ci-browser-timings.json` and counted a script the table did not
hold as the table's median, 18 s. **64 of the 187 listed scripts had no
entry.** One of them is the slowest script of the lane,
`relay-e2e-regression.ts` (278 to 317 s on CI). In run 42754144490 (16
workers) it was queued 124th of 184, started 313 s into the lane and
ended at 631 s; every other script but one had ended by 371 s, so one
worker ran alone for about four minutes.

## What

1. **A listed script the table does not hold starts first.** Nobody has
measured it, so it may be the longest. For a shard's load (hosted
runners, `BROWSER_SHARD`) it still counts as the median, so the shard
split stays as it was. The lane's `[setup]` lines name the untimed
scripts.
2. **`scripts/ci-browser-timings.ts` refreshes the table** from the
lane's `summary.json` files, or with `--runs N` from the newest N green
runs of `main` (each job's last attempt only; a failed read stops it
before the table is written). Only a pass on the first run counts. The
table goes from 123 entries to 202, one for every listed script. No test
makes a new script add an entry.
3. **Seven slow scripts are split into parts, and the relay end-to-end
run into four lane entries**, so a failed script runs again as one part,
not as the whole, and the longest script stops setting the lane's end
once there are more workers.

| Before (s, runner image) | After: lane entries (s, median of two runs)
|
|---|---|
| `background-agent-detail-demo-regression` 268 | the same name (the
flow) 29 · `background-agent-states-desktop-` 77 · `-phone-` 81 ·
`-korean-demo-regression` 86 |
| `security-summary-demo-regression` 133 | the same name (the checks) 29
· `security-summary-captures-light-` 59 · `-dark-demo-regression` 59 |
| `settings-pages-demo-regression` 194 | the same name 60 ·
`settings-palette-search-` 85 · `settings-rows-demo-regression` 71 |
| `composer-fit-demo-regression` 210 | the same name 72 ·
`composer-send-` 79 · `composer-draft-demo-regression` 67 |
| `pane-mute-demo-regression` 163 | the same name (behaviour) 67 ·
`pane-mute-captures-demo-regression` 95 |
| `terminal-touch-burst-regression` 149 | the same name (the
application) 71 · `terminal-touch-burst-history-regression` 80 |
| `terminal-paste-insert-demo-regression` 163 | the same name 81 ·
`terminal-paste-insert-variants-demo-regression` 82 |
| `relay-e2e-regression` 384 | the same name (its own journey) 11 ·
`relay-shell-browser-qa` 130 · `relay-dashboard-browser-qa` 126 ·
`relay-media-browser-qa` 46 |

The lane list goes from 187 to 202 entries. The owner's list named six
scripts; `terminal-paste-insert` (159 to 166 s on CI) and `relay-e2e`
are over the same bar by measurement and are split too.

How each is split: the script's code moves verbatim into a module that
takes the part (`*-run.ts`) or keeps its sections in files of their own
over a shared harness (`settings-pages-harness.ts`,
`composer-fit-harness.ts`), as #3242 did for `ui-contexts`. The three
relay suites were already runnable alone; `relay-e2e-regression.ts`
still runs them itself against another server tree (`--skew`,
`RELAY_E2E_SERVER_DIR`), as `docs/relay.md` promises.

### Lane time, from measured script seconds

Simulated with the real ordering functions on the seconds of two `main`
runs (the model takes a script's seconds as independent of what runs
beside it):

| Workers | Before | Order and table only | This PR |
|---|---|---|---|
| 16 (run 42754144490) | 631 s | 379 s | 377 s |
| 24 (same seconds) | 519 s | 317 s | 252 s |
| 6 (run 42753443046) | 1076 s | 942 s | 958 s |
| hosted, 4 shards × 3 workers | 439 / 433 / 699 / 475 s | | 480 / 482 /
483 / 475 s |

At 16 workers the order is the whole gain; the split matters from about
20 workers on and for retries. At 6 workers the split costs about 16 s
(each part repeats its setup).

## Beyond the move

The first commit only moves code and changes the lane. The second commit
holds four small changes from CodeRabbit's review, each to code that
otherwise moved unchanged:

- `pane-mute` and `terminal-paste-insert`: each part writes its evidence
records under its own name (`manifest-behaviour.json`,
`manifest-variants.json`, ...), where both parts wrote `manifest.json`
into what the serial lane makes one folder.
- `background-agent-detail` (the flow): the sheet opened again waits for
its own read before its events are counted (one added `waitFor`, the
wait the first open already uses). `main`'s script has the same gap.
- the settings search: page ids are keyed by the page's name; `main`'s
list had eight ids for nine names, so a landing on Experimental read as
`about`. No row expects either page.

The six entries these touch passed again in the runner image with the
same assert counts (197, 11, 43, 6, 50, 10).

## No check dropped

- **Static:** every line holding an `assert`, a
`waitFor`/`waitForFunction`, an `expect`, a `check(` or a `throw` is in
the split files as often as in `main`'s file, for all eight (script and
output below; the output is of the first commit, and the second adds the
one `waitFor` named above).
- **Run:** all 23 entries passed twice in the CI runner image, two at a
time, with every `node:assert/strict` method counted by a preload. No
method ran fewer times than in the whole script:

| Script | Assert calls before | After, parts summed |
|---|---|---|
| background-agent-detail | 690 | 693 |
| security-summary | 269 | 270 |
| settings-pages | 1676 | 1676 |
| composer-fit | 1565 | 1567 |
| pane-mute | 48 | 49 |
| terminal-touch-burst | 309 | 312 |
| terminal-paste-insert | 59 | 60 |
| relay-e2e (4 entries) | 540 | 540 |

The extra calls are a setup assert that now runs once per part. The
parts' `PASS` lines are the whole script's, apart from count lines that
now add up over parts (`PASS 21 checks` is `18 + 1 + 1 + 1`; `65
captures` is `1 + 64`; `141 captures` is `55 + 86`) and one narrower
line for the touch-burst application part.
- **Two independent review agents** went through the eight splits unit
by unit (each loop, function and section runs in exactly one part, with
the same arguments and order) and the lane changes, and found nothing
above a note. Their notes are in this head: the refresh tool's two
`--runs` faults, and entry headers that name the surfaces a part drives.

What is different, and why it does not weaken a check:

- **touch-burst, history part:** the overflow, boundary and observer
sections now meet an application pane that received no swipe before,
where 24 gestures used to come first. Each of those sections reloads the
page and takes its own baselines (log length, dropped counter, mark
number), and the shell pane is still left at offset 1500 by the history
swipes that precede them. The predicate assert is verbatim in both
parts; its boundary term is asserted in the history part over the same 7
boundaries.
- **pane-mute, captures part:** two captured frames of another pane
carry `finish_id` 100 where they carried 102 after the behaviour
sections. No client path a check observes reads it there (traced by both
the implementer and a reviewer).
- **relay dashboard matrix:** it runs in its own process on its own
Chromium and shell host, launched and built by the same lines, where it
used to borrow the shell QA's.
- **capture-only parts** (`security-summary-captures-*`,
`pane-mute-captures`, `terminal-paste-insert-variants`) print `SKIP` and
stop when `UI_EVIDENCE_DIR` is not set, as the capture sections did not
run without it before. Both lanes set it for these scripts.
- **`settings-palette-search`** creates its evidence folder before
`settingsSearch` writes into it (an earlier section's screenshot used
to).

## Validation

- `bun run check fast`: pass on this head (14480 unit tests pass, 0
fail).
- `bun test scripts/ci-browser.test.ts
scripts/ci-browser-parallel.test.ts scripts/ci-browser-timings.test.ts
scripts/pages-gate.test.ts scripts/conventions.test.ts`: 101 pass.
- The 23 entries in `herdr-ci-runner:local`, a container of its own, 2
browser workers: 23 of 23 pass, twice (lane 864 s and 797 s; the 8 whole
scripts took 1014 s there). The second run is on this head's scripts
(only the timings table and a comment in `site/demo/transport.ts` that
`main` also touched differ since).
- `relay-dashboard`'s `local-dashboard` line read `Paired · not checked`
in one of the two runs and `No answer` in the other and on `main`: that
check accepts either word (the app defers a PC check made within 60 s of
the last), so it is not the split.
- **Not run here:** the whole browser lane (202 scripts at the two
workers this session was allowed would take about 50 minutes). This PR's
own `Browser regression (other scripts)` job is the measurement; I will
post its lane seconds beside `main`'s.
- Skipped: integration suite, `ui-regression` and the `ui-contexts`
scripts (not touched).

<details>
<summary>Static proof: script and output</summary>

```
== background-agent-detail   check lines: 90 before, 90 after; multiset diff: empty
   counts before|after: assert 60|60 waitFor 26|26 waitForFunction 4|4 expect 0|0 check 0|0 throw 0|0
== security-summary          check lines: 36 before, 36 after; multiset diff: empty
   counts before|after: assert 17|17 waitFor 13|13 waitForFunction 3|3 expect 0|0 check 3|3 throw 0|0
== settings-pages            check lines: 358 before, 358 after; multiset diff: empty
   counts before|after: assert 184|184 waitFor 127|127 waitForFunction 46|46 expect 0|0 check 0|0 throw 1|1
== composer-fit              check lines: 298 before, 298 after; multiset diff: empty
   counts before|after: assert 195|195 waitFor 52|52 waitForFunction 46|46 expect 0|0 check 2|2 throw 3|3
== pane-mute                 check lines: 99 before, 99 after; multiset diff: empty
   counts before|after: assert 40|40 waitFor 49|49 waitForFunction 10|10 expect 0|0 check 0|0 throw 0|0
== terminal-touch-burst      check lines: 32 before, 32 after; multiset diff: empty
   counts before|after: assert 20|20 waitFor 3|3 waitForFunction 8|8 expect 0|0 check 0|0 throw 1|1
== terminal-paste-insert     check lines: 104 before, 104 after; multiset diff: empty
   counts before|after: assert 4|4 waitFor 41|41 waitForFunction 22|22 expect 0|0 check 37|37 throw 0|0
== relay                     check lines: 639 before, 639 after; multiset diff: empty
   counts before|after: assert 252|252 waitFor 173|173 waitForFunction 17|17 expect 124|124 check 53|53 throw 20|20
PASS: every split holds the base's check lines, each as often as before
```

For one split, by hand (prints nothing when equal):

```bash
checks() { sed -E 's/^[[:space:]]+//' "$@" | grep -E 'assert\.[A-Za-z]+\(|\.waitFor\(|\.waitForFunction\(|expect\(|\bcheck\(|throw ' | LC_ALL=C sort; }
diff <(git show origin/main:scripts/pane-mute-demo-regression.ts | checks) <(checks scripts/pane-mute-demo-run.ts scripts/pane-mute-demo-regression.ts scripts/pane-mute-captures-demo-regression.ts)
```

To see a split as moved code: `git diff --color-moved=dimmed-zebra
--color-moved-ws=allow-indentation-change origin/main...HEAD --
scripts/` (a block that now sits under a part guard is indented two more
columns).

</details>

## After the merge

`bun scripts/ci-browser-timings.ts --runs 5` once five green runs of
`main` are newer than this PR: the 23 parts' seconds here are from two
runs in a container, not from CI.

## Not in this PR

Most of what these scripts spend is waiting, not checking. Each of these
would shorten the lane's whole work, which is what bounds it at 16
workers, but changes when assertions run relative to the demo's timers,
so they are the owner's call:

- `background-agent-detail`: about 238 of its 270 s is the demo's 4.5 s
opening-turn timer, once for each of 53 pages (its `settled()` waits for
every animation, and the working pane's sidebar dot breathes until that
turn ends).
- `pane-mute`: the same timer on 15 page opens, about 60 to 80 s.
- `terminal-paste-insert`: about 90 s is the client's own reconnect
backoff after the test closes its sockets.
- `relay-shell-browser-qa`: one step waits 61.7 s of real time for
`INTRODUCTION_WAIT_MS`; the page already has a clock the script
fast-forwards elsewhere.
- `composer-fit` (now `composer-send`): about 80 evidence screenshots,
30 to 40 s, that a green run throws away.

Also left: the comment at `.github/workflows/ci.yml:441` still says the
relay end-to-end run has a media part (touching `.github/` would send
this PR to GitHub's checks alone).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Fable 5.2 <[email protected]>
devswha added a commit that referenced this pull request Nov 15, 2026
… lane's limit (#3892)

## What

`scripts/ui-regression.ts` ends at the browser lane's limit for one
script (600 s, exit 124) on loaded runners and so reddens "Browser
regression (ui-regression)": main (run 43685347171, and df92f77's
run), #3876, #3873 (run 43699760401, `FAIL scripts/ui-regression.ts
(600.6s) exit=124`). It is not hung: it passes check after check until
the limit stops it.

Alone in the CI runner image on one 6-CPU slot it takes **331.1 s** for
its 85 checks. CI's browser jobs run about 2.4x slower than that, about
795 s, well past 600 s.

## Fix (test-only)

The script runs in four parts, each from its own server and browser:
- `main` (`scripts/ui-regression.ts` itself): the desktop page's
stateful flow and the phone pages after it;
- `terminal` (`scripts/ui-terminal-regression.ts`): the terminal's keys
(`checkCommandBackspace`, `checkCtrlEnter`, `checkCommandArrows`),
`checkTerminalInput`, the held drafts, a phone's input line and the
attach;
- `ime` (`scripts/ui-ime-regression.ts`): the Safari, iPad and Linux IME
replays;
- `access` (`scripts/ui-access-regression.ts`): sign out on a server
with a token, and the relay panel.

No check is dropped, and no check's code changes except the helper fix
below. Each part's code is wrapped in `if (part === …)` and indented by
two spaces (no multi-line string sits inside, so no text changes). **The
order of the main flow changes.** Three groups of checks move:
- the closed-pane, row-menu and selection checks ("closed and obsolete
saved panes recover their selection") now run right after the phone's
suggestion-chip check, not after the terminal and IME checks;
- the three key checks (`checkCommandBackspace`, `checkCtrlEnter`,
`checkCommandArrows`) leave their place between the Shift+Enter check
and the pane-shortcut check for the `terminal` part;
- `checkTerminalInput`, the held drafts, a phone's input line and the
attach go to `terminal`, the IME replays to `ime`, and sign out and the
relay panel to `access`.

The moved checks open pages of their own; `browser`, `origin` and the
two panes are all they take. The PASS-line comparison under Validation
(53 + 27 + 3 + 2 = 85, each exactly once, all passing) is the evidence
that no later step depended on state the moved checks left behind.
Review with `git diff -w`, or `--color-moved` for the moved blocks. The
new entry files are 10 lines each. No wait or timeout is added to
`ui-regression.ts`, and `scripts/fixed-sleeps.json` is unchanged.

One helper needed a fix: `checkCommandBackspace` pressed its first key
as soon as the page was live. In the unsplit script the desktop page had
attached that pane 17 s before, so the key was always taken. On a fresh
server (the `terminal` part) the first Backspace went out before the
pane's `input-ready` and was not sent. It now waits for `input-ready`
(bounded at 15 s) before its first key, in both of its contexts, as
`checkCtrlEnter` and `checkCommandArrows` already do. Its watcher is
attached before the page loads and only records the frame. The promise
and its timer exist only inside the wait that is awaited, so a failed
load leaves nothing to reject unhandled. Settling clears the timer and
takes off the page's and the sockets' listeners. No fixed sleep is
added.

### Herdr sessions: parts side by side share none

`BROWSER_WORKERS: 2` runs two of these scripts at once, and
`ci-browser-parallel.ts` spawns each with the lane's whole environment.
That includes the `HERDR_TEST_SESSION` and `HERDR_SOCKET` of the job's
one `bun run check run`, so as first pushed, every part joined that one
herdr session and made the same `ovis-test-browser-a`/`-b` workspaces
(CodeRabbit's finding on ci.yml). A run of `main` and `terminal` side by
side the CI way (`bun run check run -- bun
scripts/ci-browser-parallel.ts`, two workers) at d3af150 showed it.
Mid-run, the lane's session `check-99f883` listed
`["ovis-test-resident","ovis-test-browser-a","ovis-test-browser-a","ovis-test-browser-b","ovis-test-browser-b"]`,
and `main` failed after 19.8 s with `Timed out: the other pane is the
palette's only result`: its palette search for `ovis-test-browser-b`
found `terminal`'s workspace too. Before, only the scripts' timings kept
the two apart.

Now:
- `scripts/ui-regression.ts` run itself is always `main`
(`import.meta.main`), on the session the environment names: the lane's.
- Each other part's entry file runs it on a herdr session, config and
state of its own and stops that session after, through
`scripts/own-herdr.ts` (`runOnOwnHerdr`). That helper is the UI context
scripts' isolation, moved out of `scripts/ui-contexts-run.ts` unchanged,
and `runIsolatedUiContextChecks` now calls it. So at most one script in
the job (`main`) uses the lane's session.
- The entry files pass their part explicitly, and an inherited
`UI_REGRESSION_PART` cannot make `bun scripts/ui-regression.ts` skip the
main flow. The script's first line names its part, session and socket,
e.g. `ui-regression part terminal: herdr session check-1a8332, socket
/tmp/hwc-8d8pQi/config/herdr/sessions/check-1a8332/herdr.sock` beside
`ui-regression part main: herdr session check-3220a8, …`.
- `scripts/pages-gate.test.ts`'s guard test (refuses unit and live runs
before touching herdr) now covers the three entry files too.

### This PR touches `.github/` and `package.json`

- `.github/workflows/ci.yml`: the three new scripts are added to
browser-main's `BROWSER_SCRIPTS` (so that job still runs all of
ui-regression) and to browser-other's `BROWSER_EXCLUDE` (so nothing runs
twice). `BROWSER_WORKERS` stays 2.
- `package.json`: `test:ui` runs the three new parts too, so the local
UI command stays complete.

The other option was having the parallel runner expand one entry into
parts. It would still have needed `test:ui` changed, and it would change
how the runner reads `ci-browser.sh` and the timings table. So this PR
follows #3865 instead. **It touches a workflow and `package.json`, so it
waits for GitHub's own checks and a real review.**

Also updated: `scripts/ui-contexts-run.ts` (now calls
`scripts/own-herdr.ts`), `scripts/ci-browser.sh` (the new scripts, and
the list that runs without evidence capture), the same list in
`scripts/ci-browser-parallel.ts`, `scripts/pages-gate.test.ts` and
`scripts/ci-browser.test.ts` (the lists they pin), and
`docs/development.md`. `scripts/ci-browser-timings.json` is not edited:
the new parts start first until `bun scripts/ci-browser-timings.ts`
takes their seconds from CI runs.

## Validation

All runs are in the CI runner image (`herdr-ci-runner:local`, own
network namespace), pinned to one heavy slot, built with `bun install
--frozen-lockfile && bun run build`, with `CI=true
RUNNER_ENVIRONMENT=self-hosted BROWSER_RETRY=0`. The timings table is
from the first push, on 6-CPU slots, running `bun
scripts/ci-browser-parallel.ts` without `check run`.

| script | before (alone) | after (alone) |
|---|---|---|
| `scripts/ui-regression.ts` | 331.1 s (85 PASS) | 98.1 s (`main`, 53
PASS) |
| `scripts/ui-terminal-regression.ts` | – | 52.7 s (27 PASS) |
| `scripts/ui-ime-regression.ts` | – | 98.0 s (3 PASS) |
| `scripts/ui-access-regression.ts` | – | 34.5 s (2 PASS) |

53 + 27 + 3 + 2 = 85. The sorted PASS lines of the unsplit run equal the
union of the four parts' PASS lines, each exactly once. The only textual
difference is a pasted screenshot's timestamped file name. At CI's
observed 2.4x, the slowest part comes to about 235 s against the 600 s
limit.

At this push, on 4-CPU slots (2 cores, both threads), as the job runs
it: `CHECK_DIR=… BROWSER_SCRIPTS=… BROWSER_WORKERS=2 bun run check run
-- bun scripts/ci-browser-parallel.ts`:
- `main` and `terminal` side by side
(`BROWSER_SCRIPTS=scripts/ui-regression.ts,scripts/ui-terminal-regression.ts`):
at d3af150 **1/2 passed** (`main` failed after 19.8 s on the shared
session, as above). At this head, **3 runs, 2/2 passed each** (167.0 s,
131.7 s and 132.5 s). In each run, the lane's session listed one
`ovis-test-browser-a`/`-b` mid-run, and `terminal` named a session of
its own.
- browser-main's whole script set (the six scripts,
`BROWSER_WORKERS=2`): **6/6 passed in 472.0 s** (ui-regression 118.8,
terminal 65.3, ime 132.6, access 48.4, ui-contexts 345.8,
ui-contexts-layout 143.2 s). One earlier run failed in
`checkUpdateNotice` only because `dist/` had been built at an older
commit: that check compares the client's built-in revision with `git
rev-parse HEAD`. Rebuilt at the commit, it passed.
- At the first push: the same set, 6/6 in 553.5 s.
- `bun run check fast`: passed (exit 0), including
`scripts/pages-gate.test.ts`, `scripts/ci-browser.test.ts`,
`scripts/ci-browser-parallel.test.ts`,
`scripts/ci-browser-timings.test.ts` and `scripts/conventions.test.ts`.
- Skipped: `bun run check full` and the integration lane (no server,
shared or src code changes), browser-other's scripts (none changed),
Windows/macOS.

## Not in this PR: `scripts/ui-contexts-regression.ts` is next

It takes **276.5 s alone** in the same image (over the ~250 s line) and
414.8 s beside one other script. In CI it was seen at 565 s. Its slowest
helpers are `checkTabMenu` 42.2 s, `checkUpdateNotice` 31.4 s,
`checkNewTabTypeAhead` 21.0 s, `checkMobileTabs` 16.5 s, `checkDroplet`
14.4 s, `checkUsageMeters` 12.9 s and `checkAlertSound` 12.3 s. A third
group in `ui-contexts-checks.ts`, as `layout` was split off in #3242,
would bring it well under. It is left out so this PR stays small.
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