Repository navigation
ci: retry yarn install on transient registry errors #35556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chirag-madlani
wants to merge
6
commits into
main
Choose a base branch
from
chirag-madlani/playwright-workflows-merge
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+176
−20
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
87623ab
ci: retry yarn install on transient registry errors
chirag-madlani 78cea3b
docs: record the CI yarn install retry policy
chirag-madlani 3beb3f6
Merge branch 'main' into chirag-madlani/playwright-workflows-merge
chirag-madlani 9e21369
Merge branch 'main' into chirag-madlani/playwright-workflows-merge
chirag-madlani d5ae32d
Merge branch 'main' into chirag-madlani/playwright-workflows-merge
chirag-madlani a1bdad6
Merge remote-tracking branch 'origin/main' into chirag-madlani/playwr…
chirag-madlani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
29 changes: 29 additions & 0 deletions
29
docs/decisions/2026-10-16-ci-yarn-installs-retry-transient-registry-errors.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # CI yarn installs retry transient registry errors | ||
|
|
||
| - **Status:** Accepted | ||
| - **Revisions:** v1 2026-10-16 (initial) | ||
| - **Deciders:** Chirag Madlani | ||
| - **Guard:** reviewer | ||
| - **Related:** #35556; RDF Playwright run 38749383300 attempt 1 | ||
|
|
||
| ## Context | ||
| Yarn v1 does not retry HTTP 5xx responses on tarball fetches. One `502 Bad Gateway` from | ||
| `registry.yarnpkg.com` aborts the whole install and fails the job before any test runs, as it did | ||
| in the RDF Playwright run above. `playwright-e2e-reusable.yml` already wrapped its installs in a | ||
| retry loop; the other workflows did not. | ||
|
|
||
| ## Decision | ||
| Every CI yarn v1 install whose failure fails the job runs in a 3-attempt loop with 15s then 30s | ||
| linear backoff and `--network-timeout 100000`. The loop is written inline in each workflow step, | ||
| not in a shared composite action or script: several of these workflows run on | ||
| `pull_request_target` with the PR head checked out, where a shared helper would execute the PR's | ||
| own copy of it. | ||
|
|
||
| Exempt: installs marked `continue-on-error` (their failure cannot fail the job) and the | ||
| `frontend-maven-plugin` installs in the poms. | ||
|
|
||
| ## Consequences | ||
| A registry blip costs up to ~45s of waiting instead of a red job. A real outage fails after three | ||
| attempts, at most about three install durations plus the waits. A new workflow that runs | ||
| `yarn install` copies the same block. Revisit when the UI moves to yarn ≥2, which retries network | ||
| errors itself, at which point the loops can go. |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.