Skip to content

Commit

Permalink
[ci] Add DAG (#1244)
Browse files Browse the repository at this point in the history
* [ci] Add DAG

* add dag

* add more dag and disable deny

* test cancel pipeline

* fix clippy
  • Loading branch information
alvicsam authored Aug 29, 2023
1 parent 7c69d14 commit b13a318
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ include:
PR_NUM: "${PR_NUM}"
trigger:
project: "parity/infrastructure/ci_cd/pipeline-stopper"
branch: "as-improve"

remove-cancel-pipeline-message:
stage: .post
Expand Down
16 changes: 13 additions & 3 deletions .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ build-staking-miner:
extends:
- .docker-env
- .common-refs
- .run-immediately
- .collect-artifacts
# - .collect-artifacts
# DAG
needs:
- job: build-malus
artifacts: false
script:
- time cargo build --locked --release --package staking-miner
# # pack artifacts
Expand Down Expand Up @@ -269,8 +272,11 @@ build-linux-substrate:
extends:
- .docker-env
- .common-refs
- .run-immediately
- .collect-artifacts
# DAG
needs:
- job: build-linux-stable
artifacts: false
variables:
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
Expand Down Expand Up @@ -320,6 +326,10 @@ build-linux-substrate:

build-subkey-linux:
extends: .build-subkey
# DAG
needs:
- job: build-staking-miner
artifacts: false
# tbd
# build-subkey-macos:
# extends: .build-subkey
Expand Down
11 changes: 10 additions & 1 deletion .gitlab/pipeline/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ cargo-fmt-manifest:
- zepter format features --check
allow_failure: true # Experimental

cargo-deny-licenses:
# FIXME
.cargo-deny-licenses:
stage: check
extends:
- .docker-env
Expand Down Expand Up @@ -132,6 +133,10 @@ check-runtime-migration-polkadot:

check-runtime-migration-kusama:
stage: check
# DAG
needs:
- job: check-runtime-migration-polkadot
artifacts: false
extends:
- .docker-env
- .test-pr-refs
Expand All @@ -152,6 +157,10 @@ check-runtime-migration-westend:

check-runtime-migration-rococo:
stage: check
# DAG
needs:
- job: check-runtime-migration-westend
artifacts: false
extends:
- .docker-env
- .test-pr-refs
Expand Down
30 changes: 24 additions & 6 deletions .gitlab/pipeline/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ test-rustdoc:
extends:
- .docker-env
- .common-refs
- .run-immediately
# DAG
needs:
- job: test-doc
artifacts: false
variables:
SKIP_WASM_BUILD: 1
RUSTDOCFLAGS: "-Dwarnings"
Expand All @@ -173,7 +176,10 @@ cargo-check-all-benches:
extends:
- .docker-env
- .common-refs
- .run-immediately
# DAG
needs:
- job: cargo-hfuzz
artifacts: false
script:
- time cargo check --all --benches

Expand Down Expand Up @@ -202,7 +208,10 @@ test-deterministic-wasm:
extends:
- .docker-env
- .common-refs
- .run-immediately
# DAG
needs:
- job: test-frame-support
artifacts: false
script:
- .gitlab/test_deterministic_wasm.sh

Expand Down Expand Up @@ -289,7 +298,10 @@ test-frame-support:
extends:
- .docker-env
- .common-refs
- .run-immediately
# DAG
needs:
- job: test-frame-examples-compile-to-wasm
artifacts: false
variables:
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
Expand Down Expand Up @@ -328,7 +340,10 @@ test-frame-examples-compile-to-wasm:
extends:
- .docker-env
- .common-refs
- .run-immediately
# DAG
needs:
- job: test-full-crypto-feature
artifacts: false
variables:
# Enable debug assertions since we are running optimized builds for testing
# but still want to have debug assertions.
Expand Down Expand Up @@ -439,7 +454,10 @@ cargo-hfuzz:
extends:
- .docker-env
- .common-refs
- .run-immediately
# DAG
needs:
- job: check-tracing
artifacts: false
variables:
# max 10s per iteration, 60s per file
HFUZZ_RUN_ARGS: >
Expand Down

0 comments on commit b13a318

Please sign in to comment.