Repository navigation
Run the WebKit browser tests side by side: CI back from 35 minutes to about 8 - #2172
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 25, 2026 02:22
davidmckayv
force-pushed
the
ci-webkit-parallel
branch
from
November 25, 2026 03:04
b305ed0 to
4cf12f5
Compare
… 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
force-pushed
the
ci-webkit-parallel
branch
from
November 25, 2026 03:33
c15cd6c to
e7765b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.The change
--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-reconnectandcomposer-keeps-draft-browser, which had steps of their own, join the list.-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.tsnow holds each real-browser job to one list step, run with--parallelwhen 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.ci.yml, so its own run runs every job, the WebKit list in its new form included.