From b6462e218e1afd090fa2b14ce782bd1e28079588 Mon Sep 17 00:00:00 2001 From: Alexander Samusev <41779041+alvicsam@users.noreply.github.com> Date: Tue, 20 Dec 2022 17:08:19 +0100 Subject: [PATCH] [ci] New try-runtime command (#6445) * [ci] New try-runtime command * restart pipeline * build features * fix --features flag * rm --execution flag * remove --no-spec-check-panic flag * change target dir * debug ccargo target dir * return target * try different location for runtime wasm * build only the runtime crate * check all generated .wasm files * adjust paths again * remove debug command Co-authored-by: joao-paulo-parity --- scripts/ci/gitlab/pipeline/check.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/ci/gitlab/pipeline/check.yml b/scripts/ci/gitlab/pipeline/check.yml index f443e76d6779..44185d6f4ca7 100644 --- a/scripts/ci/gitlab/pipeline/check.yml +++ b/scripts/ci/gitlab/pipeline/check.yml @@ -68,7 +68,12 @@ check-try-runtime: echo "Found label runtimemigration. Running tests" export RUST_LOG=remote-ext=debug,runtime=debug echo "---------- Running try-runtime for ${NETWORK} ----------" - time cargo run --release --features=try-runtime try-runtime --chain=${NETWORK}-dev --execution=Wasm --no-spec-check-panic on-runtime-upgrade live --uri wss://${NETWORK}-try-runtime-node.parity-chains.parity.io:443 + time cargo build --release -p "$NETWORK"-runtime + time cargo run --release --features try-runtime try-runtime \ + --runtime ./target/release/wbuild/"$NETWORK"-runtime/target/wasm32-unknown-unknown/release/"$NETWORK"_runtime.wasm \ + -lruntime=debug \ + --chain=${NETWORK}-dev \ + on-runtime-upgrade live --uri wss://${NETWORK}-try-runtime-node.parity-chains.parity.io:443 else echo "runtimemigration label not found. Skipping" fi