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

Commit

Permalink
paritytech/ci_cd#852: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Plakida committed Aug 22, 2023
1 parent 8e7c21b commit 0e198de
Show file tree
Hide file tree
Showing 2 changed files with 362 additions and 347 deletions.
129 changes: 65 additions & 64 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ default:
- runner_system_failure
- unknown_failure
- api_failure
cache: {}
cache: []
interruptible: true


.collect-artifacts:
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
Expand Down Expand Up @@ -286,20 +287,20 @@ include:
# tests jobs
- scripts/ci/gitlab/pipeline/test.yml
# build jobs
- scripts/ci/gitlab/pipeline/build.yml
# publish jobs
- scripts/ci/gitlab/pipeline/publish.yml
# zombienet jobs
- scripts/ci/gitlab/pipeline/zombienet.yml
# The crate-publishing pipeline requires a customized `interruptible` configuration. Unfortunately
# `interruptible` can't currently be dynamically set based on variables as per:
# - https://gitlab.com/gitlab-org/gitlab/-/issues/38349
# - https://gitlab.com/gitlab-org/gitlab/-/issues/194023
# Thus we work around that limitation by using conditional includes.
# For crate-publishing pipelines: run it with defaults + `interruptible: false`. The WHOLE
# pipeline is made uninterruptible to ensure that test jobs also get a chance to run to
# completion, because the publishing jobs depends on them AS INTENDED: crates should not be
# published before their source code is checked.
# - scripts/ci/gitlab/pipeline/build.yml
# # publish jobs
# - scripts/ci/gitlab/pipeline/publish.yml
# # zombienet jobs
# - scripts/ci/gitlab/pipeline/zombienet.yml
# # The crate-publishing pipeline requires a customized `interruptible` configuration. Unfortunately
# # `interruptible` can't currently be dynamically set based on variables as per:
# # - https://gitlab.com/gitlab-org/gitlab/-/issues/38349
# # - https://gitlab.com/gitlab-org/gitlab/-/issues/194023
# # Thus we work around that limitation by using conditional includes.
# # For crate-publishing pipelines: run it with defaults + `interruptible: false`. The WHOLE
# # pipeline is made uninterruptible to ensure that test jobs also get a chance to run to
# # completion, because the publishing jobs depends on them AS INTENDED: crates should not be
# # published before their source code is checked.
- project: parity/infrastructure/ci_cd/shared
ref: main
file: /common/timestamp.yml
Expand Down Expand Up @@ -361,52 +362,52 @@ remove-cancel-pipeline-message:

# need to copy jobs this way because otherwise gitlab will wait
# for all 3 jobs to finish instead of cancelling if one fails
cancel-pipeline-test-linux-stable1:
extends: .cancel-pipeline-template
needs:
- job: "test-linux-stable 1/3"

cancel-pipeline-test-linux-stable2:
extends: .cancel-pipeline-template
needs:
- job: "test-linux-stable 2/3"

cancel-pipeline-test-linux-stable3:
extends: .cancel-pipeline-template
needs:
- job: "test-linux-stable 3/3"

cancel-pipeline-cargo-check-benches1:
extends: .cancel-pipeline-template
needs:
- job: "cargo-check-benches 1/2"

cancel-pipeline-cargo-check-benches2:
extends: .cancel-pipeline-template
needs:
- job: "cargo-check-benches 2/2"

cancel-pipeline-test-linux-stable-int:
extends: .cancel-pipeline-template
needs:
- job: test-linux-stable-int

cancel-pipeline-cargo-check-each-crate-1:
extends: .cancel-pipeline-template
needs:
- job: "cargo-check-each-crate 1/2"

cancel-pipeline-cargo-check-each-crate-2:
extends: .cancel-pipeline-template
needs:
- job: "cargo-check-each-crate 2/2"

cancel-pipeline-cargo-check-each-crate-macos:
extends: .cancel-pipeline-template
needs:
- job: cargo-check-each-crate-macos

cancel-pipeline-check-tracing:
extends: .cancel-pipeline-template
needs:
- job: check-tracing
# cancel-pipeline-test-linux-stable1:
# extends: .cancel-pipeline-template
# needs:
# - job: "test-linux-stable 1/3"
#
# cancel-pipeline-test-linux-stable2:
# extends: .cancel-pipeline-template
# needs:
# - job: "test-linux-stable 2/3"
#
# cancel-pipeline-test-linux-stable3:
# extends: .cancel-pipeline-template
# needs:
# - job: "test-linux-stable 3/3"
#
# cancel-pipeline-cargo-check-benches1:
# extends: .cancel-pipeline-template
# needs:
# - job: "cargo-check-benches 1/2"
#
# cancel-pipeline-cargo-check-benches2:
# extends: .cancel-pipeline-template
# needs:
# - job: "cargo-check-benches 2/2"
#
# cancel-pipeline-test-linux-stable-int:
# extends: .cancel-pipeline-template
# needs:
# - job: test-linux-stable-int
#
# cancel-pipeline-cargo-check-each-crate-1:
# extends: .cancel-pipeline-template
# needs:
# - job: "cargo-check-each-crate 1/2"
#
# cancel-pipeline-cargo-check-each-crate-2:
# extends: .cancel-pipeline-template
# needs:
# - job: "cargo-check-each-crate 2/2"
#
# cancel-pipeline-cargo-check-each-crate-macos:
# extends: .cancel-pipeline-template
# needs:
# - job: cargo-check-each-crate-macos
#
# cancel-pipeline-check-tracing:
# extends: .cancel-pipeline-template
# needs:
# - job: check-tracing
Loading

0 comments on commit 0e198de

Please sign in to comment.