Skip to content

Run the WebKit browser tests side by side: CI back from 35 minutes to about 8 - #2172

Merged
davidmckayv merged 1 commit into
mainfrom
ci-webkit-parallel
Nov 25, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
ci-webkit-parallel

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

CI on main went from about 6 minutes on 22 November to about 35 today. One job is the whole of it: app (real browser, WebKit). Every other job finishes inside 7 minutes.

That job began on 19 November (#1923) with one file, the dictation test, so it never got bun test --parallel. Since then 31 files were added to its list, and three more as steps of their own, each run in Chromium and WebKit one after another.

Run WebKit job Run total
23 Nov, 6982050 8.4 min 8.7 min
25 Nov, 8c739f1 35.2 min 35.5 min
This PR about 7 to 8 min about 8 min

The change

  • The WebKit list runs eight files at a time (--parallel=8). Eight, not a worker per core: each file opens Chromium and WebKit, and sixteen workers on the 16-core runner starved the tests that wait on a clock.
  • organization-unavailable-chat, moved-apps-reconnect and composer-keeps-draft-browser, which had steps of their own, join the list.
  • The clipboard test keeps its own step: it is narrowed to one test with -t.

The tests already open their own browser and answer the app's requests in the page (page.route), with no fixed port or shared file, the same as the Chromium list's.

Two tests that read the page once at a moment load moved

  • organization-held-recovery: looked for a leftover sentence the instant the list came back, while another read was still waiting out its one-second Retry-After. It now waits for the sentence to go. A sentence that stays still fails.
  • organization-unavailable-chat: read the audit log's Bot filter after the menu had shut again. It now opens the menu again, up to three times, until it says the sentence. A menu that never says it still fails.

Keeping it this way

scripts/ci-changes.test.ts now holds each real-browser job to one list step, run with --parallel when it names more than one file. It fails on main (the WebKit job has 4 such steps) and passes here. The comment above the job says to add a new file to the list, not a step.

Test

  • bun test scripts/ci-changes.test.ts: red on main, green here.
  • This PR changes ci.yml, so its own run runs every job, the WebKit list in its new form included.

… about 8

app (real browser, WebKit) began on 19 November with one file, the dictation
test, so it never got bun test --parallel. Since then 31 files were added to
its list, and three more as steps of their own, each run in Chromium and
WebKit one after another. By 24 November the job took 35 minutes while every
other job finished inside 7, so a run took 35.

The list now runs eight files at a time, and the extra steps join it. Only the
clipboard test, narrowed with -t, keeps a step of its own. Eight, not a worker
per core: each file opens two browsers, and sixteen workers on 16 cores starved
the tests that wait on a clock.

Two tests read the page once at a moment that load moved:
- organization-held-recovery looked for a leftover sentence the instant the
  list came back, while another read was still waiting out its one-second
  Retry-After. It now waits for the sentence to go.
- organization-unavailable-chat read the audit log's Bot filter after the menu
  had shut again. It now opens the menu again, up to three times, until the
  menu says the sentence.

scripts/ci-changes.test.ts now holds every real-browser job to one list step,
run with --parallel when it names more than one file. It fails on main (the
WebKit job has 4 such steps) and passes here.
@davidmckayv davidmckayv changed the title Run the WebKit browser tests side by side: CI back from 35 minutes to its old length Run the WebKit browser tests side by side: CI back from 35 minutes to about 8 Nov 25, 2026
@davidmckayv
davidmckayv merged commit efeb4e7 into main Nov 25, 2026
35 checks passed
@davidmckayv
davidmckayv deleted the ci-webkit-parallel branch November 25, 2026 03:42
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