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

Implement Automated Task using try-runtime to create snapshots of mainnet and testnet. #1828

Open
mattheworris opened this issue Dec 23, 2023 · 0 comments

Comments

@mattheworris
Copy link
Collaborator

mattheworris commented Dec 23, 2023

Note this is using https://github.com/paritytech/try-runtime-cli/

As a developer, I want to be able to test storage migrations, etc. using try-runtime. However, when the target network is mainnet, this process takes many hours, if it succeeds at all. Creating a snapshot takes a long time (> 12 hours), but it does succeed.

The try-runtime crate should be installed and updated.
Here's the command to create the snapshot.

❯ try-runtime create-snapshot --uri wss://1.rpc.frequency.xyz:443  mainnet-all-pallets.state

Using a snapshot only takes a few seconds to execute:

❯ try-runtime --runtime ./target/debug/wbuild/frequency-runtime/frequency_runtime.wasm on-runtime-upgrade snap --path mainnet-all-pallets.state

Might be related: #1824

@wilwade wilwade changed the title Implement Automated Task using try-runtime to create snapshots of main net and test net. Implement Automated Task using try-runtime to create snapshots of mainnet and testnet. Jan 3, 2024
@p5150j p5150j added discussion Topic for Discussion at a Community Call tech-debt labels Jan 24, 2024
@wilwade wilwade removed the discussion Topic for Discussion at a Community Call label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants