Skip to content

Add download retry on failure for clang tools - #327

Merged
BruceForstall merged 1 commit into
dotnet:mainfrom
BruceForstall:AddClangToolsDownloadRetryOnWindows
Apr 28, 2021
Merged

BruceForstall merged 1 commit into
dotnet:mainfrom
BruceForstall:AddClangToolsDownloadRetryOnWindows

Conversation

@BruceForstall

@BruceForstall BruceForstall commented Apr 28, 2021 •

Copy link
Copy Markdown
Contributor

On download failure, add 3 retries, with 15 second waits between them.

@BruceForstall

Copy link
Copy Markdown
Contributor Author

(Hopefully) fixes dotnet/runtime#51943

I can't force the downloads to fail, but I did test it with artificial failures.

@dotnet/jit-contrib PTAL
cc @ViktorHofer @trylek @jkoritzinsky @hoyosjs

@BruceForstall BruceForstall self-assigned this Apr 28, 2021
Comment thread bootstrap.cmd
Comment on lines +151 to +152
call :download_url clang-tidy "https://clrjit.blob.core.windows.net/clang-tools/windows/clang-tidy.exe" bin\clang-tidy.exe
if %__ExitCode% NEQ 0 goto :eof

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't change previous behavior, so I'm not saying this has to fix it. But it's not clear to me who uses __ExitCode for this subprocess and how that will bubble up to the caller.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the :build_jitutils path, and the caller uses __ExitCode to set the exit code by calling :script_exit

@BruceForstall
BruceForstall merged commit 08ded33 into dotnet:main Apr 28, 2021
@BruceForstall
BruceForstall deleted the AddClangToolsDownloadRetryOnWindows branch April 28, 2021 20:37
jashook pushed a commit to jashook/jitutils that referenced this pull request Mar 8, 2022
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.

2 participants