Skip to content

Add live-branch input for monotonic deployment tracking#2

Open
ryan-williams wants to merge 2 commits intov1.xfrom
live-branch
Open

Add live-branch input for monotonic deployment tracking#2
ryan-williams wants to merge 2 commits intov1.xfrom
live-branch

Conversation

@ryan-williams
Copy link
Copy Markdown
Member

Summary

  • New optional live-branch input for pulumi.yml
  • When set and cmd == up: verifies HEAD descends from the live-branch pointer before deploying, then advances the pointer on success
  • Prevents stale branches from reverting newer deployments; concurrent races rejected by git's non-fast-forward check
  • Gracefully skips ancestry check if live-branch doesn't exist yet (bootstrap case)
  • Full clone (fetch-depth: 0) only when live-branch is set; shallow otherwise

Test plan

  • Manual test: up with live-branch set on a new branch (bootstrap path)
  • Manual test: up from a descendant commit (happy path)
  • Manual test: up from a non-descendant commit (should fail)

🤖 Generated with Claude Code

ryan-williams and others added 2 commits March 30, 2026 21:22
When set and `cmd == up`, enforces that HEAD descends from the
live-branch pointer (preventing stale branches from reverting newer
deployments) and advances the pointer on success. Concurrent races
are rejected by git's non-fast-forward check.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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