mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
[ci] Add missing components to CI (#1201)
* [ci] Add missing components to CI * add timestamp * add pipeline-stopper-artifacts to jobs * break clippy * mv definition * fix clippy * comment timestamp, rm verbose * commen cancel * rm --verbose from build jobs * disable rusty-cachier before_script * enable timestamp back * rollback .gitignore * rollback .gitignore * rollback .gitignore
This commit is contained in:
committed by
GitHub
parent
c168a77e26
commit
6e394f84f8
@@ -46,8 +46,8 @@ build-test-collators:
|
||||
- .run-immediately
|
||||
- .collect-artifacts
|
||||
script:
|
||||
- time cargo build --locked --profile testnet --verbose -p test-parachain-adder-collator
|
||||
- time cargo build --locked --profile testnet --verbose -p test-parachain-undying-collator
|
||||
- time cargo build --locked --profile testnet -p test-parachain-adder-collator
|
||||
- time cargo build --locked --profile testnet -p test-parachain-undying-collator
|
||||
# pack artifacts
|
||||
- mkdir -p ./artifacts
|
||||
- mv ./target/testnet/adder-collator ./artifacts/.
|
||||
@@ -66,7 +66,7 @@ build-malus:
|
||||
- .run-immediately
|
||||
- .collect-artifacts
|
||||
script:
|
||||
- time cargo build --locked --profile testnet --verbose -p polkadot-test-malus --bin malus --bin polkadot-prepare-worker --bin polkadot-execute-worker
|
||||
- time cargo build --locked --profile testnet -p polkadot-test-malus --bin malus --bin polkadot-prepare-worker --bin polkadot-execute-worker
|
||||
# pack artifacts
|
||||
- mkdir -p ./artifacts
|
||||
- mv ./target/testnet/malus ./artifacts/.
|
||||
@@ -111,7 +111,7 @@ build-rustdoc:
|
||||
script:
|
||||
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"` and `--all-features`
|
||||
# FIXME: return to stable when https://github.com/rust-lang/rust/issues/96937 gets into stable
|
||||
- time cargo doc --workspace --verbose --no-deps
|
||||
- time cargo doc --workspace --no-deps
|
||||
- rm -f ./target/doc/.lock
|
||||
- mv ./target/doc ./crate-docs
|
||||
# FIXME: remove me after CI image gets nonroot
|
||||
@@ -280,7 +280,7 @@ build-linux-substrate:
|
||||
# see https://github.com/paritytech/ci_cd/issues/682#issuecomment-1340953589
|
||||
- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
|
||||
script:
|
||||
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release --verbose
|
||||
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release
|
||||
- mv $CARGO_TARGET_DIR/release/substrate-node ./artifacts/substrate/substrate
|
||||
- echo -n "Substrate version = "
|
||||
- if [ "${CI_COMMIT_TAG}" ]; then
|
||||
@@ -308,7 +308,7 @@ build-linux-substrate:
|
||||
- mkdir -p ./artifacts/subkey
|
||||
script:
|
||||
- cd ./substrate/bin/utils/subkey
|
||||
- SKIP_WASM_BUILD=1 time cargo build --locked --release --verbose
|
||||
- SKIP_WASM_BUILD=1 time cargo build --locked --release
|
||||
# - cd -
|
||||
# - mv $CARGO_TARGET_DIR/release/subkey ./artifacts/subkey/.
|
||||
# - echo -n "Subkey version = "
|
||||
@@ -331,7 +331,7 @@ build-subkey-linux:
|
||||
# - mkdir -p ./artifacts/subkey
|
||||
# script:
|
||||
# - cd ./bin/utils/subkey
|
||||
# - SKIP_WASM_BUILD=1 time cargo build --locked --release --verbose
|
||||
# - SKIP_WASM_BUILD=1 time cargo build --locked --release
|
||||
# - cd -
|
||||
# - mv ./target/release/subkey ./artifacts/subkey/.
|
||||
# - echo -n "Subkey version = "
|
||||
|
||||
@@ -3,10 +3,9 @@ cargo-clippy:
|
||||
extends:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .pipeline-stopper-artifacts
|
||||
script:
|
||||
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo clippy --all-targets --locked --workspace
|
||||
# fixme!
|
||||
allow_failure: true
|
||||
|
||||
check-try-runtime:
|
||||
stage: check
|
||||
@@ -43,7 +42,6 @@ cargo-deny-licenses:
|
||||
script:
|
||||
- $CARGO_DENY_CMD --hide-inclusion-graph
|
||||
after_script:
|
||||
# - !reference [.rusty-cachier, after_script]
|
||||
- echo "___The complete log is in the artifacts___"
|
||||
- $CARGO_DENY_CMD 2> deny.log
|
||||
- if [ $CI_JOB_STATUS != 'success' ]; then
|
||||
|
||||
@@ -11,6 +11,7 @@ test-linux-stable:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
RUST_TOOLCHAIN: stable
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
@@ -32,7 +33,6 @@ test-linux-stable:
|
||||
--workspace \
|
||||
--locked \
|
||||
--release \
|
||||
--verbose \
|
||||
--no-fail-fast \
|
||||
--features runtime-benchmarks,try-runtime,experimental \
|
||||
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
|
||||
@@ -66,7 +66,6 @@ test-linux-oldkernel-stable:
|
||||
# --workspace \
|
||||
# --locked \
|
||||
# --release \
|
||||
# --verbose \
|
||||
# --no-fail-fast \
|
||||
# --features runtime-benchmarks,try-runtime \
|
||||
# --partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
|
||||
@@ -79,6 +78,7 @@ test-linux-stable-additional-tests:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
RUST_TOOLCHAIN: stable
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
@@ -91,7 +91,6 @@ test-linux-stable-additional-tests:
|
||||
--workspace \
|
||||
--locked \
|
||||
--release \
|
||||
--verbose \
|
||||
--features runtime-benchmarks,try-runtime
|
||||
allow_failure: true
|
||||
|
||||
@@ -104,6 +103,7 @@ test-linux-stable-slow:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
RUST_TOOLCHAIN: stable
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
@@ -116,7 +116,6 @@ test-linux-stable-slow:
|
||||
--workspace \
|
||||
--locked \
|
||||
--release \
|
||||
--verbose \
|
||||
--features runtime-benchmarks,try-runtime
|
||||
allow_failure: true
|
||||
|
||||
@@ -166,7 +165,7 @@ test-rustdoc:
|
||||
SKIP_WASM_BUILD: 1
|
||||
RUSTDOCFLAGS: "-Dwarnings"
|
||||
script:
|
||||
- time cargo doc --workspace --all-features --verbose --no-deps
|
||||
- time cargo doc --workspace --all-features --no-deps
|
||||
allow_failure: true
|
||||
|
||||
cargo-check-all-benches:
|
||||
@@ -216,6 +215,7 @@ cargo-check-benches:
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .collect-artifacts
|
||||
- .pipeline-stopper-artifacts
|
||||
before_script:
|
||||
# TODO: DON'T FORGET TO CHANGE FOR PROD VALUES!!!
|
||||
# merges in the master branch on PRs. skip if base is not master
|
||||
@@ -348,6 +348,7 @@ test-linux-stable-int:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
# but still want to have debug assertions.
|
||||
@@ -370,6 +371,7 @@ check-tracing:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
script:
|
||||
# with-tracing must be explicitly activated, we run a test to ensure this works as expected in both cases
|
||||
- time cargo test --locked --manifest-path ./substrate/primitives/tracing/Cargo.toml --no-default-features
|
||||
@@ -390,9 +392,9 @@ test-full-crypto-feature:
|
||||
RUST_BACKTRACE: 1
|
||||
script:
|
||||
- cd substrate/primitives/core/
|
||||
- time cargo build --locked --verbose --no-default-features --features full_crypto
|
||||
- time cargo build --locked --no-default-features --features full_crypto
|
||||
- cd ../application-crypto
|
||||
- time cargo build --locked --verbose --no-default-features --features full_crypto
|
||||
- time cargo build --locked --no-default-features --features full_crypto
|
||||
|
||||
cargo-check-each-crate:
|
||||
stage: test
|
||||
|
||||
Reference in New Issue
Block a user