Skip to content

Better retries - #22898

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

HaoK merged 22 commits into
masterfrom
haok/retry

Conversation

@HaoK

@HaoK HaoK commented Jun 12, 2020 •

Copy link
Copy Markdown
Member

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

Pilchie commented Jun 13, 2020

Copy link
Copy Markdown
Member

👀

@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

HaoK commented Jun 16, 2020

Copy link
Copy Markdown
Member Author

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

@dougbu dougbu 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.

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 Resolved
Comment thread eng/helix/content/InstallDotNet.ps1 Resolved
Comment thread eng/helix/content/dotnet-install.ps1 Resolved
Comment thread eng/helix/content/InstallDotNet.ps1 Resolved
Comment thread eng/helix/content/Download.ps1 Resolved
Comment thread eng/scripts/Download.ps1 Resolved
@HaoK

HaoK commented Jun 16, 2020

Copy link
Copy Markdown
Member Author

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

@dougbu dougbu 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.

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

Comment thread eng/helix/content/Download.ps1 Resolved

@dougbu dougbu 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.

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