From 45186fd92bdb350420ccf8684bdc0696ce2d4009 Mon Sep 17 00:00:00 2001 From: alvicsam Date: Wed, 16 Nov 2022 11:59:58 +0100 Subject: [PATCH 1/3] [ci] Improve pipeline stopper --- .gitlab-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 877004694d79..a8f70394cd5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -227,8 +227,24 @@ deploy-parity-testnet: PR_NUM: "${PR_NUM}" trigger: project: "parity/infrastructure/ci_cd/pipeline-stopper" + branch: "as-improve" -.cancel-pipeline-test-linux-stable: +remove-cancel-pipeline-message: + stage: .post + rules: + - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs + variables: + PROJECT_ID: "${CI_PROJECT_ID}" + PROJECT_NAME: "${CI_PROJECT_NAME}" + PIPELINE_ID: "${CI_PIPELINE_ID}" + FAILED_JOB_URL: "https://gitlab.com" + FAILED_JOB_NAME: "nope" + PR_NUM: "${CI_COMMIT_REF_NAME}" + trigger: + project: "parity/infrastructure/ci_cd/pipeline-stopper" + branch: "as-improve" + +cancel-pipeline-test-linux-stable: extends: .cancel-pipeline-template needs: - job: test-linux-stable From 7be1e9d201f890dee4ef4f45c3fdfad44944a8d2 Mon Sep 17 00:00:00 2001 From: alvicsam Date: Wed, 16 Nov 2022 12:02:04 +0100 Subject: [PATCH 2/3] break test-linux-stable --- scripts/ci/gitlab/pipeline/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci/gitlab/pipeline/test.yml b/scripts/ci/gitlab/pipeline/test.yml index 9a3dd0270fbb..6c512d8a4fde 100644 --- a/scripts/ci/gitlab/pipeline/test.yml +++ b/scripts/ci/gitlab/pipeline/test.yml @@ -22,6 +22,7 @@ test-linux-stable: # but still want to have debug assertions. RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" script: + - exit 1 - time cargo test --workspace --profile testnet --verbose --locked --features=runtime-benchmarks,runtime-metrics .check-dependent-project: &check-dependent-project From 017cc9f1a08b622d97ef75a9b27eecd286a3a015 Mon Sep 17 00:00:00 2001 From: alvicsam Date: Wed, 16 Nov 2022 12:04:13 +0100 Subject: [PATCH 3/3] fix test-linux-stable --- scripts/ci/gitlab/pipeline/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/ci/gitlab/pipeline/test.yml b/scripts/ci/gitlab/pipeline/test.yml index 6c512d8a4fde..9a3dd0270fbb 100644 --- a/scripts/ci/gitlab/pipeline/test.yml +++ b/scripts/ci/gitlab/pipeline/test.yml @@ -22,7 +22,6 @@ test-linux-stable: # but still want to have debug assertions. RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" script: - - exit 1 - time cargo test --workspace --profile testnet --verbose --locked --features=runtime-benchmarks,runtime-metrics .check-dependent-project: &check-dependent-project