WIP: remove deprecated only/except clauses (#7229)

* change (CI): remove deprecated only/except clauses

* change (CI): remove

* change (CI): debug regex

* change (CI): regex shouldn't be surrounded with quotes in `rules`

* change (CI): no quotes in `rules`

* change (CI): debug workflow

* change (CI): almost equal

* change (CI): splinters

* change (CI): some details [chaos:basic]

* change (CI): add manual substrate build on PRs

* change (CI): mistake with publish-to-crates-io

* change (CI): reapproach chaos-only; rename rules anchors [skip ci]

* change (CI): add linux and mac to manual jobs for PRs [skip ci]

* change (CI): remove `pre-v` tags rules [skip ci]

* change (CI): add subkey for macos build as manual on PRs as well

* change (CI): add glob to match every changed file in monitoring

* test (CI): [chaos:basic]
This commit is contained in:
Denis Pisarev
2020-09-30 22:16:48 +02:00
committed by GitHub
parent 6fe17000d0
commit cdff10e1b2
2 changed files with 139 additions and 143 deletions
+137 -141
View File
@@ -3,7 +3,6 @@
# substrate # substrate
# #
# pipelines can be triggered manually in the web # pipelines can be triggered manually in the web
# setting DEPLOY_TAG will only deploy the tagged image
# SAMPLE JOB TEMPLATE - This is not a complete example but is enough to build a # SAMPLE JOB TEMPLATE - This is not a complete example but is enough to build a
# simple CI job. For full documentation, visit https://docs.gitlab.com/ee/ci/yaml/ # simple CI job. For full documentation, visit https://docs.gitlab.com/ee/ci/yaml/
@@ -12,8 +11,8 @@
# stage: test # One of the stages listed below this job (required) # stage: test # One of the stages listed below this job (required)
# image: paritytech/tools:latest # Any docker image (required) # image: paritytech/tools:latest # Any docker image (required)
# allow_failure: true # Allow the pipeline to continue if this job fails (default: false) # allow_failure: true # Allow the pipeline to continue if this job fails (default: false)
# dependencies: # needs:
# - build-rust-doc # Any jobs that are required to run before this job (optional) # - job: test-linux # Any jobs that are required to run before this job (optional)
# variables: # variables:
# MY_ENVIRONMENT_VARIABLE: "some useful value" # Environment variables passed to the job (optional) # MY_ENVIRONMENT_VARIABLE: "some useful value" # Environment variables passed to the job (optional)
# script: # script:
@@ -26,7 +25,7 @@ stages:
- test - test
- build - build
- post-build-test - post-build-test
- docker - chaos-env
- chaos - chaos
- publish - publish
- deploy - deploy
@@ -76,55 +75,39 @@ default:
tags: tags:
- linux-docker - linux-docker
.docker-env-only: &docker-env-only workflow:
only:
- master
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- schedules
- web
- /^[0-9]+$/ # PRs
.build-only: &build-only
only:
- master
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- /^pre-v[0-9]+\.[0-9]+-[0-9a-f]+$/
- web
.build-rules: &build-rules
rules: rules:
- if: '$DEPLOY_TAG' - if: $CI_COMMIT_TAG
when: never - if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_REF_NAME=="master"
when: always
- if: $CI_PIPELINE_SOURCE=="web"
when: always
- if: $CI_COMMIT_REF_NAME=~ /^v[0-9]+\.[0-9]+.*$/
when: always
- if: $CI_COMMIT_REF_NAME=~ /^pre-v[0-9]+\.[0-9]+-[0-9a-f]+$/
when: always
- if: '$CI_COMMIT_MESSAGE =~ /\[chaos:(basic|medium|large)\]/ && $CI_COMMIT_REF_NAME=~ /^[0-9]+$/' # i.e add [chaos:basic] in commit message to trigger
when: always
- when: never
.chaos-only: &chaos-only .test-refs: &test-refs
only: rules:
variables: - if: $CI_PIPELINE_SOURCE == "web"
- '$CI_COMMIT_MESSAGE =~ /\[chaos:(basic|medium|large)\]/ && $CI_COMMIT_REF_NAME=~ /^[0-9]+$/' # i.e add [chaos:basic] in commit message to trigger - if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
.build-refs: &build-refs
rules:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
#### stage: .pre #### stage: .pre
skip-if-draft: skip-if-draft:
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
stage: .pre stage: .pre
only: rules:
- /^[0-9]+$/ # Pull requests - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
script: script:
- echo "Commit message is ${CI_COMMIT_MESSAGE}" - echo "Commit message is ${CI_COMMIT_MESSAGE}"
- echo "Ref is ${CI_COMMIT_REF_NAME}" - echo "Ref is ${CI_COMMIT_REF_NAME}"
- echo "pipeline source is ${CI_PIPELINE_SOURCE}" - echo "pipeline source is ${CI_PIPELINE_SOURCE}"
- echo "deploy tag is ${DEPLOY_TAG}"
- ./.maintain/gitlab/skip_if_draft.sh - ./.maintain/gitlab/skip_if_draft.sh
#### stage: check #### stage: check
@@ -133,8 +116,8 @@ check-runtime:
stage: check stage: check
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
only: rules:
- /^[0-9]+$/ - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
variables: variables:
<<: *default-vars <<: *default-vars
GITLAB_API: "https://gitlab.parity.io/api/v4" GITLAB_API: "https://gitlab.parity.io/api/v4"
@@ -147,9 +130,9 @@ check-signed-tag:
stage: check stage: check
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
only: rules:
- /^ci-release-.*$/ - if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
- /^v[0-9]+\.[0-9]+\.[0-9]+.*$/ - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+\.[0-9]+.*$/
script: script:
- ./.maintain/gitlab/check_signed.sh - ./.maintain/gitlab/check_signed.sh
@@ -157,8 +140,8 @@ check-line-width:
stage: check stage: check
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
only: rules:
- /^[0-9]+$/ - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
script: script:
- ./.maintain/gitlab/check_line_width.sh - ./.maintain/gitlab/check_line_width.sh
allow_failure: true allow_failure: true
@@ -167,9 +150,6 @@ test-dependency-rules:
stage: check stage: check
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
except:
variables:
- $DEPLOY_TAG
script: script:
- .maintain/ensure-deps.sh - .maintain/ensure-deps.sh
@@ -178,9 +158,13 @@ test-dependency-rules:
cargo-audit: cargo-audit:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only rules:
except: - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
- /^[0-9]+$/ when: never
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script: script:
- cargo audit - cargo audit
allow_failure: true allow_failure: true
@@ -188,14 +172,14 @@ cargo-audit:
cargo-deny: cargo-deny:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only rules:
only: - if: $CI_COMMIT_MESSAGE =~ /skip-checks/
- schedules when: never
- tags - if: $CI_PIPELINE_SOURCE == "web"
- web - if: $CI_PIPELINE_SOURCE == "schedule"
except: - if: $CI_COMMIT_REF_NAME == "master"
variables: - if: $CI_COMMIT_REF_NAME == "tags"
- $CI_COMMIT_MESSAGE =~ /skip-checks/ - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script: script:
- cargo deny check --hide-inclusion-graph -c .maintain/deny.toml - cargo deny check --hide-inclusion-graph -c .maintain/deny.toml
after_script: after_script:
@@ -211,7 +195,7 @@ cargo-deny:
cargo-check-benches: cargo-check-benches:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
script: script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all - BUILD_DUMMY_WASM_BINARY=1 time cargo +nightly check --benches --all
- cargo run --release -p node-bench -- ::node::import::native::sr25519::transfer_keep_alive::paritydb::small - cargo run --release -p node-bench -- ::node::import::native::sr25519::transfer_keep_alive::paritydb::small
@@ -221,7 +205,7 @@ cargo-check-benches:
cargo-check-subkey: cargo-check-subkey:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
script: script:
- cd ./bin/utils/subkey - cd ./bin/utils/subkey
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release - BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
@@ -230,21 +214,19 @@ cargo-check-subkey:
test-deterministic-wasm: test-deterministic-wasm:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
variables: variables:
<<: *default-vars <<: *default-vars
except: WASM_BUILD_NO_COLOR: 1
variables:
- $DEPLOY_TAG
script: script:
# build runtime # build runtime
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p node-runtime - cargo build --verbose --release -p node-runtime
# make checksum # make checksum
- sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256 - sha256sum target/release/wbuild/target/wasm32-unknown-unknown/release/node_runtime.wasm > checksum.sha256
# clean up FIXME: can we reuse some of the artifacts? # clean up FIXME: can we reuse some of the artifacts?
- cargo clean - cargo clean
# build again # build again
- WASM_BUILD_NO_COLOR=1 cargo build --verbose --release -p node-runtime - cargo build --verbose --release -p node-runtime
# confirm checksum # confirm checksum
- sha256sum -c checksum.sha256 - sha256sum -c checksum.sha256
- sccache -s - sccache -s
@@ -252,7 +234,7 @@ test-deterministic-wasm:
test-linux-stable: &test-linux test-linux-stable: &test-linux
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
variables: variables:
<<: *default-vars <<: *default-vars
# Enable debug assertions since we are running optimized builds for testing # Enable debug assertions since we are running optimized builds for testing
@@ -260,25 +242,22 @@ test-linux-stable: &test-linux
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings" RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
WASM_BUILD_NO_COLOR: 1 WASM_BUILD_NO_COLOR: 1
except:
variables:
- $DEPLOY_TAG
script: script:
# this job runs all tests in former runtime-benchmarks, frame-staking and wasmtime tests # this job runs all tests in former runtime-benchmarks, frame-staking and wasmtime tests
- time cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml - time cargo test --workspace --locked --release --verbose --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml
- WASM_BUILD_NO_COLOR=1 SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout - SUBSTRATE_TEST_TIMEOUT=1 time cargo test -p substrate-test-utils --release --verbose --locked -- --ignored timeout
- sccache -s - sccache -s
unleash-check: unleash-check:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only rules:
only: - if: $CI_COMMIT_MESSAGE =~ /skip-checks/
- master when: never
- tags # .test-refs
except: - if: $CI_COMMIT_REF_NAME == "master"
variables: - if: $CI_COMMIT_REF_NAME == "tags"
- $CI_COMMIT_MESSAGE =~ /skip-checks/ - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script: script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS} - cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash check ${CARGO_UNLEASH_PKG_DEF} - cargo unleash check ${CARGO_UNLEASH_PKG_DEF}
@@ -287,16 +266,13 @@ test-frame-examples-compile-to-wasm:
# into one job # into one job
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
variables: variables:
<<: *default-vars <<: *default-vars
# Enable debug assertions since we are running optimized builds for testing # Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions. # but still want to have debug assertions.
RUSTFLAGS: -Cdebug-assertions=y RUSTFLAGS: -Cdebug-assertions=y
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
except:
variables:
- $DEPLOY_TAG
script: script:
- cd frame/example-offchain-worker/ - cd frame/example-offchain-worker/
- cargo +nightly build --target=wasm32-unknown-unknown --no-default-features - cargo +nightly build --target=wasm32-unknown-unknown --no-default-features
@@ -306,9 +282,6 @@ test-frame-examples-compile-to-wasm:
test-linux-stable-int: test-linux-stable-int:
<<: *test-linux <<: *test-linux
except:
variables:
- $DEPLOY_TAG
script: script:
- echo "___Logs will be partly shown at the end in case of failure.___" - echo "___Logs will be partly shown at the end in case of failure.___"
- echo "___Full log will be saved to the job artifacts only in case of failure.___" - echo "___Full log will be saved to the job artifacts only in case of failure.___"
@@ -329,7 +302,7 @@ test-linux-stable-int:
check-web-wasm: check-web-wasm:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
script: script:
# WASM support is in progress. As more and more crates support WASM, we # WASM support is in progress. As more and more crates support WASM, we
# should add entries here. See https://github.com/paritytech/substrate/issues/2416 # should add entries here. See https://github.com/paritytech/substrate/issues/2416
@@ -350,16 +323,13 @@ check-web-wasm:
test-full-crypto-feature: test-full-crypto-feature:
stage: test stage: test
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
variables: variables:
<<: *default-vars <<: *default-vars
# Enable debug assertions since we are running optimized builds for testing # Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions. # but still want to have debug assertions.
RUSTFLAGS: -Cdebug-assertions=y RUSTFLAGS: -Cdebug-assertions=y
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
except:
variables:
- $DEPLOY_TAG
script: script:
- cd primitives/core/ - cd primitives/core/
- time cargo +nightly build --verbose --no-default-features --features full_crypto - time cargo +nightly build --verbose --no-default-features --features full_crypto
@@ -371,7 +341,7 @@ cargo-check-macos:
stage: test stage: test
# shell runner on mac ignores the image set in *docker-env # shell runner on mac ignores the image set in *docker-env
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
script: script:
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release - BUILD_DUMMY_WASM_BINARY=1 time cargo check --release
- sccache -s - sccache -s
@@ -392,15 +362,15 @@ check-polkadot-companion-status:
stage: build stage: build
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
only: rules:
- /^[0-9]+$/ # PRs - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
script: script:
- ./.maintain/gitlab/check_polkadot_companion_status.sh - ./.maintain/gitlab/check_polkadot_companion_status.sh
check-polkadot-companion-build: check-polkadot-companion-build:
stage: build stage: build
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
needs: needs:
- job: test-linux-stable-int - job: test-linux-stable-int
artifacts: false artifacts: false
@@ -413,7 +383,7 @@ check-polkadot-companion-build:
test-browser-node: test-browser-node:
stage: build stage: build
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
needs: needs:
- job: check-web-wasm - job: check-web-wasm
artifacts: false artifacts: false
@@ -429,7 +399,16 @@ build-linux-substrate: &build-binary
stage: build stage: build
<<: *collect-artifacts <<: *collect-artifacts
<<: *docker-env <<: *docker-env
<<: *build-rules rules:
# .build-refs with manual on PRs and chaos
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_COMMIT_MESSAGE =~ /\[chaos:(basic|medium|large)\]/ && $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # i.e add [chaos:basic] in commit message to trigger
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: manual
allow_failure: true
needs: needs:
- job: test-linux-stable - job: test-linux-stable
artifacts: false artifacts: false
@@ -452,13 +431,19 @@ build-linux-substrate: &build-binary
- cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/ - cp -r .maintain/docker/substrate.Dockerfile ./artifacts/substrate/
- sccache -s - sccache -s
build-linux-subkey: &build-subkey build-linux-subkey: &build-subkey
stage: build stage: build
<<: *collect-artifacts <<: *collect-artifacts
<<: *docker-env <<: *docker-env
<<: *docker-env-only rules:
<<: *build-only # .build-refs with manual on PRs
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: manual
allow_failure: true
needs: needs:
- job: cargo-check-subkey - job: cargo-check-subkey
artifacts: false artifacts: false
@@ -479,16 +464,13 @@ build-linux-subkey: &build-subkey
build-macos-subkey: build-macos-subkey:
<<: *build-subkey <<: *build-subkey
only:
- master
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
tags: tags:
- osx - osx
build-rust-doc: build-rust-doc:
stage: build stage: build
<<: *docker-env <<: *docker-env
<<: *docker-env-only <<: *test-refs
allow_failure: true allow_failure: true
variables: variables:
<<: *default-vars <<: *default-vars
@@ -520,14 +502,22 @@ trigger-contracts-ci:
project: parity/srml-contracts-waterfall project: parity/srml-contracts-waterfall
branch: master branch: master
strategy: depend strategy: depend
only: rules:
- master - if: $CI_PIPELINE_SOURCE == "web"
- schedules - if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_COMMIT_REF_NAME == "master"
#### stage: docker #### stage: chaos-env
docker-build-chaos: &docker-build-chaos
<<: *chaos-only build-chaos-docker:
stage: docker stage: chaos-env
rules:
# .build-refs with chaos
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_COMMIT_MESSAGE =~ /\[chaos:(basic|medium|large)\]/ && $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # i.e add [chaos:basic] in commit message to trigger
needs: needs:
- job: build-linux-substrate - job: build-linux-substrate
image: docker:stable image: docker:stable
@@ -564,12 +554,19 @@ docker-build-chaos: &docker-build-chaos
- docker logout - docker logout
#### stage: chaos #### stage: chaos
chaos-test-singlenodeheight: chaos-test-singlenodeheight:
<<: *chaos-only
stage: chaos stage: chaos
rules:
# .build-refs with chaos
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_REF_NAME == "master"
- if: $CI_COMMIT_REF_NAME == "tags"
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- if: $CI_COMMIT_MESSAGE =~ /\[chaos:(basic|medium|large)\]/ && $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # i.e add [chaos:basic] in commit message to trigger
image: parity/chaostools:latest image: parity/chaostools:latest
needs: needs:
- job: docker-build-chaos - job: build-chaos-docker
tags: tags:
- parity-chaos - parity-chaos
variables: variables:
@@ -594,7 +591,7 @@ chaos-test-singlenodeheight:
#### stage: publish #### stage: publish
.build-push-docker-image: &build-push-docker-image .build-push-docker-image: &build-push-docker-image
<<: *build-only <<: *build-refs
<<: *kubernetes-build <<: *kubernetes-build
image: docker:stable image: docker:stable
services: services:
@@ -655,7 +652,7 @@ publish-docker-subkey:
publish-s3-release: publish-s3-release:
stage: publish stage: publish
<<: *build-only <<: *build-refs
<<: *kubernetes-build <<: *kubernetes-build
needs: needs:
- job: build-linux-substrate - job: build-linux-substrate
@@ -675,7 +672,6 @@ publish-s3-release:
- aws s3 ls s3://${BUCKET}/${PREFIX}/latest/ - aws s3 ls s3://${BUCKET}/${PREFIX}/latest/
--recursive --human-readable --summarize --recursive --human-readable --summarize
publish-s3-doc: publish-s3-doc:
stage: publish stage: publish
image: paritytech/awscli:latest image: paritytech/awscli:latest
@@ -683,7 +679,7 @@ publish-s3-doc:
needs: needs:
- job: build-rust-doc - job: build-rust-doc
artifacts: true artifacts: true
<<: *build-only <<: *build-refs
<<: *kubernetes-build <<: *kubernetes-build
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
@@ -703,9 +699,9 @@ publish-s3-doc:
publish-draft-release: publish-draft-release:
stage: publish stage: publish
image: paritytech/tools:latest image: paritytech/tools:latest
only: rules:
- /^ci-release-.*$/ - if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
- /^v[0-9]+\.[0-9]+\.[0-9]+.*$/ - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+\.[0-9]+.*$/
script: script:
- ./.maintain/gitlab/publish_draft_release.sh - ./.maintain/gitlab/publish_draft_release.sh
allow_failure: true allow_failure: true
@@ -713,17 +709,14 @@ publish-draft-release:
publish-to-crates-io: publish-to-crates-io:
stage: publish stage: publish
<<: *docker-env <<: *docker-env
<<: *docker-env-only rules:
only: - if: $CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
- /^ci-release-.*$/ - if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+\.[0-9]+.*$/
- /^v[0-9]+\.[0-9]+\.[0-9]+.*$/
script: script:
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS} - cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
- cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF} - cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}
allow_failure: true allow_failure: true
deploy-kubernetes-alerting-rules: deploy-kubernetes-alerting-rules:
stage: deploy stage: deploy
interruptible: true interruptible: true
@@ -741,25 +734,28 @@ deploy-kubernetes-alerting-rules:
- echo "deploying prometheus alerting rules" - echo "deploying prometheus alerting rules"
- kubectl -n ${NAMESPACE} patch prometheusrule ${PROMETHEUSRULE} - kubectl -n ${NAMESPACE} patch prometheusrule ${PROMETHEUSRULE}
--type=merge --patch "$(sed 's/^/ /;1s/^/spec:\n/' ${RULES})" --type=merge --patch "$(sed 's/^/ /;1s/^/spec:\n/' ${RULES})"
only: rules:
refs: - if: $CI_COMMIT_REF_NAME == "master"
- master changes:
changes: - .gitlab-ci.yml
- .gitlab-ci.yml - .maintain/monitoring/**/*
- .maintain/monitoring/
.validator-deploy: &validator-deploy .validator-deploy: &validator-deploy
<<: *build-only
stage: flaming-fir stage: flaming-fir
rules:
# .build-refs, but manual
- if: $CI_COMMIT_REF_NAME == "master"
when: manual
- if: $CI_PIPELINE_SOURCE == "web"
when: manual
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
when: manual
needs: needs:
# script will fail if there is no artifacts/substrate/VERSION # script will fail if there is no artifacts/substrate/VERSION
- job: publish-docker-substrate - job: publish-docker-substrate
artifacts: true artifacts: true
image: parity/azure-ansible:v1 image: parity/azure-ansible:v1
allow_failure: true allow_failure: true
when: manual
interruptible: true interruptible: true
tags: tags:
- linux-docker - linux-docker
@@ -790,7 +786,7 @@ check-labels:
stage: .post stage: .post
image: paritytech/tools:latest image: paritytech/tools:latest
<<: *kubernetes-build <<: *kubernetes-build
only: rules:
- /^[0-9]+$/ - if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
script: script:
- ./.maintain/gitlab/check_labels.sh - ./.maintain/gitlab/check_labels.sh
+2 -2
View File
@@ -2206,9 +2206,9 @@ dependencies = [
[[package]] [[package]]
name = "honggfuzz" name = "honggfuzz"
version = "0.5.51" version = "0.5.49"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f085725a5828d7e959f014f624773094dfe20acc91be310ef106923c30594bc" checksum = "832bac18a82ec7d6c21887daa8616b238fe90d5d5e762d0d4b9372cdaa9e097f"
dependencies = [ dependencies = [
"arbitrary", "arbitrary",
"lazy_static", "lazy_static",