Skip to content

Run 33 browser tests no CI job ran, in the WebKit job split into three shards - #2780

Merged
davidmckayv merged 5 commits into
mainfrom
ci/browser-tests-batch-1
Dec 2, 2026
Merged

davidmckayv merged 5 commits into
mainfrom
ci/browser-tests-batch-1

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

33 of the 34 browser tests that no CI job ran now run in CI, in the WebKit job (Chromium and WebKit), which is split into three shards to fit. #2764 brought in the rule that every real-browser test file is named in a job, with the 34 never-named files on a list that only shrinks; this takes that list down to one.

Each of the 34 ran in Chromium and WebKit on a throwaway Linux box (Playwright's image, as CI uses). 28 passed as they are. Five had gone stale against the app, and one needs a build step:

  • admin-path-layout, sign-in-returns-there: loaded Inter, which the app no longer ships; the app's face is Figtree. They load Figtree now.
  • browse-steps-layout: a finished turn's steps are folded into "Worked through 6 steps" (foldTurnWork, chat-transcript.tsx). It opens that line, as a person would, before reading the rows.
  • run-ended-unheard-layout: the same fold, or "Ran 2 commands" (Fold a Bot's computer work into the line that holds its other steps #2432), held the steps it reads, so they were there but hidden ("Saved a file" resolved 64 times, hidden). It opens the closed lines around each step, outermost first. A command inside a run of steps is named "Run a command" with "Didn't work" beside it (commandStepWords, Release v1.2.5 #2626), not "Didn't run a command", which is what the command says drawn alone; it still has to read as not run and never as blocked. Main's version: 16 pass, 16 fail; this one: 32 pass, with A turn the server gave up carrying on reads as stopped, with Carry on #2773 and A finished run never says the Bot stopped while its stored copy catches up #2776 in.
  • sidebar-window-buttons: the orb moved into the section strip ([data-slot="strip"] .agent-orb), so the positions it pins are the strip's: orb at 23,23, heading at 80,20. 26 pass.
  • sidebar-current-row: pinned a "current row" the strip no longer draws. Rewritten to pin what the strip marks today, in both engines, light and dark, 1440 and 390 px: on /bots the Bots button is pressed and open and nothing claims aria-current; after Invitations nothing is current and nothing is filled but not open; hovering Routines fills it at desktop width. 8 pass; with aria-current put back on the pressed button it fails, naming Bots.
  • artifact-print-browser stays on the list: it needs app/dist/artifact-print.html, so it waits for a later change that adds the build to a browser job.

Desktop's calls, held to the real shell

app/tests/desktop-page-commands.test.ts (new, in the ordinary suite, no browser) reads every call the app makes into OpenBot Desktop (invokeDesktop, the AI connection's desktop(), and literal plugin:…|… names) and fails when one isn't a command the shell registers (generate_handler! in desktop_page.rs), isn't in its PERMISSIONS, or isn't allowed to the app page (allow_app_page, APP_PAGE_NOTIFICATIONS in main.rs). The app's browser tests stand in for Desktop with a fake (fakeNative), so a call renamed on one side passed them while Desktop refused it. plugin:event|listen and unlisten are the one exception, by name: the page isn't granted them, by design, and window-attention.ts falls back to the DOM. Taking a command out of the shell, or misspelling one in the app, fails it, naming the call.

The WebKit job in three shards

At 65 files it took 16 to 17.5 minutes; 98 in one job would not fit its 30. It now runs as app (real browser, WebKit) (shard N of 3), fail-fast: false, with bun test --shard, the same workers and timeouts as before, and the one-press clipboard check on the first shard only. scripts/ci-changes.ts names the three shards as the job's checks, and the budget is 15 minutes a shard.

Where it runs

Only tests and CI change.

Boundary and audit

  • No server or app change.

API and database

  • This changes nothing under api/, no app's requests, no database change and no release-policy.json.

Changelog

none: only tests and CI change, so a deployment behaves no differently.

Proof

the 34, Chromium and WebKit, Linux box:   28 pass as they are, 5 updated (above), 1 waits for a build
the CI scripts' tests, desktop-page-commands:   144 pass
the lists, with docker swapped for a printer:   Chromium the same 38 files; WebKit main's 65 and the 33

Wall times, before (main) and after (this pull request's run):

job before after
app (real browser), Chromium 5 to 6 min 5 min 54 s (no files added)
app (real browser, WebKit) 16 to 17.5 min, one job shard 1: 14 min 27 s, shard 2: 7 min 38 s, shard 3: 9 min 29 s, side by side

The longest shard is the one with artifacts-screens.test.tsx: about 13 minutes of tests in that one file, and a file runs in one worker, so no split of the list makes its shard shorter. The other 98 files come to about the same on each shard already (by this run's per-test times, a split by duration would move well under a minute). If it grows past the 15-minute budget, the cut is that file, one file per window width.

The first full run also found three more of the never-run files stale against changes that landed today, now brought up to date:

The three: 252 pass, 0 fail, Chromium and WebKit, locally.

@davidmckayv
davidmckayv enabled auto-merge December 2, 2026 09:42
@davidmckayv davidmckayv added the full-ci Run the slow image builds on this PR label Dec 2, 2026
@davidmckayv
davidmckayv force-pushed the ci/browser-tests-batch-1 branch 2 times, most recently from 5d21fbf to 19a9925 Compare December 2, 2026 10:42
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@davidmckayv
davidmckayv force-pushed the ci/browser-tests-batch-1 branch from 19a9925 to 5bc35b8 Compare December 2, 2026 11:43
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
Their first CI run found them stale against changes that landed on main today:

- routine-run-now-layout: a running run now reads "Running now" (#2704).
- plan-notices-layout: the trial-used-up dialog says it in one sentence, "All 500 Bot runs in your
  free trial are used." (#2692), as the suite's plan-free-trial.test.tsx reads it.
- artifacts-screens: Back's focus reaches the tile that opened the artifact a moment after the
  address changes, once the list is drawn again; the case read it at once, while it was still on
  Back. It waits for it now, up to 5 s, and fails when the list's focus call is taken out.
…t unopened

#2782 draws what a folded line holds only once it is opened (`useDrawnOnceOpened`), so a long
turn's steps are not all on the page at once. Three browser tests no job ran read inside closed
folds, and the merge queue's run of this pull request on top of it failed them:

- run-ended-unheard-layout: openTo opens the closed lines on screen a level at a time until the
  step is drawn, and leaves the step's own line for the test to open.
- browse-steps-layout and work-folded-layout: the rows drawn on opening are styled too (each test
  builds the app's stylesheet for the classes on the page).
- work-folded-layout: folded, no command's card is out of a fold, and nothing of the work is on
  screen; it no longer waits for the cards to be drawn while folded, which is what #2782 stopped.
  Opened, the three commands are listed and each opens to its terminal inside the column, as before.
…page

The merge queue's run failed two things:

- sidebar-current-row: #2644 moved Invitations into the account menu's organization switcher. The
  test opens the menu, styles it, then opens the switcher and chooses Invitations, and waits for
  both menus to close.
- no-fixed-settle-waits: run-ended-unheard's openTo waited a fixed 250 ms while the finished turn
  was still being drawn. It waits for a closed line, or for what it is after, instead.
@davidmckayv
davidmckayv force-pushed the ci/browser-tests-batch-1 branch from 5bc35b8 to f82b48a Compare December 2, 2026 12:29
@davidmckayv
davidmckayv enabled auto-merge December 2, 2026 12:29
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit c25dd65 Dec 2, 2026
53 checks passed
@davidmckayv
davidmckayv deleted the ci/browser-tests-batch-1 branch December 2, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Run the slow image builds on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant