frequency icon indicating copy to clipboard operation
frequency copied to clipboard

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

Open mattheworris opened this issue 1 year ago • 0 comments

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

mattheworris avatar Dec 23 '23 15:12 mattheworris