Skip to content

Retry transient Yarn install failures - #14708

Merged
Sean McManus (sean-mcmanus) merged 2 commits into
mainfrom
seanmcm/devbox2-wsl/agent27/retry-yarn-install
Aug 25, 2026
Merged

Retry transient Yarn install failures#14708
Sean McManus (sean-mcmanus) merged 2 commits into
mainfrom
seanmcm/devbox2-wsl/agent27/retry-yarn-install

Conversation

@sean-mcmanus

Copy link
Copy Markdown
Contributor

Summary

Retries yarn install up to three times with 15- and 30-second backoff in the shared compile-and-test workflow. This prevents transient registry or proxy failures such as the HTTP 503 in CI (Windows) run 32850406154 from immediately failing CI while preserving the final nonzero result when all attempts fail.

Validation

  • Parsed the workflow with PyYAML and asserted the retry step structure.
  • Ran bash -n and ShellCheck on the extracted retry script.
  • Exercised mocked success-on-third-attempt and permanent-failure paths, including workflow argument preservation and backoff timing.
  • Ran git diff --check.

This PR was investigated and created by GitHub Copilot in VS Code. Any message starting with ✨Copilot: was sent by Copilot.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds resilient dependency installation to the shared CI workflow.

Changes:

  • Retries yarn install up to three times.
  • Applies 15- and 30-second backoff delays.
  • Preserves optional Yarn arguments and final failure status.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sean-mcmanus
Sean McManus (sean-mcmanus) marked this pull request as ready for review August 25, 2026 14:12
@sean-mcmanus
Sean McManus (sean-mcmanus) requested a review from a team as a code owner August 25, 2026 14:12
@sean-mcmanus
Sean McManus (sean-mcmanus) merged commit 118c136 into main Aug 25, 2026
5 checks passed
@sean-mcmanus
Sean McManus (sean-mcmanus) deleted the seanmcm/devbox2-wsl/agent27/retry-yarn-install branch August 25, 2026 18:25
@github-project-automation github-project-automation Bot moved this from Pull Request to Done in cpptools Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants