Skip to content

CI: reuse tested merge trees and split browser engines - #2784

Open
dustywusty wants to merge 18 commits into
mainfrom
dustywusty/ci-throughput
Open

dustywusty wants to merge 18 commits into
mainfrom
dustywusty/ci-throughput

Conversation

@dustywusty

@dustywusty dustywusty commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What this changes

PRs and merge groups can reuse passing checks without treating a PR head as the temporary merge that CI actually tested. CI records the checkout commit in a run-scoped artifact; decisions compare against that commit and account for each job's coverage. The cross-browser list runs Chromium and WebKit separately across the three shards added in #2780. Reuse requires all six results, and a failed engine/shard can be rerun independently.

The final hosted run passed in 14m49s. Its changes job took 1m01s, versus 4m49s during profiling, and the redundant 18m07s changed-test run was eliminated. The engine/shard matrix's longest leg was 13m18s, with the expanded 101-file list from #2780; four other legs took about four to six minutes. The earlier combined job took 16m49s. These are individual runs with different coverage, not median speed claims.

A live merge-group decision probe using the passing results reused types, API, native, both browser gates, startup, harnesses, build and the whole test suite in 26.52s. Only component image checks remained owed for this CI-definition-changing PR; no merge or queue entry was created.

Reuse safeguards

  • Bound historical proof lookup to 45 seconds total and each remote command to five seconds. Give the optional queued-PR API/fetch/presence lookup a shared five-second deadline; unknown labels force full CI before docs-only shortcuts. Interleave current-main and PR histories; exhausted or unreadable proofs schedule unresolved checks and preserve already established passes.
  • Compare both current PR decisions and passing historical results using their actual tested trees. Missing, malformed, expired or unreachable artifacts schedule checks; failed-job reruns retain the original run-scoped proof.
  • Require all test shards and the aggregate count/floor check for suite baselines. Removing a test file reruns the suite. Ordinary in-file test edits retain partial-mode validation; they do not recompute global test totals.
  • Read every job-result page, preserve both paths of renames, and keep separate browser baselines. Failed or unknown changed-test coverage cannot be erased by a green fixed-list browser job.
  • Avoid repeating browser files already covered by scheduled full engine/shard jobs. Classify fixture strings in CI unit tests as ordinary unit tests.
  • Edited browser files outside proven literal full-job arrays remain explicit PR/group obligations. Unknown workflow formats provide no coverage proof. Full-ci and API-error fallback preserve these obligations; unreadable local diffs or dependency searches fail the changes step.
  • Adding full-ci starts CI. Label-triggered CI produces a complete replacement run; conditional Desktop signing workflows retain their no-cancel behavior.
  • Keep the Mac startup check owed after a queue's Windows-only run, while recognizing explicit whole-matrix skips. Desktop test-only edits retain both TypeScript checks and the setup window's WebKit scenario.

Browser work

Both matrix legs receive the full 101-file list across their three shards. Existing Chromium-only suites therefore also run in the WebKit leg; the long artifact-screen file still sets the slowest shard's floor. The WebKit clipboard scenario runs only in the WebKit job. Four mixed suites now share a test-only launcher that honors explicit single-engine selection, preserving default/combined modes, launch options and caller-owned cleanup; WebKit runs no longer start their duplicate Chromium instances. No test is quarantined or removed.

Related operations

Where it runs

GitHub Actions, its scripts, and browser-test setup. The checkout-proof artifact lasts 14 days and contains only a commit SHA. No deployed app/server, signing configuration, dependency, API, database or release-policy.json changes.

Changelog

none

Proof

  • Bun 1.4.3 on PATH: 361 tests passed across 20 related files; 29 expected browser skips locally. Hosted CI runs those browser suites.
  • Live GitHub-history probes verified bounded full-job selection without duplicate partials, then successful merge-group reuse against tested merge 27034a9. The final hosted run passed all five shards and the aggregate check (12,715 tests reported), all six browser matrix jobs, Desktop setup and verify.
  • CLI fixtures cover tested merges, retained rerun proofs, job pagination, missing/failed partial coverage, renamed paths, producer scopes, old-main/delete/restore transitions, full-ci and API failures. The partial Desktop runner test verifies WebKit execution and failure propagation.
  • Print-page browser partials build their required app assets only when that exact test is selected; ordinary partials skip this build.
  • The company-sign-in fixture waits for its WebSocket to open before holding out the page. A temporary delayed handshake reproduced the exact socket error; the event wait passed that case and 270 ordinary/145 paired checks. The delay is not committed.
  • Shared-launcher tests cover default, single/combined/whitespace selection, invalid selection and cleanup ownership after a launch failure.
  • Tracked-file format/lint, workspace/app/Desktop/script typechecks and full sequential workspace build passed. Fixture commits also pass with hostile signing configuration, without changing user Git settings.
  • actionlint has zero new findings; its 19 existing diagnostics are unsupported parsing of the repository's GitHub self-repository references.
  • Independent review: zero remaining mandatory findings. Existing partial-mode global-count accounting is explicitly retained as described above.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T12:23:13.224862Z d3dd79a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

- Only the full-ci label cancels and replaces a pull request's CI run.
  Any other label waits for the run in progress, then finds its checks
  passed on the same commit and skips them. A label run cannot skip
  everything up front: a skipped verify counts as passing.
- 14 files in the cross-browser list ignored the engine selection and
  ran in full in both the Chromium and the WebKit leg, artifacts-screens
  (about 11 minutes) among them. They now run where Chromium is selected
  (ownBrowsersAsked), once. sidebar-window-buttons launches through
  launchBrowserEngines. A test holds every listed file to the selection.
- A full browser job that runs covers the changed files in its list, so
  they no longer run a second time in tests (changed files). The desktop
  setup window's step names its file in a list the planner can read.
- The queued pull request's head is fetched on a deadline of its own,
  and a merge group that has to go without its history says why.
- The budget test builds matrix legs as GitHub does: include and
  exclude are lists of legs, not axes.
- Comments and docs/releasing.md name the engine and shard checks.

This branch has not been deployed

No deployments
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