ci(pr-review-companion): run independent steps in parallel - #45580
Open
caugner wants to merge 1 commit into
Open
ci(pr-review-companion): run independent steps in parallel#45580caugner wants to merge 1 commit into
caugner wants to merge 1 commit into
Conversation
Use the GitHub Actions `parallel` step group to overlap independent, network-bound steps instead of running them serially: - the artifact download and the `mdn/content` checkout, - the status update, GCP authentication, and Node setup. The checkout is no longer gated on `HAS_ARTIFACT`, as it now precedes the `Check for artifacts` step.
caugner
force-pushed
the
run-independent-ci-steps-in-parallel
branch
from
September 8, 2026 21:03
12e87e3 to
84b3d0b
Compare
caugner
marked this pull request as ready for review
September 8, 2026 21:05
4 tasks
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.
Description
Update the PR review companion workflow to run independent, network-bound steps in parallel using the GitHub Actions
parallelstep group:mdn/contentcheckout,Motivation
Speed up CI by overlapping independent download, checkout, and setup steps instead of running them serially.
Additional details
Uses the parallel step keywords introduced in GitHub Actions on 2026-06-25: https://github.blog/changelog/2026-06-25-actions-steps-can-now-be-run-in-parallel/
parallelis shorthand forbackground: trueon each step followed by an implicit wait: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsparallelMeasured over the last 25 runs of the
reviewjob, this saves about 4s of a ~48s job (8%), consistently 7-9% per run. Group 1 collapsesDownload artifact(1-3s) intoCheckout (mdn/content)(4-11s); group 2 collapsesMark status as pending(1-4s) andAuthenticate with GCP(0-1s) intoSetup (mdn/content)(4-5s).One behavior change:
Checkout (mdn/content)is no longer gated onHAS_ARTIFACT, because it now precedes theCheck for artifactsstep. It runs concurrently with the artifact download, so there is no wall-clock cost.The other workflows in this repository were checked and left unchanged.
interfacedata-updater.ymlwould save ~8s but only runs weekly, andpr-reviewdog.ymlsaves a median of 0s (its artifact download is under a second, andSetup reviewdogexecuted in only 2 of 25 sampled runs). The rest, includingtest.yml,markdown-lint.yml, thepr-check_*.ymlset,spelling-check-bot.yml, andauto-cleanup-bot.yml, are strictcheckout->setup-nodechains:node-version-file: .nvmrcandcache: npmboth need the checkout to have finished, so there is nothing independent to overlap.Note that this workflow triggers on
workflow_runonly, so it does not run on this PR.Related issues and pull requests
Part of mdn/fred#1862.
Follows mdn/rari#775.