mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 02:57:57 +00:00
Check all crates (#12709)
* check all crates individually It's relevant to check workspace crates individually because otherwise their compilation problems due to feature misconfigurations won't be caught, as exemplified by https://github.com/paritytech/substrate/issues/12705 * adapt to lack of multiple macos runners https://github.com/paritytech/substrate/pull/12709#discussion_r1022868752 * fix cancel-pipeline-cargo-check-each-crate-macos * fix cargo-check-each-crate-macos again * time command execution * fix YAML anchors * add explanation for rounding division * ensure the minimum of one crate per group * collect artifacts for pipeline stopper * revert hardcoded crates_per_group * re-add crates_per_group=1
This commit is contained in:
committed by
GitHub
parent
69c6441689
commit
eae3299ba5
@@ -133,24 +133,8 @@ node-bench-regression-guard:
|
||||
--compare-with artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA'
|
||||
after_script: [""]
|
||||
|
||||
cargo-check-subkey:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-refs
|
||||
- .pipeline-stopper-artifacts
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
- cd ./bin/utils/subkey
|
||||
- SKIP_WASM_BUILD=1 time cargo check --locked --release
|
||||
- rusty-cachier cache upload
|
||||
|
||||
cargo-check-try-runtime:
|
||||
stage: test
|
||||
# this is an artificial job dependency, for pipeline optimization using GitLab's DAGs
|
||||
needs:
|
||||
- job: cargo-check-subkey
|
||||
artifacts: false
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-refs
|
||||
@@ -393,6 +377,9 @@ test-full-crypto-feature:
|
||||
|
||||
test-wasmer-sandbox:
|
||||
stage: test
|
||||
needs:
|
||||
- job: cargo-check-wasmer-sandbox
|
||||
artifacts: false
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-refs-wasmer-sandbox
|
||||
@@ -409,18 +396,6 @@ test-wasmer-sandbox:
|
||||
- time cargo nextest run --locked --release --features runtime-benchmarks,wasmer-sandbox,disable-ui-tests --partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
|
||||
- if [ ${CI_NODE_INDEX} == 1 ]; then rusty-cachier cache upload; fi
|
||||
|
||||
cargo-check-macos:
|
||||
stage: test
|
||||
extends: .test-refs-no-trigger
|
||||
before_script:
|
||||
- !reference [.rust-info-script, script]
|
||||
variables:
|
||||
SKIP_WASM_BUILD: 1
|
||||
script:
|
||||
- time cargo check --locked --release
|
||||
tags:
|
||||
- osx
|
||||
|
||||
check-rustdoc:
|
||||
stage: test
|
||||
variables:
|
||||
@@ -435,3 +410,39 @@ check-rustdoc:
|
||||
- rusty-cachier snapshot create
|
||||
- time cargo +nightly doc --locked --workspace --all-features --verbose --no-deps
|
||||
- rusty-cachier cache upload
|
||||
|
||||
cargo-check-each-crate:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-refs
|
||||
- .collect-artifacts
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
# $CI_JOB_NAME is set manually so that rusty-cachier can share the cache for all
|
||||
# "cargo-check-each-crate I/N" jobs
|
||||
CI_JOB_NAME: cargo-check-each-crate
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
- time ./scripts/ci/gitlab/check-each-crate.sh "$CI_NODE_INDEX" "$CI_NODE_TOTAL"
|
||||
# need to update cache only from one job
|
||||
- if [ "$CI_NODE_INDEX" == 1 ]; then rusty-cachier cache upload; fi
|
||||
parallel: 2
|
||||
|
||||
cargo-check-each-crate-macos:
|
||||
stage: test
|
||||
extends:
|
||||
- .test-refs
|
||||
- .collect-artifacts
|
||||
- .pipeline-stopper-artifacts
|
||||
before_script:
|
||||
- !reference [.rust-info-script, script]
|
||||
- !reference [.pipeline-stopper-vars, script]
|
||||
variables:
|
||||
SKIP_WASM_BUILD: 1
|
||||
script:
|
||||
# TODO: enable rusty-cachier once it supports Mac
|
||||
# TODO: use parallel jobs, as per cargo-check-each-crate, once more Mac runners are available
|
||||
- time ./scripts/ci/gitlab/check-each-crate.sh 1 1
|
||||
tags:
|
||||
- osx
|
||||
|
||||
Reference in New Issue
Block a user