Skip to content

Added retries to the rust downloads - #2440

Merged
larsewi merged 1 commit into
masterfrom
pr-rust-download-retries
Aug 19, 2026
Merged

Added retries to the rust downloads#2440
larsewi merged 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
@larsewi
larsewi marked this pull request as ready for review August 18, 2026 11:58
@larsewi

larsewi commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi

larsewi commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

@claude please backport this to 3.27.x and 3.24.x LTS branches.

@claude

claude Bot commented Aug 18, 2026

Copy link
Copy Markdown
Author

Backports opened: the 3.27.x backport is #2441 and the 3.24.x backport is #2442.


Generated by Claude Code

@larsewi
larsewi merged commit 8ea7216 into master Aug 19, 2026
39 of 40 checks passed
@larsewi
larsewi deleted the pr-rust-download-retries branch August 19, 2026 08:31
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.

3 participants