Skip to content

Conversation

@plemarquand
Copy link
Contributor

We've seen occasional failures to install the Visual Studio Build Tools due to flakey responses from the server.

Attempt to make this script more robust by adding a retry with exponential backoff, attempting up to 10 times before eventually giving up. This adds the same logic to both the VSB and Swift toolchain downloads.

@plemarquand plemarquand requested a review from a team as a code owner November 3, 2025 14:28
Copy link

@bkhouri bkhouri left a comment

Choose a reason for hiding this comment

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

Some comments for your consideration.

@plemarquand plemarquand force-pushed the install-vsb-retries branch 2 times, most recently from 7deb288 to 6e1cdb2 Compare November 4, 2025 16:22
We've seen occasional failures to install the Visual Studio Build Tools
due to flakey responses from the server.

Attempt to make this script more robust by adding a retry with
exponential backoff, attempting up to 10 times before eventually giving
up. This adds the same logic to both the VSB and Swift toolchain
downloads.
@jakepetroules
Copy link
Contributor

Is there any advantage to using Invoke-WebRequest versus just using curl with --retry? Windows has it built-in nowadays. The code would be a lot simpler.

@plemarquand
Copy link
Contributor Author

@jakepetroules that does simplify things; I've updated the PR.

@plemarquand
Copy link
Contributor Author

@shahmishal could you take a look at this PR? Hopefully it will mitigate CI failures like this one: https://github.com/swiftlang/vscode-swift/actions/runs/19445040869/job/55637697861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants