mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
[ci] Move additional tests back to test-linux-stable (#1466)
* [ci] Move additional tests back to test-linux-stable * run slow tests with all tests * check if test upgrade_version_checks_should_work works * rm comment
This commit is contained in:
committed by
GitHub
parent
056c4221af
commit
a414ea7515
+24
-38
@@ -23,13 +23,8 @@ test-linux-stable:
|
||||
- echo "Node index - ${CI_NODE_INDEX}. Total amount - ${CI_NODE_TOTAL}"
|
||||
# add experimental to features after https://github.com/paritytech/substrate/pull/14502 is merged
|
||||
# "upgrade_version_checks_should_work" is currently failing
|
||||
# "receive_rate_limit_is_enforced"and "benchmark_block_works" can be found in test-linux-stable-additional-tests
|
||||
# they fail if run with other tests
|
||||
# "rx::tests::sent_views_include_finalized_number_update", "follow_chain_works", "create_snapshot_works" and "block_execution_works"
|
||||
# can be found in test-linux-stable-slow
|
||||
- |
|
||||
time cargo nextest run \
|
||||
-E 'all() & !test(upgrade_version_checks_should_work) & !test(receive_rate_limit_is_enforced) & !test(benchmark_block_works) & !test(rx::tests::sent_views_include_finalized_number_update) & !test(follow_chain_works) & !test(create_snapshot_works) & !test(block_execution_works)' \
|
||||
--workspace \
|
||||
--locked \
|
||||
--release \
|
||||
@@ -59,6 +54,22 @@ test-linux-oldkernel-stable:
|
||||
tags:
|
||||
- oldkernel-vm
|
||||
|
||||
# https://github.com/paritytech/ci_cd/issues/864
|
||||
test-linux-stable-runtime-benchmarks:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
RUST_TOOLCHAIN: stable
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
# but still want to have debug assertions.
|
||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
script:
|
||||
- time cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet
|
||||
|
||||
# can be used to run all tests
|
||||
# test-linux-stable-all:
|
||||
# stage: test
|
||||
@@ -85,7 +96,7 @@ test-linux-oldkernel-stable:
|
||||
# --partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
|
||||
# # todo: add flacky-test collector
|
||||
|
||||
# for some reasons these tests fail if run with all tests
|
||||
# TODO: remove me
|
||||
test-linux-stable-additional-tests:
|
||||
stage: test
|
||||
extends:
|
||||
@@ -99,31 +110,11 @@ test-linux-stable-additional-tests:
|
||||
# but still want to have debug assertions.
|
||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
script:
|
||||
- |
|
||||
time cargo nextest run \
|
||||
-E 'test(receive_rate_limit_is_enforced) + test(benchmark_block_works)' \
|
||||
--workspace \
|
||||
--locked \
|
||||
--release \
|
||||
--features runtime-benchmarks,try-runtime
|
||||
# tests were moved to test-linux-stable
|
||||
# the jobs should be removed
|
||||
- exit 0
|
||||
|
||||
# https://github.com/paritytech/ci_cd/issues/864
|
||||
test-linux-stable-runtime-benchmarks:
|
||||
stage: test
|
||||
extends:
|
||||
- .docker-env
|
||||
- .common-refs
|
||||
- .run-immediately
|
||||
- .pipeline-stopper-artifacts
|
||||
variables:
|
||||
RUST_TOOLCHAIN: stable
|
||||
# Enable debug assertions since we are running optimized builds for testing
|
||||
# but still want to have debug assertions.
|
||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
script:
|
||||
- time cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet
|
||||
|
||||
# these ones can be really slow so it's better to run them separately
|
||||
# TODO: remove me
|
||||
test-linux-stable-slow:
|
||||
stage: test
|
||||
# remove after cache is setup
|
||||
@@ -139,14 +130,9 @@ test-linux-stable-slow:
|
||||
# but still want to have debug assertions.
|
||||
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
|
||||
script:
|
||||
- |
|
||||
time cargo nextest run \
|
||||
-E 'test(rx::tests::sent_views_include_finalized_number_update) + test(follow_chain_works) + test(create_snapshot_works) + test(block_execution_works)' \
|
||||
--workspace \
|
||||
--locked \
|
||||
--release \
|
||||
--features runtime-benchmarks,try-runtime
|
||||
allow_failure: true
|
||||
# tests were moved to test-linux-stable
|
||||
# the jobs should be removed
|
||||
- exit 0
|
||||
|
||||
# takes about 1,5h without cache
|
||||
# can be used to check that nextest works correctly
|
||||
|
||||
Reference in New Issue
Block a user