Repository navigation
fix(version): 0.4.x upgrades to 1.x in place - #152
Merged
Merged
Conversation
1.0.0 was cut from 0.4.3 without touching stable state, so a 0.4.x canister can be upgraded in place. Count the 0.4 series as part of series 1 so the plugin suggests an upgrade instead of a reinstall, and update the docs that said 0.4.x -> 1.0.0 needs a reinstall. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change enabling in-place upgrades from 0.4.x to 1.x.
No open issues 🎉
What changed in this PR
This PR classifies 0.4.x and 1.x as state-compatible, so the sync plugin recommends an in-place upgrade rather than a state-wiping reinstall.
Changes:
- Maps
0.4.xto compatibility series(1, 0), while keeping earlier series separate. - Adds compatibility tests covering the bridge and its boundaries.
- Updates documentation to require
1.xreleases to recover0.4.xstate.
| File | Description |
|---|---|
README.md |
Documents the 0.4.x → 1.x in-place upgrade exception. |
docs/governance.md |
Clarifies which version transitions require a governed reinstall. |
crates/wire-types/src/version.rs |
Implements the shared compatibility series and adds boundary tests. |
crates/e2e/tests/governance.rs |
Updates a test doc comment to describe post-1.0 breaking releases. |
certified-assets.did |
Updates compatibility and reinstall comments; interface signatures are unchanged. |
.claude/rules/project-stage.md |
Requires 1.x releases to recover state written by 0.4.x. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The deleted v1.0.0 release treated 0.4.x → 1.0.0 as a breaking (reinstall) switch. But 1.0.0 is 0.4.3 plus
upload_assets(#149); stable state (canister-core/src/store/) hasn't changed since 0.4.3. So a reinstall would wipe protection tokens,authorized principals and preserved files for no reason.Version::series()maps0.4to series(1, 0), soupgrade_compatible_withtreats 0.4.x ↔ 1.x as an in-place upgrade. The plugin's mismatch hint now says to upgrade.0.3.xand earlier stay separate series.project-stage.md(1.x must also recover 0.4.x state),governance.md,.didcomments, and an e2e doc comment.Verified by hand on a local network: deployed the published v0.4.3 recipe wasms,
authorized a principal, then ranicp deploywith this branch's build. Result:version= 1.0.0, the principal is still listed, sync reported "3 asset(s) already up to date" (nothing re-uploaded), and the site serves.After merge: re-tag
v1.0.0on the merge commit and republish the recipe.🤖 Generated with Claude Code