You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
release: publish the versioned spored before the CLI is installable (launches pinned by #1412 retire until it lands) #1415
Follow-up to #1412 (PR to follow). With #1412, a release build of spawn installs spored only from spawn/versions/<its version>/ and never falls back to the unversioned latest; a missing versioned spored retires the instance (spawn_fatal_retire), as a bad signature does.
The release workflow publishes those objects after the CLI is installable:
.github/workflows/release.yaml step order (job goreleaser): "Publish the bootstrap body to S3" (line ~80) → "Run GoReleaser" (~126, publishes the GitHub release, Homebrew tap and Scoop bucket) → "Check the released spawn prints the published body" → "Attest build provenance" → "Configure AWS credentials" → "Upload spored binaries to S3" (~179, which writes spawn/versions/${VERSION}/spored-* plus .sha256/.sig).
The spored upload reads dist/spored_*, which only exists after GoReleaser, so it cannot simply move up.
Window: between the tap push and the end of the spored upload (minutes: the upload is 11 regions x ~27 objects through xargs -P 16), a freshly installed CLI's launches find no versioned spored and retire themselves at boot. No cost leak (fail-closed), but every launch in that window fails.
The body has the same requirement and solved it by publishing before GoReleaser (comment at line ~62: "no installable spawn may exist before its body does"). spored now needs the same treatment. Options:
build spored (linux amd64/arm64, windows amd64) in a step before GoReleaser with the same flags .goreleaser.yaml uses, sign and upload the versioned objects, and have a post-GoReleaser step check dist/spored_* hashes equal the uploaded ones (the body's "released spawn prints the published body" pattern); or
split GoReleaser into build → upload spored → release (publish), e.g. goreleaser build then goreleaser release --skip=build is not supported directly; goreleaser release --skip=publish then a separate publish would need checking.
Not done in #1412 because it restructures the release job; the verification step in the manual release ritual (verify-spored.sh) already checks the versioned objects exist and are newer than the tag.
Activity
test(release): gate the spored publish order, build parity, verificat…
docs(changelog): versioned spored is published before the CLI (#1415)
fix(release): publish the versioned spored before GoReleaser makes th…
test(release): gate the spored publish order, build parity, verificat…
docs(changelog): versioned spored is published before the CLI (#1415)
fix(release): publish the versioned spored before GoReleaser makes th…
test(release): gate the spored publish order, build parity, verificat…
docs(changelog): versioned spored is published before the CLI (#1415)
fix(release): publish and verify the versioned spored before GoReleas…