Skip to content
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

feat: Support wasm_memory_persistence for canister upgrades #3890

Merged
merged 5 commits into from
Aug 26, 2024

Conversation

luc-blaeser
Copy link
Contributor

Description

Support Motoko enhanced orthogonal persistence (dfinity/motoko#4488) with the canister upgrade option wasm_memory_persistence:

  • For all Motoko canisters with the installed version using enhanced orthogonal persistence: Keep the main memory.
  • For all other canisters, non-Motoko or Motoko with classical persistence: Use the None as default mode.

The support of enhanced orthogonal persistence is identified by the presence of the Wasm metadata section "enhanced-orthogonal-persistence".
NB. Replace is not recommended to be used as wasm_memory_persistence as it skips the IC safety check on orthogonal persistence.

How Has This Been Tested?

e2e test wasm_memory_persistence
Manually with Motoko EOP.

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation. (none needed, except for Motoko)

@luc-blaeser luc-blaeser force-pushed the luc/wasm-memory-persistence branch from 03f79c7 to cf7f089 Compare August 26, 2024 12:35
@luc-blaeser luc-blaeser marked this pull request as ready for review August 26, 2024 14:03
@luc-blaeser luc-blaeser requested a review from a team as a code owner August 26, 2024 14:03
@adamspofford-dfinity adamspofford-dfinity merged commit 4f6670a into master Aug 26, 2024
297 checks passed
@adamspofford-dfinity adamspofford-dfinity deleted the luc/wasm-memory-persistence branch August 26, 2024 17:59
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