Skip to content

release: publish the versioned spored before the CLI is installable (launches pinned by #1412 retire until it lands) #1415

Closed

Description

@scttfrdmn

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.

Consequences, once #1412 ships:

  1. 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.
  2. Failed upload: if "Upload spored binaries to S3" fails (KMS sign, an S3 error, the role), every launch by that release retires until the objects are hand-published. Before Pin spored to the launching CLI's version (install from spawn/versions/<ver>/), not the unversioned latest #1412 the same failure only left launches on the previous latest spored.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sporedcomponent:spawntype:bugtype:infra

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions