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

chore(sns): Migrate SNS Root's wasm_memory_limit #1521

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Sep 16, 2024

#1427 made this change for the root canisters of new SNSes. This PR ensures that all root canisters have the expected settings by migrating existing SNSes.

The change changes their settings to set wasm_memory_limit to 3GiB. This should be safe – no root canister uses anything close to 3GiB.

@github-actions github-actions bot added the chore label Sep 16, 2024
@anchpop anchpop force-pushed the @anchpop/migrate-root-canister-wasm_memory_limit branch from c466fa9 to ee74824 Compare September 17, 2024 19:25
@anchpop anchpop marked this pull request as ready for review September 17, 2024 19:26
@anchpop anchpop requested a review from a team as a code owner September 17, 2024 19:26
@anchpop anchpop added this pull request to the merge queue Sep 17, 2024
Merged via the queue into master with commit 4cede51 Sep 17, 2024
26 checks passed
@anchpop anchpop deleted the @anchpop/migrate-root-canister-wasm_memory_limit branch September 17, 2024 20:08
cgundy added a commit that referenced this pull request Sep 18, 2024
cgundy added a commit that referenced this pull request Sep 18, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 18, 2024
…sters (#1540)

All the non-governance and non-root SNS canisters should have their
`wasm_memory_limit` set to 3GiB via a root migration. (#1521 took care
of this for root via a governance migration.)

Once this PR is merged and released, all SNS canisters will have the
same `wasm_memory_limit` - 4GiB for SNS Governance, 3GiB for all other
canisters. I've already verified with the FI team that 3GiB is safe to
use with all 3 FI canisters.

Closes [NNS1-3301](https://dfinity.atlassian.net/browse/NNS1-3301)

[NNS1-3301]:
https://dfinity.atlassian.net/browse/NNS1-3301?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
github-merge-queue bot pushed a commit that referenced this pull request Sep 28, 2024
## Problem

In #1540 and #1521, we added code for performing a migration of
wasm_memory_limit for all SNS canisters other than SNS Governance. That
code is no longer necessary now that it has been released.

## Solution

Remove that code. A few changes to tests are still useful and have been
left in.
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
dfinity#1427 made this change for the root canisters of new SNSes. This PR
ensures that all root canisters have the expected settings by migrating
existing SNSes.

The change changes their settings to set wasm_memory_limit to 3GiB. This
should be safe – no root canister uses anything close to 3GiB.
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
…sters (dfinity#1540)

All the non-governance and non-root SNS canisters should have their
`wasm_memory_limit` set to 3GiB via a root migration. (dfinity#1521 took care
of this for root via a governance migration.)

Once this PR is merged and released, all SNS canisters will have the
same `wasm_memory_limit` - 4GiB for SNS Governance, 3GiB for all other
canisters. I've already verified with the FI team that 3GiB is safe to
use with all 3 FI canisters.

Closes [NNS1-3301](https://dfinity.atlassian.net/browse/NNS1-3301)

[NNS1-3301]:
https://dfinity.atlassian.net/browse/NNS1-3301?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
## Problem

In dfinity#1540 and dfinity#1521, we added code for performing a migration of
wasm_memory_limit for all SNS canisters other than SNS Governance. That
code is no longer necessary now that it has been released.

## Solution

Remove that code. A few changes to tests are still useful and have been
left in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants