Skip to content

fix(bootstrap): retry transient spored download/checksum fetches (#462) - #463

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/462-spored-checksum-retry
Jul 31, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/462-spored-checksum-retry

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

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 .sig all return HTTP 200 from spawn-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-shot curl -f with 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 .sig HEAD probe): the binary download, the checksum fetch, the .sig fetch, 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/launcher green, including the existing bash -n syntax 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.

…462)

A single-shot curl on the checksum fetch hard-failed the whole spored install on
a transient S3 empty-reply (found in a #70 smoke); the artifact was present. All
download+verify fetches now use curl --retry --retry-all-errors.
@scttfrdmn
scttfrdmn merged commit 3fc9f71 into main Jul 31, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the fix/462-spored-checksum-retry branch July 31, 2026 04:05
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.

spored bootstrap fails at 'Failed to download checksum' for v0.96.0 — blocks ALL spored instances

1 participant