fix(ci): retry yarn audit on transient network errors (WCN-865)#8975
Merged
gokulhost merged 2 commits intoJun 9, 2026
Merged
Conversation
e10a655 to
49433e0
Compare
mrdanish26
approved these changes
Jun 9, 2026
louib
reviewed
Jun 9, 2026
| - name: Install retry | ||
| uses: BitGo/install-github-release-binary@v2 | ||
| with: | ||
| targets: EricCrosson/retry@v1 |
Contributor
There was a problem hiding this comment.
@gokulhost this is installing an unpinned binary from a third-party repository directly into the job that is authorized to publish the SDK. Please install from the BitGo retry repository and make sure to pin the expected digest of the binary
2 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.
Summary
improved-yarn-auditfails withERROR: Network error occurred when querying audit registryon transient npm registry blips, blocking the release pipelineEricCrosson/retry(viaBitGo/install-github-release-binary@v2, same pattern as build-system) wrapping the audit step with--up-to 2x --every 3s--retry-on-network-failurebuilt intoimproved-yarn-auditfor a 1s inner retry, giving 4 total attempts before failureRetry chain:
improved-yarn-auditattempt 1 → network error → built-in 1s retry → attempt 2EricCrosson/retrywaits 3s → attempt 3 → built-in retry → attempt 4Applies to both
npmjs-release.ymlandpublish.yml.Fixes: https://github.com/BitGo/BitGoJS/actions/runs/27217754057/job/80364080072
Linear: WCN-865
Test plan
improved-yarn-audit --helpshows--retry-on-network-failureflag (v3.0.4 ✓)EricCrosson/retryinstalls andretry --up-to 2x --every 3s -- <cmd>syntax is valid🤖 Generated with Claude Code