mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 15:07:59 +00:00
[ci] use cargo nextest instead cargo test in test-linux-stable (#11576)
* [DO NOT MERGE] Experimenting with nextest * enable jobs * enable stages * add comment * create test-frame-support job
This commit is contained in:
committed by
GitHub
parent
3935f6a987
commit
98f6d8e96c
@@ -214,12 +214,58 @@ test-linux-stable:
|
||||
RUN_UI_TESTS: 1
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
# TODO: add to paritytech/ci-linux image
|
||||
- time cargo install cargo-nextest
|
||||
# this job runs all tests in former runtime-benchmarks, frame-staking and wasmtime tests
|
||||
- time cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path ./bin/node/cli/Cargo.toml
|
||||
# node-cli is excluded until https://github.com/paritytech/substrate/issues/11321 fixed
|
||||
- time cargo nextest run --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path ./bin/node/cli/Cargo.toml --exclude node-cli
|
||||
- rusty-cachier cache upload
|
||||
|
||||
test-frame-support:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-refs
|
||||
variables:
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
# but still want to have debug assertions.
|
||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
RUST_BACKTRACE: 1
|
||||
WASM_BUILD_NO_COLOR: 1
|
||||
WASM_BUILD_RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
# Ensure we run the UI tests.
|
||||
RUN_UI_TESTS: 1
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
- time cargo test -p frame-support-test --features=conditional-storage,no-metadata-docs --manifest-path ./frame/support/test/Cargo.toml --test pallet # does not reuse cache 1 min 44 sec
|
||||
- SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout
|
||||
- rusty-cachier cache upload
|
||||
|
||||
# This job runs tests that don't work with cargo-nextest in test-linux-stable
|
||||
test-linux-stable-extra:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .test-refs
|
||||
variables:
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
# but still want to have debug assertions.
|
||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
RUST_BACKTRACE: 1
|
||||
WASM_BUILD_NO_COLOR: 1
|
||||
WASM_BUILD_RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
# Ensure we run the UI tests.
|
||||
RUN_UI_TESTS: 1
|
||||
script:
|
||||
- rusty-cachier snapshot create
|
||||
# Run node-cli tests
|
||||
# TODO: add to test-linux-stable-nextest after fix https://github.com/paritytech/substrate/issues/11321
|
||||
- time cargo test node-cli --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path ./bin/node/cli/Cargo.toml
|
||||
# Run doctests
|
||||
# TODO: add to test-linux-stable-nextest after fix https://github.com/nextest-rs/nextest/issues/16
|
||||
- time cargo test --doc --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path ./bin/node/cli/Cargo.toml
|
||||
- rusty-cachier cache upload
|
||||
|
||||
test-frame-examples-compile-to-wasm:
|
||||
# into one job
|
||||
stage: test
|
||||
|
||||
Reference in New Issue
Block a user