Skip to content

Added retries to the rust downloads - #2440

Draft
claude[bot] wants to merge 1 commit into
masterfrom
pr-rust-download-retries
Draft

Added retries to the rust downloads#2440
claude[bot] wants to merge 1 commit into
masterfrom
pr-rust-download-retries

Conversation

@claude

@claude claude Bot commented Aug 17, 2026

Copy link
Copy Markdown

Requested by Lars Erik Wik · Slack thread

Before: ci/linux-install-rust.sh downloaded each Rust component tarball (rustc, cargo, rust-std) from static.rust-lang.org with a single wget attempt, 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 wget call in install_component in the rust install script, using wget -O so every attempt writes to the same file rather than adding a .1 suffix. No versions or checksums change.

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
olehermanse requested a review from larsewi August 17, 2026 18:28
@olehermanse
olehermanse marked this pull request as draft August 17, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant