-
Notifications
You must be signed in to change notification settings - Fork 33
Retry installing Visual Studio Build Tools on failure #177
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
base: main
Are you sure you want to change the base?
Conversation
bkhouri
left a comment
There was a problem hiding this 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.
7deb288 to
6e1cdb2
Compare
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.
6e1cdb2 to
79b5dd5
Compare
|
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. |
a574176 to
faf7a9d
Compare
faf7a9d to
d2e883d
Compare
|
@jakepetroules that does simplify things; I've updated the PR. |
|
@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 |
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.