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

fix: compilation of dev runtime with try-runtime feature; update try-runtime-cli version #4500

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,33 @@ jobs:
- name: "Test: Try runtime migrations"
run: |
echo "---------- Downloading try-runtime CLI ----------"
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.5.4/try-runtime-x86_64-unknown-linux-musl -o try-runtime

curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.8.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime
chmod +x ./try-runtime

echo "---------- Building vara runtime ----------"

echo "---------- Creating Vara Mainnet db snapshot [vara_ci.snap] ----------"

time ./try-runtime \
create-snapshot \
--uri wss://rpc-private.vara-network.io \
vara_ci.snap


echo "---------- Building Vara Mainnet runtime ----------"

time cargo build -p vara-runtime -F std,try-runtime --locked ${{ matrix.profiles.flags }}
echo "---------- Executing on-runtime-upgrade for Vara ----------"
time ./try-runtime --runtime ./target/${{ matrix.profiles.name }}/wbuild/vara-runtime/vara_runtime.wasm on-runtime-upgrade --checks=all --no-weight-warnings --disable-spec-version-check live --uri ws://rpc-private.vara-network.io:9944
sleep 5
env:
RUST_LOG: info,pallet=debug


echo "---------- Executing on-runtime-upgrade for snapshot ----------"

time ./try-runtime \
--runtime ./target/${{ matrix.profiles.name }}/wbuild/vara-runtime/vara_runtime.wasm \
on-runtime-upgrade \
--blocktime 3000 \
--checks all \
--disable-spec-version-check \
snap -p vara_ci.snap

- name: "Build: Production binaries"
if: ${{ inputs.production && matrix.profiles.name == 'release' }}
Expand Down
4 changes: 1 addition & 3 deletions pallets/gear-eth-bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ runtime-benchmarks = [
]
try-runtime = [
# Gear deps.
"common/runtime-benchmarks",
"pallet-gear-builtin/runtime-benchmarks",
"pallet-staking/runtime-benchmarks",
"pallet-gear-builtin/try-runtime",

# Substrate deps.
"frame-support/try-runtime",
Expand Down