Skip to content

ci: parallelize independent setup steps in build and test jobs - #52721

Merged
MarshallOfSound merged 3 commits into
mainfrom
ci-parallel-steps
Aug 17, 2026
Merged

MarshallOfSound merged 3 commits into
mainfrom
ci-parallel-steps

Conversation

@claude

@claude claude Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Requested by Samuel Attard · Slack thread

Description of Change

Before: the test jobs run five independent setup steps (installing dependencies, cloning depot_tools, downloading the generated and src artifacts, and provisioning the Linux CUPS virtual printer) strictly one after another, and macOS builds wait for the disk-freeing step to finish before doing anything else — including restoring caches that don't need the freed space yet.

After: those steps overlap using GitHub Actions' new parallel/background steps, saving roughly 4 minutes of wall time per full run with no behavior change — every step still runs to completion before anything that depends on it.

How: the five independent setup steps in the test segment are grouped under a parallel: block (they write disjoint paths and none reads another's output; env- and PATH-mutating steps stay serial and are only consumed after the group's implicit wait). In the build segment, the macOS disk-freeing step is backgrounded with background: true and a wait-all fence is placed just before the src-cache restore — the step that actually needs the freed disk (the fence is a no-op on Windows/Linux). The publish segment is regenerated from the build segment via the existing sync script, so it picks up the same change.

Deliberately left serial: the Add Depot Tools to PATH and other GITHUB_ENV/GITHUB_PATH-mutating steps, and the macOS AZCopy install, which must not overlap the brew invocations inside the disk-freeing step.

Checklist

Release Notes

Notes: none


Generated by Claude Code

@MarshallOfSound
MarshallOfSound marked this pull request as ready for review August 9, 2026 02:26
@MarshallOfSound MarshallOfSound added target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 12, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) August 12, 2026 07:31
@MarshallOfSound

Copy link
Copy Markdown
Member

Heads up: Windows CI builds moved to new runners on Monday and the old ones have now been removed. This branch predates that, so its Windows build jobs still point at the old runners and will sit queued forever if CI runs again. Rebasing on main (or "Update branch") picks up the change, nothing else needed.

@MarshallOfSound
MarshallOfSound merged commit fc3555e into main Aug 17, 2026
76 checks passed
@MarshallOfSound
MarshallOfSound deleted the ci-parallel-steps branch August 17, 2026 05:18
@release-clerk

release-clerk Bot commented Aug 17, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "42-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/42-x-y and removed target/42-x-y PR should also be added to the "42-x-y" branch. labels Aug 17, 2026
@trop

trop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #52886

@trop trop Bot added in-flight/43-x-y and removed target/43-x-y PR should also be added to the "43-x-y" branch. labels Aug 17, 2026
@trop

trop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #52887

@trop trop Bot added in-flight/44-x-y merged/44-x-y PR was merged to the "44-x-y" branch. and removed target/44-x-y PR should also be added to the "44-x-y" branch. in-flight/44-x-y in-flight/43-x-y labels Aug 17, 2026
@trop trop Bot added the merged/43-x-y PR was merged to the "43-x-y" branch. label Aug 17, 2026
@trop

trop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@VerteDinde has manually backported this PR to "42-x-y", please check out #52993

jkleinsc pushed a commit that referenced this pull request Aug 20, 2026
ci: parallelize independent setup steps in build and test jobs (#52721)

* ci: parallelize independent setup steps in build and test jobs

* ci: regenerate publish pipeline segment

---------


(cherry picked from commit fc3555e)

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Claude <[email protected]>
@trop trop Bot added merged/42-x-y PR was merged to the "42-x-y" branch. and removed in-flight/42-x-y labels Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants