Skip to content

spawn reaper deploy on an existing reaper: says DRY RUN when armed, never updates spawn:version, says it created a bucket it reused #1086

Closed

Description

@scttfrdmn

Found upgrading the dev account's armed self-hosted reaper (us-west-2) from v0.121.0 to v0.131.0, once #1084 let the redeploy finish. The redeploy path still behaves as if every deploy were the first:

  1. It says the reaper is in dry run when it is armed. cmd/reaper.go prints "⚠️ DRY RUN: it will log what it WOULD reclaim and touch nothing … then arm it" unconditionally, and Result.DryRun is initialised true and never changed. The deployer correctly preserves REAPER_DRY_RUN=false on an existing function, so the reaper stayed armed, but the operator is told it isn't and to run spawn reaper arm.
  2. spawn:version is never updated. Tags are only passed to CreateFunction; the update path never calls TagResource. After the upgrade the function runs v0.131.0 and is still tagged 0.121.0, which is what spawn reaper status and the skew report (spored and the lambdas never upgrade with the CLI, and nothing warns about the skew #654) read, so they report the wrong version indefinitely: exactly the skew the CLI tells you to fix by re-running deploy.
  3. "created artifact bucket" for a bucket that already existed. Deploy logs actionWord(true, …) regardless of what ensureBucket did.

Not changed, deliberately: an existing untagged artifact bucket (this one predates bucket tagging) is not stamped spawn:managed=true on redeploy. The tag is the proof of ownership teardown relies on, and --bucket can name a bucket spawn did not create, so tagging an existing bucket would let teardown empty a bucket that is not spawn's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions