-
Notifications
You must be signed in to change notification settings - Fork 43
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
Replace ic-cdk-optimizer with ic-wasm-shrink #2868
Conversation
Just in case useful, in addition to It's something I cloned from II. PRs dfinity/internet-identity#1370 (ic-wasm) and https://github.com/dfinity/internet-identity/pull/1373/files (metadata) |
@peterpeterparker Thanks for the watchful eye. We actually already have that, and the git commit, in the metadata-add command. https://github.com/dfinity/nns-dapp/blob/main/scripts/dfx-wasm-metadata-add |
Note: I would really also like to check the cycle count but there isn't a good way of doing this fast. I have started making a toy state but creating a realistic state and counting cycles is going to be quite a bit of work. It is probably better to step back for a moment because something that takes a lot of work needs to pay for itself over many PRs. Maybe it makes sense to get in touch with people who have replicated mainnet state before, for example. I have created an issue to that effect here: https://dfinity.atlassian.net/browse/GIX-1729 |
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, thanks
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, one question
@@ -7,7 +7,8 @@ RUN apt -yq update && \ | |||
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* | |||
|
|||
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/181b5293e73cfe16f7a79c5b3a4339bd522d31f3/install-from-binstall-release.sh | bash && cargo binstall -V | |||
RUN cargo binstall --no-confirm --version 0.3.2 ic-cdk-optimizer | |||
# Note: The version should match dfx.json, however it is expected that the old e2e tests, including this file, will be deleted soon so there is no point in adding the code to get the version. | |||
RUN cargo binstall --no-confirm "[email protected]" |
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.
this is an outdated version
Motivation
ic-cdk-optimizer
has been deprecated for a long time. However, as the replacement did not support our use cases we could not migrate to the proposed replacement tools. Now two things encourage the migration:ic-wasm shrink
ic-cdk-optimizer
does not support the corresponding opcodes.Changes
ic-cdk-optimizer
withic-wasm shrink
Tests
Todos