Skip to content

Better retries#22898

Merged
HaoK merged 22 commits into
masterfrom
haok/retry
Jun 17, 2020
Merged

Better retries#22898
HaoK merged 22 commits into
masterfrom
haok/retry

Conversation

@HaoK
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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❔

Comment thread eng/helix/content/Download.ps1 Outdated
Comment thread eng/helix/content/InstallDotNet.ps1 Outdated
Comment thread eng/helix/content/dotnet-install.ps1 Outdated
Comment thread eng/helix/content/InstallDotNet.ps1
Comment thread eng/helix/content/Download.ps1 Outdated
Comment thread eng/scripts/Download.ps1
@HaoK
Copy link
Copy Markdown
Member Author

HaoK commented Jun 16, 2020

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

Copy link
Copy Markdown
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!

Comment thread eng/helix/content/Download.ps1 Outdated
Copy link
Copy Markdown
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

3 participants