mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
[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:
committed by
GitHub
parent
3502bc5c1d
commit
ce77cb1735
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user