Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[ci] Adjust check-runtime-migration job (#6107)
Browse files Browse the repository at this point in the history
* [WIP][ci] Add node to check-runtime-migration job

* add image

* remove sscache from before_script

* add nodes

* restart pipeline

* restart pipeline2

* disable other jobs

* debug

* remove debug

* add ports

* restart pipeline

* restart pipeline

* restart pipeline

* try kusama first

* run polkadot 1st

* disable some jobs

* try command from command bot

* cargo run

* test passing variables

* run without condition

* adjust kusama and westend

* fix

* return jobs

* fix small nits

* split check-runtime-migration

Co-authored-by: parity-processbot <>
  • Loading branch information
alvicsam authored Dec 8, 2022
1 parent 6e82eb5 commit f3b7642
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ default:
before_script:
- rustup show
- cargo --version
- sccache -s

.test-refs:
rules:
Expand Down
37 changes: 34 additions & 3 deletions scripts/ci/gitlab/pipeline/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ check-try-runtime:
- cargo check --features try-runtime --all

# More info can be found here: https://github.com/paritytech/polkadot/pull/5865
# Works only in PRs
check-runtime-migration:
# Works only in PRs with E1 label
.check-runtime-migration:
stage: check
extends:
- .docker-env
Expand All @@ -67,10 +67,41 @@ check-runtime-migration:
if [[ $has_runtimemigration_label != 0 ]]; then
echo "Found label runtimemigration. Running tests"
export RUST_LOG=remote-ext=debug,runtime=debug
time cargo test --release -p westend-runtime -p polkadot-runtime -p kusama-runtime --features try-runtime
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
else
echo "runtimemigration label not found. Skipping"
fi
check-runtime-migration-polkadot:
stage: check
extends:
- .docker-env
- .test-pr-refs
- .compiler-info
- .check-runtime-migration
variables:
NETWORK: "polkadot"

check-runtime-migration-kusama:
stage: check
extends:
- .docker-env
- .test-pr-refs
- .compiler-info
- .check-runtime-migration
variables:
NETWORK: "kusama"

check-runtime-migration-westend:
stage: check
extends:
- .docker-env
- .test-pr-refs
- .compiler-info
- .check-runtime-migration
variables:
NETWORK: "westend"
allow_failure: true

# is broken, need to fix
Expand Down

0 comments on commit f3b7642

Please sign in to comment.