Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 6d0ca79

Browse files
committed
Merge remote-tracking branch 'origin/master' into transaction-payment-rpc-calls-query-call-info
2 parents 20fb5d0 + fdfdc73 commit 6d0ca79

File tree

198 files changed

+7236
-3934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+7236
-3934
lines changed

.gitlab-ci.yml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ variables: &default-vars
4747
CARGO_INCREMENTAL: 0
4848
DOCKER_OS: "debian:stretch"
4949
ARCH: "x86_64"
50-
CI_IMAGE: "paritytech/ci-linux:production"
50+
# change to production when this image is published
51+
CI_IMAGE: "paritytech/ci-linux:staging@sha256:2c90b67f1452ed2d7236c2cd13f6224053a833d521b3630650b679f00874e0a9"
5152
RUSTY_CACHIER_SINGLE_BRANCH: master
5253
RUSTY_CACHIER_DONT_OPERATE_ON_MAIN_BRANCH: "true"
5354

@@ -196,7 +197,6 @@ include:
196197
# publish jobs
197198
- scripts/ci/gitlab/pipeline/publish.yml
198199

199-
200200
#### stage: deploy
201201

202202
deploy-prometheus-alerting-rules:
@@ -223,34 +223,59 @@ deploy-prometheus-alerting-rules:
223223

224224
# This job notifies rusty-cachier about the latest commit with the cache.
225225
# This info is later used for the cache distribution and an overlay creation.
226+
# Note that we don't use any .rusty-cachier references as we assume that a pipeline has reached this stage with working rusty-cachier.
226227
rusty-cachier-notify:
227228
stage: notify
228-
extends: .docker-env
229+
extends: .kubernetes-env
230+
variables:
231+
CI_IMAGE: paritytech/rusty-cachier-env:latest
232+
GIT_STRATEGY: none
233+
dependencies: []
229234
script:
235+
- curl -s https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.parity.io/parity/infrastructure/ci_cd/rusty-cachier/client/-/raw/release/util/install.sh | bash
230236
- rusty-cachier cache notify
231237

232238
#### stage: .post
233239

234240
# This job cancels the whole pipeline if any of provided jobs fail.
235241
# In a DAG, every jobs chain is executed independently of others. The `fail_fast` principle suggests
236242
# to fail the pipeline as soon as possible to shorten the feedback loop.
237-
cancel-pipeline:
243+
.cancel-pipeline-template:
238244
stage: .post
245+
rules:
246+
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
247+
when: on_failure
248+
variables:
249+
PROJECT_ID: "${CI_PROJECT_ID}"
250+
PIPELINE_ID: "${CI_PIPELINE_ID}"
251+
trigger: "parity/infrastructure/ci_cd/pipeline-stopper"
252+
253+
cancel-pipeline-test-linux-stable:
254+
extends: .cancel-pipeline-template
239255
needs:
240256
- job: test-linux-stable
241257
artifacts: false
258+
259+
cancel-pipeline-test-linux-stable-int:
260+
extends: .cancel-pipeline-template
261+
needs:
242262
- job: test-linux-stable-int
243263
artifacts: false
264+
265+
cancel-pipeline-cargo-check-subkey:
266+
extends: .cancel-pipeline-template
267+
needs:
244268
- job: cargo-check-subkey
245269
artifacts: false
270+
271+
cancel-pipeline-cargo-check-benches:
272+
extends: .cancel-pipeline-template
273+
needs:
246274
- job: cargo-check-benches
247275
artifacts: false
276+
277+
cancel-pipeline-check-tracing:
278+
extends: .cancel-pipeline-template
279+
needs:
248280
- job: check-tracing
249281
artifacts: false
250-
rules:
251-
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
252-
when: on_failure
253-
variables:
254-
PROJECT_ID: "${CI_PROJECT_ID}"
255-
PIPELINE_ID: "${CI_PIPELINE_ID}"
256-
trigger: "parity/infrastructure/ci_cd/pipeline-stopper"

0 commit comments

Comments
 (0)