Repository navigation
fix(bootstrap): retry transient spored download/checksum fetches (#462) - #463
Merged
Merged
Conversation
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.
Fixes #462.
Root cause (corrected from the initial report)
A #70 real-AWS smoke saw a worker fail spored install at
Verifying checksum... curl (52) Empty reply from server → Failed to download checksum. My first read was "checksum artifact missing from the release." Verified otherwise:spored-linux-amd64,.sha256, and.sigall return HTTP 200 fromspawn-binaries-us-east-1(the no-prefix candidate the bootstrap used). The artifacts are present and correctly named.The real bug: the checksum fetch (
pkg/launcher/bootstrap.go) was a single-shotcurl -fwith no retry, so a transient S3 empty-reply/reset on that one small GET aborts the entire install — the instance boots with no spored and silently never runs its workload. The binary GET had only per-candidate fallback, not retry either.Fix
All four download/verify fetches now use
curl --retry 5 --retry-delay 2 --retry-all-errors(3× on the up-front.sigHEAD probe): the binary download, the checksum fetch, the.sigfetch, and the sig HEAD probe. A flaky response is retried instead of fatal. Fail-closed behavior on a genuinely-missing/mismatched artifact is unchanged (retries exhaust → same hard fail).Why it matters
This is not pool-specific — it affects every spored-backed instance (
spawn task run, job arrays, pools). A transient hiccup shouldn't brick a boot.Tests
pkg/launchergreen, including the existingbash -nsyntax check of the generated bootstrap. Added assertions locking in the retry flags on the binary + checksum fetches so they can't be silently dropped. Updated the sig-probe assertion.Severity note for #462: downgraded from "blocks all spored / needs v0.96.1" to a robustness fix — the release artifacts are fine, so existing v0.96.0 instances mostly boot; this hardens against the intermittent failure. Still worth shipping in the next release.