Skip to content

Commit 6b4b89e

Browse files
alvicsamggwpez
authored andcommitted
[ci] Remove runtime-benchmarks from tests (#1335)
* [ci] Remove runtime-benchmarks from tests * Update .gitlab/pipeline/test.yml Co-authored-by: Oliver Tale-Yazdi <[email protected]> * remove ing * move benchmark tests to additional tests * rm -q option * try release profile * use testnet profile * move to a separate job * rm dup --------- Co-authored-by: Oliver Tale-Yazdi <[email protected]>
1 parent c3b9df7 commit 6b4b89e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.gitlab/pipeline/test.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test-linux-stable:
3434
--locked \
3535
--release \
3636
--no-fail-fast \
37-
--features runtime-benchmarks,try-runtime,experimental \
37+
--features try-runtime,experimental \
3838
--partition count:${CI_NODE_INDEX}/${CI_NODE_TOTAL}
3939
# run runtime-api tests with `enable-staging-api` feature on the 1st node
4040
- if [ ${CI_NODE_INDEX} == 1 ]; then time cargo nextest run -p sp-api-test --features enable-staging-api; fi
@@ -92,7 +92,22 @@ test-linux-stable-additional-tests:
9292
--locked \
9393
--release \
9494
--features runtime-benchmarks,try-runtime
95-
allow_failure: true
95+
96+
# https://github.com/paritytech/ci_cd/issues/864
97+
test-linux-stable-runtime-benchmarks:
98+
stage: test
99+
extends:
100+
- .docker-env
101+
- .common-refs
102+
- .run-immediately
103+
- .pipeline-stopper-artifacts
104+
variables:
105+
RUST_TOOLCHAIN: stable
106+
# Enable debug assertions since we are running optimized builds for testing
107+
# but still want to have debug assertions.
108+
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
109+
script:
110+
- time cargo nextest run --features runtime-benchmarks benchmark --locked --cargo-profile testnet
96111

97112
# these ones can be really slow so it's better to run them separately
98113
test-linux-stable-slow:

0 commit comments

Comments
 (0)