-
Notifications
You must be signed in to change notification settings - Fork 132
check-migrations: Cache & Download snapshot only once per day #824
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
base: main
Are you sure you want to change the base?
Conversation
Before we always redownloaded the snapshot every time running the job. Now the snapshots are generated 1am every day and then used from there.
cargo install -q --git https://github.com/paritytech/try-runtime-cli --tag v0.8.0 --locked && try-runtime --version | ||
|
||
cargo build --profile production -p ${{ matrix.runtime.package }} --features try-runtime -q --locked | ||
try-runtime --version |
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.
Isn't try-runtime
installed only for generate-snapshots
?
Don't we need to pass it also via "Download Snapshot" or something?
- name: Generate snapshot for ${{ matrix.runtime.name }} | ||
run: | | ||
echo "Generating snapshot for ${{ matrix.runtime.name }}..." | ||
cargo install -q --git https://github.com/paritytech/try-runtime-cli --tag v0.8.0 --locked |
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.
There is a binary, I assume building it is a bit slow: https://github.com/paritytech/polkadot-sdk/blob/1756db06b1d7794a23b7d069d76716a64d0524cc/.github/workflows/check-runtime-migration.yml#L86-L89
Co-authored-by: Branislav Kontur <[email protected]>
Before we always redownloaded the snapshot every time running the job. Now the snapshots are generated 1am every day and then used from there.