Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Introduce linux-docker-benches (#10085)
Browse files Browse the repository at this point in the history
* Introduce `linux-docker-benches`

* Add additional info to `node-bench-regression-guard` job's run
  • Loading branch information
rcny authored Oct 22, 2021
1 parent 6725823 commit 969a70d
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,30 +363,34 @@ cargo-check-benches:
- *rust-info-script
script:
- *cargo-check-benches-script
tags:
- linux-docker-benches

# TODO: re-enable after dedicated bench hosts provisioning
# node-bench-regression-guard:
# # it's not belong to `build` semantically, but dag jobs can't depend on each other
# # within the single stage - https://gitlab.com/gitlab-org/gitlab/-/issues/30632
# # more: https://github.com/paritytech/substrate/pull/8519#discussion_r608012402
# stage: build
# <<: *docker-env
# <<: *test-refs-no-trigger-prs-only
# needs:
# # this is a DAG
# - job: cargo-check-benches
# artifacts: true
# # this does not like a DAG, just polls the artifact
# - project: $CI_PROJECT_PATH
# job: cargo-check-benches
# ref: master
# artifacts: true
# variables:
# CI_IMAGE: "paritytech/node-bench-regression-guard:latest"
# before_script: [""]
# script:
# - 'node-bench-regression-guard --reference artifacts/benches/master-*
# --compare-with artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA'
node-bench-regression-guard:
# it's not belong to `build` semantically, but dag jobs can't depend on each other
# within the single stage - https://gitlab.com/gitlab-org/gitlab/-/issues/30632
# more: https://github.com/paritytech/substrate/pull/8519#discussion_r608012402
stage: build
<<: *docker-env
<<: *test-refs-no-trigger-prs-only
needs:
# this is a DAG
- job: cargo-check-benches
artifacts: true
# this does not like a DAG, just polls the artifact
- project: $CI_PROJECT_PATH
job: cargo-check-benches
ref: master
artifacts: true
variables:
CI_IMAGE: "paritytech/node-bench-regression-guard:latest"
before_script: [""]
script:
- echo "------- IMPORTANT -------"
- echo "node-bench-regression-guard depends on the results of a cargo-check-benches job"
- echo "In case of this job failure, check your pipeline's cargo-check-benches"
- 'node-bench-regression-guard --reference artifacts/benches/master-*
--compare-with artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA'

cargo-check-subkey:
stage: test
Expand Down

0 comments on commit 969a70d

Please sign in to comment.