[ci] Adjust job order in pipeline test stage with Gitlab DAG (#11442)

* [Do Not Merge] Test gitlab DAG in pipeline

* add jobs for pipeline cancel

* add check-tracing to cancel-pipeline
This commit is contained in:
Alexander Samusev
2022-05-18 13:14:25 +02:00
committed by GitHub
parent 3502bc5c1d
commit ce77cb1735
2 changed files with 54 additions and 0 deletions
+26
View File
@@ -201,3 +201,29 @@ deploy-prometheus-alerting-rules:
changes:
- .gitlab-ci.yml
- ./scripts/ci/monitoring/**/*
#### stage: .post
# This job cancels the whole pipeline if any of provided jobs fail.
# In a DAG, every jobs chain is executed independently of others. The `fail_fast` principle suggests
# to fail the pipeline as soon as possible to shorten the feedback loop.
cancel-pipeline:
stage: .post
needs:
- job: test-linux-stable
artifacts: false
- job: test-linux-stable-int
artifacts: false
- job: cargo-check-subkey
artifacts: false
- job: cargo-check-benches
artifacts: false
- job: check-tracing
artifacts: false
rules:
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: on_failure
variables:
PROJECT_ID: "${CI_PROJECT_ID}"
PIPELINE_ID: "${CI_PIPELINE_ID}"
trigger: "parity/infrastructure/ci_cd/pipeline-stopper"