Skip to content

fix(cli): assign unique rollout instance IDs - #1002

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
mhb888248:fix/rollout-unique-instance-ids
Aug 30, 2026
Merged

fix(cli): assign unique rollout instance IDs#1002
ralyodio merged 1 commit into
profullstack:masterfrom
mhb888248:fix/rollout-unique-instance-ids

Conversation

@mhb888248

Copy link
Copy Markdown
Contributor

Problem

Multi-instance rollouts calculated every new ID against the unchanged original fleet. A three-instance blue-green rollout therefore persisted inst-0004 three times, corrupting fleet identity and the rollout record.

Fix

Include instances already prepared in the current rollout when calculating the next ID.

Regression coverage

The new subprocess test executes a real three-instance blue-green rollout in an isolated home, reads the persisted fleet, and requires the new IDs to be inst-0004, inst-0005, and inst-0006 while preserving unrelated credentials.

Verification

  • reproduced persisted IDs inst-0004, inst-0004, inst-0004 before the fix
  • verified persisted IDs inst-0004, inst-0005, inst-0006 after the fix
  • pnpm exec vitest run packages/cli/src/commands/scale.test.ts (59 passed)
  • pnpm --filter @profullstack/sh1pt... build
  • pnpm --filter @profullstack/sh1pt typecheck

@github-actions

Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

@ralyodio
ralyodio merged commit e91fe42 into profullstack:master Aug 30, 2026
6 checks passed
@github-actions

Copy link
Copy Markdown

🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: git fetch upstream master && git rebase upstream/master.

ralyodio added a commit that referenced this pull request Aug 30, 2026
Lockstep bump of every published package. The six packages the cli depends on
had drifted to 0.3.0 while the cli sat at 0.3.1; they are all 0.3.2 now, which
is what the lockstep script exists to guarantee — pnpm rewrites `workspace:` to
a real range at publish time, so anything the cli depends on has to reach the
registry at a version that exists.

Since v0.3.0:

- threatcrush-scan pack pinned to @profullstack/threatcrush@0.11.5 with a
  reproduced SRI hash, pack 2.0.2 so the fleet re-syncs consumers (#1003)
- unique rollout instance IDs (#1002)
- cloud vault passphrase prompt no longer hangs on non-TTY stdin (#1001)
- DNS config persisted in JSON mode (#1000)
- netcup adapter shipped in the command tree (#969)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H3GDps1fD6ccfo93B3ePy1
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.

2 participants