Skip to content

fix(upgrade): refuse to roll back to a version without its vp binary - #3614

Open
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/upgrade-rollback-missing-binary
Open

jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:fix/upgrade-rollback-missing-binary

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

vp upgrade --rollback only checked that the previous version directory existed. When that directory was left without bin/vp, for example after an interrupted install or a partial cleanup, the rollback still saved .previous-version, pointed current at the incomplete version, and exited with code 0. Because the vp shim links to current/bin/vp, this removed the vp command, so the user could not run another rollback to recover.

The rollback now checks that the target binary exists before it changes any state. A missing binary fails with an error, and both current and .previous-version stay unchanged. The new command_upgrade_rollback_missing_binary snapshot case removes the binary from the rollback target and verifies the error and the unchanged installation.

@jong-kyung jong-kyung self-assigned this Nov 30, 2026
@jong-kyung jong-kyung added test: e2e Auto run e2e tests test: create-e2e Run `vp create` e2e tests labels Nov 30, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T00:11:50.646926Z 3af9186 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 3af9186fda

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
jong-kyung marked this pull request as ready for review November 30, 2026 00:10
@jong-kyung
jong-kyung requested a review from fengmk2 November 30, 2026 00:10

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test: create-e2e Run `vp create` e2e tests test: e2e Auto run e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant