From f614b855833bdb2c1b5ff4db89412ab54c9e484c Mon Sep 17 00:00:00 2001 From: Denis P Date: Mon, 2 Aug 2021 12:20:12 +0200 Subject: [PATCH 1/2] CI: stop publishing to crates.io until unleash is fixed; allow restarting k8s runners --- .gitlab-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f954ac23cba2..4a8593aa1f73 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,9 +55,15 @@ default: - artifacts/ .kubernetes-env: &kubernetes-env + retry: + max: 2 + when: + - runner_system_failure + - unknown_failure + - api_failure + interruptible: true tags: - kubernetes-parity-build - interruptible: true .rust-info-script: &rust-info-script - rustup show @@ -675,7 +681,9 @@ publish-to-crates-io: <<: *docker-env rules: - if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/ - - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 + # FIXME: wait until https://github.com/paritytech/cargo-unleash/issues/50 is fixed, also + # remove allow_failure: true on the check job + # - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 script: - cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS} - cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF} From b71d73a98f1e6cb3686b16870c57bb5eac43433b Mon Sep 17 00:00:00 2001 From: Denis P Date: Mon, 2 Aug 2021 16:12:25 +0200 Subject: [PATCH 2/2] CI: fix CI if ci-release tag is pushed --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4a8593aa1f73..9a9f725780da 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -103,6 +103,7 @@ default: - if: $CI_COMMIT_REF_NAME == "master" - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1 + - if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/ .test-refs-no-trigger-prs-only: &test-refs-no-trigger-prs-only rules: @@ -349,6 +350,7 @@ unleash-check: - mkdir -p target/unleash - export CARGO_TARGET_DIR=target/unleash - cargo unleash check ${CARGO_UNLEASH_PKG_DEF} + # FIXME: this job must not fail, or unleash-to-crates-io will publish broken stuff allow_failure: true test-frame-examples-compile-to-wasm: @@ -676,7 +678,7 @@ publish-draft-release: - ./.maintain/gitlab/publish_draft_release.sh allow_failure: true -publish-to-crates-io: +unleash-to-crates-io: stage: publish <<: *docker-env rules: