From 45a864760713885ad6f0be98ac26a07ab722c017 Mon Sep 17 00:00:00 2001 From: Mira Ressel Date: Wed, 3 May 2023 12:47:22 +0200 Subject: [PATCH] Don't run `check-crates-publishing` job on prs (#14064) * Restore `check-crates-publishing-pipeline` job This job was errorneously deleted in lieu of the `check-crates-publishing` job. This reverts commit 202836cb47aa650716b74041ed2a7617004ff9b7. * Don't run `check-crate-publishing` job on prs. Originally attempted in #14044. It's been broken for a while and we're not sure yet how to move forward in the longer term. --- substrate/.gitlab-ci.yml | 12 ++++++++++++ substrate/scripts/ci/gitlab/pipeline/publish.yml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/substrate/.gitlab-ci.yml b/substrate/.gitlab-ci.yml index f9b4763c12..508f082d8c 100644 --- a/substrate/.gitlab-ci.yml +++ b/substrate/.gitlab-ci.yml @@ -251,6 +251,18 @@ default: #### stage: .pre +check-crates-publishing-pipeline: + stage: .pre + extends: + - .kubernetes-env + - .crates-publishing-pipeline + script: + - git clone + --depth 1 + --branch "$RELENG_SCRIPTS_BRANCH" + https://github.com/paritytech/releng-scripts.git + - ONLY_CHECK_PIPELINE=true ./releng-scripts/publish-crates + # By default our pipelines are interruptible, but some special pipelines shouldn't be interrupted: # * multi-project pipelines such as the ones triggered by the scripts repo # * the scheduled automatic-crate-publishing pipeline diff --git a/substrate/scripts/ci/gitlab/pipeline/publish.yml b/substrate/scripts/ci/gitlab/pipeline/publish.yml index 5a69e876ac..c90af7ba34 100644 --- a/substrate/scripts/ci/gitlab/pipeline/publish.yml +++ b/substrate/scripts/ci/gitlab/pipeline/publish.yml @@ -254,8 +254,8 @@ publish-crates-manual: check-crate-publishing: stage: publish extends: - - .test-refs - .crates-publishing-template + - .crates-publishing-pipeline # When lots of crates are taken into account (for example on master where all crates are tested) # the job might take a long time, as evidenced by: # https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2269364