Skip to content
Snippets Groups Projects
Unverified Commit b13a3187 authored by Alexander Samusev's avatar Alexander Samusev Committed by GitHub
Browse files

[ci] Add DAG (#1244)

* [ci] Add DAG

* add dag

* add more dag and disable deny

* test cancel pipeline

* fix clippy
parent 7c69d144
Branches
No related merge requests found
Pipeline #385118 failed with stages
in 24 minutes and 46 seconds
...@@ -233,7 +233,6 @@ include: ...@@ -233,7 +233,6 @@ include:
PR_NUM: "${PR_NUM}" PR_NUM: "${PR_NUM}"
trigger: trigger:
project: "parity/infrastructure/ci_cd/pipeline-stopper" project: "parity/infrastructure/ci_cd/pipeline-stopper"
branch: "as-improve"
remove-cancel-pipeline-message: remove-cancel-pipeline-message:
stage: .post stage: .post
......
...@@ -82,8 +82,11 @@ build-staking-miner: ...@@ -82,8 +82,11 @@ build-staking-miner:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # - .collect-artifacts
- .collect-artifacts # DAG
needs:
- job: build-malus
artifacts: false
script: script:
- time cargo build --locked --release --package staking-miner - time cargo build --locked --release --package staking-miner
# # pack artifacts # # pack artifacts
...@@ -269,8 +272,11 @@ build-linux-substrate: ...@@ -269,8 +272,11 @@ build-linux-substrate:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately
- .collect-artifacts - .collect-artifacts
# DAG
needs:
- job: build-linux-stable
artifacts: false
variables: variables:
# this variable gets overriden by "rusty-cachier environment inject", use the value as default # this variable gets overriden by "rusty-cachier environment inject", use the value as default
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target" CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
...@@ -320,6 +326,10 @@ build-linux-substrate: ...@@ -320,6 +326,10 @@ build-linux-substrate:
build-subkey-linux: build-subkey-linux:
extends: .build-subkey extends: .build-subkey
# DAG
needs:
- job: build-staking-miner
artifacts: false
# tbd # tbd
# build-subkey-macos: # build-subkey-macos:
# extends: .build-subkey # extends: .build-subkey
......
...@@ -32,7 +32,8 @@ cargo-fmt-manifest: ...@@ -32,7 +32,8 @@ cargo-fmt-manifest:
- zepter format features --check - zepter format features --check
allow_failure: true # Experimental allow_failure: true # Experimental
cargo-deny-licenses: # FIXME
.cargo-deny-licenses:
stage: check stage: check
extends: extends:
- .docker-env - .docker-env
...@@ -132,6 +133,10 @@ check-runtime-migration-polkadot: ...@@ -132,6 +133,10 @@ check-runtime-migration-polkadot:
check-runtime-migration-kusama: check-runtime-migration-kusama:
stage: check stage: check
# DAG
needs:
- job: check-runtime-migration-polkadot
artifacts: false
extends: extends:
- .docker-env - .docker-env
- .test-pr-refs - .test-pr-refs
...@@ -152,6 +157,10 @@ check-runtime-migration-westend: ...@@ -152,6 +157,10 @@ check-runtime-migration-westend:
check-runtime-migration-rococo: check-runtime-migration-rococo:
stage: check stage: check
# DAG
needs:
- job: check-runtime-migration-westend
artifacts: false
extends: extends:
- .docker-env - .docker-env
- .test-pr-refs - .test-pr-refs
......
...@@ -160,7 +160,10 @@ test-rustdoc: ...@@ -160,7 +160,10 @@ test-rustdoc:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # DAG
needs:
- job: test-doc
artifacts: false
variables: variables:
SKIP_WASM_BUILD: 1 SKIP_WASM_BUILD: 1
RUSTDOCFLAGS: "-Dwarnings" RUSTDOCFLAGS: "-Dwarnings"
...@@ -173,7 +176,10 @@ cargo-check-all-benches: ...@@ -173,7 +176,10 @@ cargo-check-all-benches:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # DAG
needs:
- job: cargo-hfuzz
artifacts: false
script: script:
- time cargo check --all --benches - time cargo check --all --benches
...@@ -202,7 +208,10 @@ test-deterministic-wasm: ...@@ -202,7 +208,10 @@ test-deterministic-wasm:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # DAG
needs:
- job: test-frame-support
artifacts: false
script: script:
- .gitlab/test_deterministic_wasm.sh - .gitlab/test_deterministic_wasm.sh
...@@ -289,7 +298,10 @@ test-frame-support: ...@@ -289,7 +298,10 @@ test-frame-support:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # DAG
needs:
- job: test-frame-examples-compile-to-wasm
artifacts: false
variables: variables:
# 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.
...@@ -328,7 +340,10 @@ test-frame-examples-compile-to-wasm: ...@@ -328,7 +340,10 @@ test-frame-examples-compile-to-wasm:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # DAG
needs:
- job: test-full-crypto-feature
artifacts: false
variables: variables:
# 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.
...@@ -439,7 +454,10 @@ cargo-hfuzz: ...@@ -439,7 +454,10 @@ cargo-hfuzz:
extends: extends:
- .docker-env - .docker-env
- .common-refs - .common-refs
- .run-immediately # DAG
needs:
- job: check-tracing
artifacts: false
variables: variables:
# max 10s per iteration, 60s per file # max 10s per iteration, 60s per file
HFUZZ_RUN_ARGS: > HFUZZ_RUN_ARGS: >
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment