mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 06:47:57 +00:00
Init System Parachain storage versions and add migration check jobs to CI (#1344)
Makes SPs first class citizens along with the relay chains in the context of our CI runtime upgrade checks. ## Code changes - Sets missing current storage version in `uniques` pallet - Adds multisig V1 migration to run where it was missing - Removes executed migration whos pre/post hooks were failing from collectives runtime - Initializes storage versions for SP pallets added after genesis - Originally I was going to wait for https://github.com/paritytech/polkadot-sdk/pull/1297 to be merged so this wouldn't need to be done manually, but it doesn't seem like it'll be merged any time soon so I've decided to set them manually to unblock this ## CI changes - Removed dependency of `westend` runtime upgrades being complete prior to other ones running. I assume it is supposed to cache the `try-runtime` build for a performance benefit, but it seems it wasn't working. Maybe someone from the CI team can look into this or explain why it needs to be there? - Adds check-runtime-migration jobs for Parity asset-hubs, bridge-hubs and contract chains - Updated VARIABLES to accomodate the `kusama-runtime` package being renamed to `staging-kusama-runtime` in https://github.com/paritytech/polkadot-sdk/pull/1241 - Added `EXTRA_ARGS` variable to `check-runtime-migration`, and set `--no-weight-warnings` to the relay chain runtime upgrade checks (relay chains don't have weight restrictions).
This commit is contained in:
@@ -113,13 +113,16 @@ test-rust-feature-propagation:
|
||||
script:
|
||||
- |
|
||||
export RUST_LOG=remote-ext=debug,runtime=debug
|
||||
echo "---------- Running try-runtime for ${NETWORK} ----------"
|
||||
time cargo install --locked --git https://github.com/paritytech/try-runtime-cli --rev a93c9b5abe5d31a4cf1936204f7e5c489184b521
|
||||
time cargo build --release --locked -p "$NETWORK"-runtime --features try-runtime
|
||||
echo "---------- Installing try-runtime-cli ----------"
|
||||
time cargo install --locked --git https://github.com/paritytech/try-runtime-cli --tag v0.3.0
|
||||
echo "---------- Building ${PACKAGE} runtime ----------"
|
||||
time cargo build --release --locked -p "$PACKAGE" --features try-runtime
|
||||
echo "---------- Executing `on-runtime-upgrade` for ${NETWORK} ----------"
|
||||
time try-runtime \
|
||||
--runtime ./target/release/wbuild/"$NETWORK"-runtime/target/wasm32-unknown-unknown/release/"$NETWORK"_runtime.wasm \
|
||||
on-runtime-upgrade --checks=pre-and-post live --uri wss://${NETWORK}-try-runtime-node.parity-chains.parity.io:443
|
||||
--runtime ./target/release/wbuild/"$PACKAGE"/"$WASM" \
|
||||
on-runtime-upgrade --checks=pre-and-post ${EXTRA_ARGS} live --uri ${URI}
|
||||
|
||||
# Check runtime migrations for Parity managed relay chains
|
||||
check-runtime-migration-westend:
|
||||
stage: check
|
||||
extends:
|
||||
@@ -128,19 +131,61 @@ check-runtime-migration-westend:
|
||||
- .check-runtime-migration
|
||||
variables:
|
||||
NETWORK: "westend"
|
||||
PACKAGE: "westend-runtime"
|
||||
WASM: "westend_runtime.compact.compressed.wasm"
|
||||
URI: "wss://westend-try-runtime-node.parity-chains.parity.io:443"
|
||||
EXTRA_ARGS: "--no-weight-warnings"
|
||||
|
||||
check-runtime-migration-rococo:
|
||||
stage: check
|
||||
# DAG
|
||||
needs:
|
||||
- job: check-runtime-migration-westend
|
||||
artifacts: false
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-pr-refs
|
||||
- .check-runtime-migration
|
||||
variables:
|
||||
NETWORK: "rococo"
|
||||
PACKAGE: "rococo-runtime"
|
||||
WASM: "rococo_runtime.compact.compressed.wasm"
|
||||
URI: "wss://rococo-try-runtime-node.parity-chains.parity.io:443"
|
||||
EXTRA_ARGS: "--no-weight-warnings"
|
||||
|
||||
# Check runtime migrations for Parity managed asset hub chains
|
||||
check-runtime-migration-asset-hub-westend:
|
||||
stage: check
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-pr-refs
|
||||
- .check-runtime-migration
|
||||
variables:
|
||||
NETWORK: "asset-hub-westend"
|
||||
PACKAGE: "asset-hub-westend-runtime"
|
||||
WASM: "asset_hub_westend_runtime.compact.compressed.wasm"
|
||||
URI: "wss://westend-asset-hub-rpc.polkadot.io:443"
|
||||
|
||||
check-runtime-migration-bridge-hub-rococo:
|
||||
stage: check
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-pr-refs
|
||||
- .check-runtime-migration
|
||||
variables:
|
||||
NETWORK: "bridge-hub-rococo"
|
||||
PACKAGE: "bridge-hub-rococo-runtime"
|
||||
WASM: "bridge_hub_rococo_runtime.compact.compressed.wasm"
|
||||
URI: "wss://rococo-bridge-hub-rpc.polkadot.io:443"
|
||||
|
||||
# Check runtime migrations for Parity managed contract chains
|
||||
check-runtime-migration-contracts-rococo:
|
||||
stage: check
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-pr-refs
|
||||
- .check-runtime-migration
|
||||
variables:
|
||||
NETWORK: "contracts-rococo"
|
||||
PACKAGE: "contracts-rococo-runtime"
|
||||
WASM: "contracts_rococo_runtime.compact.compressed.wasm"
|
||||
URI: "wss://rococo-contracts-rpc.polkadot.io:443"
|
||||
|
||||
find-fail-ci-phrase:
|
||||
stage: check
|
||||
|
||||
Reference in New Issue
Block a user