Uh oh!
There was an error while loading. Please reload this page.
ci: give the alignment audit its own lane - #1974
Merged
Merged
Conversation
The CDP alignment auditor rode e2e_shard 1, which made that shard ~51s longer than shard 2 for work Playwright never depended on: measured 118s/120s of balanced test time, then a 51s audit on one side only. Split it into its own job behind the same `e2e` selection gate, and add it to the aggregate `e2e` check so the required gate still covers it. The lane pays one extra checkout and build; both run in parallel, so the e2e critical path drops to the shards themselves.
Astro-Hanforce-pushed
the
ci/alignment-audit-own-lane
branch
from
August 3, 2026 09:46
9234d09 to
9702fb8CompareAstro-Han
marked this pull request as ready for review
August 3, 2026 09:58
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Summary
The CDP alignment auditor ran as a final step on
e2e_shard 1, sharing that runner to reuse its built renderer. Playwright itself shards evenly — a recent run measured 118s on shard 1 against 120s on shard 2 — but the 51s audit landed on one side only, making shard 1 the longer of the two for work Playwright has no data dependency on.This moves the audit into its own
alignment_auditjob behind the sameneeds.changes.outputs.e2egate. That gate already covers both surfaces;ci-test-plan.mjsdescribes its own output as "Electron E2E + alignment audit" and routesscripts/audit-alignment.mjsthroughE2E_DRIVING_SCRIPTS, so the selection logic needs no change.The new lane is also added to the aggregate
e2echeck, so splitting it out does not quietly drop it from the required gate.Trade-off: the audit lane pays one extra checkout and build. Both are parallel, so this costs runner-minutes rather than wall-clock, and in exchange the e2e critical path becomes the shards themselves.
Refs #1965.
Verification
python3 -c "import yaml; yaml.safe_load(...)"on the workflow — parses; jobs resolve tochanges, typecheck, test_workspaces, test_runtime_host, test_headless, test, e2e_shard, alignment_audit, e2e, storybook, withe2e.needs = [changes, e2e_shard, alignment_audit].This is the same prerequisite the audit had before: the
e2enpm script it rode wasbuild:with-deps && playwright test.scripts/ci-test-plan.test.mjsasserts plan outputs, not workflow structure.