Skip to content

build: balance CI test shards by measured spec duration - #53563

Merged
codebytere merged 1 commit into
43-x-yfrom
sam/bp-53441-43-x-y
Sep 5, 2026
Merged

codebytere merged 1 commit into
43-x-yfrom
sam/bp-53441-43-x-y

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #53441.

See that PR for details. The weights are main's; regenerate them from this branch's own test timings after a run.

Notes: none

@trop trop Bot added 43-x-y backport This is a backport PR labels Sep 5, 2026
* build: balance CI test shards by measured spec duration

split-tests.js assigned spec files round-robin by `it(` count, which put
api-browser-window-spec.ts and api-autoupdater-darwin-spec.ts on the same
macOS x64 shard (29 test-minutes) while its siblings got 13 and 7.5.

- split-tests.js packs files largest-first into the lightest shard using
  per-platform seconds from script/spec-weights.json; files without a
  weight get the median, and with no weights it falls back to `it(` count.
- The spec runner writes per-file wall time to spec/artifacts/
  spec-timings.json on CI (already uploaded with the test artifacts), and
  script/gen-spec-weights.js folds a downloaded set of those into
  spec-weights.json.
- Seed weights are derived from the test logs of build run 33716702873.

* test: isolate window.open zoomFactor spec in its own partition

The setWindowOpenHandler zoomFactor test opens http://localhost at
zoomFactor 2.0 in the default session, which records a persisted per-host
zoom level for localhost. With the weighted shard split this spec now
shares a shard with api-web-contents-spec, whose 'cannot persist zoom
level after navigation with webFrame' test loads localhost in the default
session and expects a zoom level of 0.

(cherry picked from commit 8baab86)
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 5, 2026 01:10
@MarshallOfSound MarshallOfSound self-assigned this Sep 5, 2026
@codebytere
codebytere merged commit 52275a1 into 43-x-y Sep 5, 2026
131 of 133 checks passed
@codebytere
codebytere deleted the sam/bp-53441-43-x-y branch September 5, 2026 08:59
@release-clerk

release-clerk Bot commented Sep 5, 2026

Copy link
Copy Markdown

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants