Skip to content

Conversation

@HaoK
Copy link
Member

@HaoK HaoK commented Jun 12, 2020

Fixes #20577

  • dotnet-install.ps1 retry logic copied from eng/common/tools.ps1

@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 12, 2020
@Pilchie
Copy link
Member

Pilchie commented Jun 13, 2020

👀

@HaoK HaoK marked this pull request as ready for review June 16, 2020 09:09
@HaoK HaoK requested a review from a team June 16, 2020 09:09
@HaoK
Copy link
Member Author

HaoK commented Jun 16, 2020

Gist of the change is added a new download.ps1 helper that does 5 retries with exponential backoff (copied from eng/common/tools.ps1), everywhere we were using invoke-webrequest directly has been updated to use this

Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

This covers the *.ps1 files nicely.

We also need to add --retries 5 to all curl commands in *.sh files. Are you planning to do that in a separate PR❔

@HaoK
Copy link
Member Author

HaoK commented Jun 16, 2020

Yeah I'll do the non ps1's in a different PR

Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

One thing to test and maybe fix. Otherwise, looks great!

Copy link
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Ooops

@HaoK HaoK merged commit 46d012d into master Jun 17, 2020
@HaoK HaoK deleted the haok/retry branch June 17, 2020 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flakiness caused by lack of retries

4 participants