-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Use lower case for Wasm persistence modes #4854
Conversation
Might have been easier to just change the spec to match the implementation ;-> |
Yes, I was also tempted. But better going this more painful path to keep IC specification more consistent (reducing "technical debt"). |
…/dfinity/motoko into luc/lower-case-persistence-modes
LGTM. |
Change variant names for the Wasm memory persistence to lower case in line with the IC specification, i.e. using `keep` and `replace` instead of `Keep` and `Replace`. The Wasm memory persistence option is used for Motoko's enhanced orthogonal persistence, which is currently still in beta testing. The following components need to be updated once these changes are released on IC mainnet and `dfx`: * The Motoko compiler (dfinity/motoko#4854) * The Motoko playground (dfinity/motoko-playground#275) No change is needed for `dfx`. For installed Motoko programs using enhanced orthogonal persistence, the change only affects the programmatic upgrades of Motoko actor class instances. Existing such programs would need to be recompiled with a new Motoko compiler and upgraded. The IC detects mismatching variant names of Wasm memory persistence by raising an error while still preserving persistent memory.
Change variant names for the Wasm memory persistence to lower case in line with the IC specification, i.e. using `keep` and `replace` instead of `Keep` and `Replace`. The Wasm memory persistence option is used for Motoko's enhanced orthogonal persistence, which is currently still in beta testing. The following components need to be updated once these changes are released on IC mainnet and `dfx`: * The Motoko compiler (dfinity/motoko#4854) * The Motoko playground (dfinity/motoko-playground#275) No change is needed for `dfx`. For installed Motoko programs using enhanced orthogonal persistence, the change only affects the programmatic upgrades of Motoko actor class instances. Existing such programs would need to be recompiled with a new Motoko compiler and upgraded. The IC detects mismatching variant names of Wasm memory persistence by raising an error while still preserving persistent memory.
We can merge. It is supported in next IC release. |
Yep, but let's not forget that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Related to dfinity/ic#3479.
This changes the variant names for the Wasm memory persistence modes used for enhanced orthogonal persistence to lower case to align it with the IC specification, i.e. using
keep
andreplace
instead ofKeep
andReplace
.For installed Motoko programs using enhanced orthogonal persistence, the change only affects the programmatic upgrades of Motoko actor class instances. Existing such programs would need to be recompiled with a new Motoko compiler and upgraded. The IC detects mismatching variant names of Wasm memory persistence by raising an error while still preserving persistent memory.