subtensor icon indicating copy to clipboard operation
subtensor copied to clipboard

Speed up try-runtime by using daily snapshot

Open lorismoulin opened this issue 1 year ago • 0 comments

try-runtime is the job that takes the most time and most of it is spent fetching the actual state of the chain, to make it faster we could have daily snapshot of the chain stored somewhere and take the latest daily snapshot to execute it.

As an example, on a PR, it take more than 3 hours to run 3 try-runtime on each chain (testnet/devnet/mainnet) but in reality, the time is spent fetching the chain data instead of the actual execution of the tests.

Here is an example of output that may need some investigation to speed up the CI:

[2025-05-07T15:36:12Z INFO  try-runtime::cli] 🚀 Speed up your workflow by using snapshots instead of live state. See `try-runtime create-snapshot --help`.

lorismoulin avatar May 07 '25 16:05 lorismoulin