Added retries to the rust downloads - #2440
Draft
claude[bot] wants to merge 1 commit into
Draft
Conversation
The rust component tarballs are downloaded with wget the same way as the protoc release asset, which failed a nightly with wget exit 8, a transient server error. Apply the same retry loop as in the protoc install script (#2426).
olehermanse
marked this pull request as draft
August 17, 2026 18:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Lars Erik Wik · Slack thread
Before:
ci/linux-install-rust.shdownloaded each Rust component tarball (rustc, cargo, rust-std) from static.rust-lang.org with a singlewgetattempt, so any transient server error failed the whole build host setup immediately.After: each tarball download is retried up to 3 times with a 10 second pause between attempts, and the script fails with a clear error message (including the wget exit status and URL) only after all attempts are exhausted.
How: this applies the exact retry loop introduced for the protoc download in #2426 (which fixed a nightly that failed with wget exit 8) to the analogous
wgetcall ininstall_componentin the rust install script, usingwget -Oso every attempt writes to the same file rather than adding a.1suffix. No versions or checksums change.