Skip to content

release(0201): auto-advance the stable channel ref on each cut (Model B plumbing)#357

Merged
clkao merged 1 commit into
mainfrom
hotfix/stable-ref-automation
Jun 13, 2026
Merged

release(0201): auto-advance the stable channel ref on each cut (Model B plumbing)#357
clkao merged 1 commit into
mainfrom
hotfix/stable-ref-automation

Conversation

@clkao

@clkao clkao commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Makes the stable marketplace channel a moving stable ref the release advances automatically, so the standalone spacedock-dev/marketplace manifest never needs a per-release hand-edit again.

Already landed (one-time, no behavior change)

  • Created a stable branch in this repo at the v0.20.0 commit (= exactly what the stable entry served via ref: v0.20.0).
  • Repointed spacedock-dev/marketplace stable entry source.ref: v0.20.0stable. The manifest is now static.

This PR

  • release.yml stamp step, after pushing the stamped release commit to main, also fast-forwards refs/heads/stable to it (GITHUB_TOKEN suffices — same repo, unlike the cross-repo homebrew-tap push). Restructured the no-op-stamp branch so the stable advance always runs.
  • Guard parser skips refspec pushes (target contains :) so the stable push does not shadow the bare-branch stamp target.
  • New TestStampStepAdvancesStableRef locks the stable-advance push (adversarially verified: removing the push reds it). Without it the stable channel would freeze at the prior release, since the manifest is now static.

The host keys re-pull on the source refs plugin.json version (not the marketplace entry version), so when stable advances to a stamped release commit the host sees the version bump and re-pulls. Whole-repo go test ./... green. Replaces the manual post-cut marketplace repoint with release-machinery (the ezn/stamp-then-tag lane, design (b)).

🤖 Generated with Claude Code

The marketplace stable entry now pins source.ref=stable (a moving branch in this repo)
instead of a per-release tag, so publishing to the stable channel is advancing that
branch — no longer a hand-edit of the spacedock-dev/marketplace repo. The stamp step,
after pushing the stamped release commit to main, fast-forwards refs/heads/stable to it
(GITHUB_TOKEN suffices — same repo). Restructured the no-op-stamp branch so the stable
advance always runs.

Guard parser: skip refspec pushes (target contains ':') so the stable push does not
shadow the bare-branch stamp target. New TestStampStepAdvancesStableRef locks the
stable-advance push (without it the stable channel would freeze at the prior release,
since the marketplace manifest is now static). Whole-repo go test ./... green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@clkao clkao merged commit 5a8880c into main Jun 13, 2026
6 of 9 checks passed
@clkao clkao deleted the hotfix/stable-ref-automation branch June 13, 2026 19:58
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.

1 participant