Skip to content

[xaprepare] Retry runtime pack restore up to 3 times - #10970

Merged
jonathanpeppers merged 2 commits into
mainfrom
dev/peppers/retry-restore
Mar 19, 2026
Merged

[xaprepare] Retry runtime pack restore up to 3 times#10970
jonathanpeppers merged 2 commits into
mainfrom
dev/peppers/retry-restore

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

The dotnet restore for runtime packs in Step_InstallDotNetPreview can time out (10-minute default) due to transient NuGet feed issues, causing the entire macOS build to fail and require manual reruns.

Add retry logic (up to 3 attempts) so transient restore failures self-heal without manual intervention.

The dotnet restore for runtime packs in Step_InstallDotNetPreview can
time out (10-minute default) due to transient NuGet feed issues, causing
the entire macOS build to fail and require manual reruns.

Add retry logic (up to 3 attempts) so transient restore failures
self-heal without manual intervention.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review March 19, 2026 02:39
Copilot AI review requested due to automatic review settings March 19, 2026 02:39

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 resiliency to xaprepare’s .NET Preview SDK install flow by retrying the runtime pack restore step, reducing macOS build failures due to transient NuGet/feed timeouts.

Changes:

  • Wrap dotnet restore of package-download.proj in a retry loop (up to 3 attempts).
  • Improve failure messaging to report retries and final failure after exhausting attempts.

Comment thread build-tools/xaprepare/xaprepare/Steps/Step_InstallDotNetPreview.cs
Comment thread build-tools/xaprepare/xaprepare/Steps/Step_InstallDotNetPreview.cs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jonathanpeppers
jonathanpeppers merged commit 998d002 into main Mar 19, 2026
5 of 6 checks passed
@jonathanpeppers
jonathanpeppers deleted the dev/peppers/retry-restore branch March 19, 2026 12:30
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants