Skip to content

Commit b13a318

Browse files
authored
[ci] Add DAG (#1244)
* [ci] Add DAG * add dag * add more dag and disable deny * test cancel pipeline * fix clippy
1 parent 7c69d14 commit b13a318

File tree

4 files changed

+47
-11
lines changed

4 files changed

+47
-11
lines changed

.gitlab-ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ include:
233233
PR_NUM: "${PR_NUM}"
234234
trigger:
235235
project: "parity/infrastructure/ci_cd/pipeline-stopper"
236-
branch: "as-improve"
237236

238237
remove-cancel-pipeline-message:
239238
stage: .post

.gitlab/pipeline/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ build-staking-miner:
8282
extends:
8383
- .docker-env
8484
- .common-refs
85-
- .run-immediately
86-
- .collect-artifacts
85+
# - .collect-artifacts
86+
# DAG
87+
needs:
88+
- job: build-malus
89+
artifacts: false
8790
script:
8891
- time cargo build --locked --release --package staking-miner
8992
# # pack artifacts
@@ -269,8 +272,11 @@ build-linux-substrate:
269272
extends:
270273
- .docker-env
271274
- .common-refs
272-
- .run-immediately
273275
- .collect-artifacts
276+
# DAG
277+
needs:
278+
- job: build-linux-stable
279+
artifacts: false
274280
variables:
275281
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
276282
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
@@ -320,6 +326,10 @@ build-linux-substrate:
320326

321327
build-subkey-linux:
322328
extends: .build-subkey
329+
# DAG
330+
needs:
331+
- job: build-staking-miner
332+
artifacts: false
323333
# tbd
324334
# build-subkey-macos:
325335
# extends: .build-subkey

.gitlab/pipeline/check.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ cargo-fmt-manifest:
3232
- zepter format features --check
3333
allow_failure: true # Experimental
3434

35-
cargo-deny-licenses:
35+
# FIXME
36+
.cargo-deny-licenses:
3637
stage: check
3738
extends:
3839
- .docker-env
@@ -132,6 +133,10 @@ check-runtime-migration-polkadot:
132133

133134
check-runtime-migration-kusama:
134135
stage: check
136+
# DAG
137+
needs:
138+
- job: check-runtime-migration-polkadot
139+
artifacts: false
135140
extends:
136141
- .docker-env
137142
- .test-pr-refs
@@ -152,6 +157,10 @@ check-runtime-migration-westend:
152157

153158
check-runtime-migration-rococo:
154159
stage: check
160+
# DAG
161+
needs:
162+
- job: check-runtime-migration-westend
163+
artifacts: false
155164
extends:
156165
- .docker-env
157166
- .test-pr-refs

.gitlab/pipeline/test.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ test-rustdoc:
160160
extends:
161161
- .docker-env
162162
- .common-refs
163-
- .run-immediately
163+
# DAG
164+
needs:
165+
- job: test-doc
166+
artifacts: false
164167
variables:
165168
SKIP_WASM_BUILD: 1
166169
RUSTDOCFLAGS: "-Dwarnings"
@@ -173,7 +176,10 @@ cargo-check-all-benches:
173176
extends:
174177
- .docker-env
175178
- .common-refs
176-
- .run-immediately
179+
# DAG
180+
needs:
181+
- job: cargo-hfuzz
182+
artifacts: false
177183
script:
178184
- time cargo check --all --benches
179185

@@ -202,7 +208,10 @@ test-deterministic-wasm:
202208
extends:
203209
- .docker-env
204210
- .common-refs
205-
- .run-immediately
211+
# DAG
212+
needs:
213+
- job: test-frame-support
214+
artifacts: false
206215
script:
207216
- .gitlab/test_deterministic_wasm.sh
208217

@@ -289,7 +298,10 @@ test-frame-support:
289298
extends:
290299
- .docker-env
291300
- .common-refs
292-
- .run-immediately
301+
# DAG
302+
needs:
303+
- job: test-frame-examples-compile-to-wasm
304+
artifacts: false
293305
variables:
294306
# Enable debug assertions since we are running optimized builds for testing
295307
# but still want to have debug assertions.
@@ -328,7 +340,10 @@ test-frame-examples-compile-to-wasm:
328340
extends:
329341
- .docker-env
330342
- .common-refs
331-
- .run-immediately
343+
# DAG
344+
needs:
345+
- job: test-full-crypto-feature
346+
artifacts: false
332347
variables:
333348
# Enable debug assertions since we are running optimized builds for testing
334349
# but still want to have debug assertions.
@@ -439,7 +454,10 @@ cargo-hfuzz:
439454
extends:
440455
- .docker-env
441456
- .common-refs
442-
- .run-immediately
457+
# DAG
458+
needs:
459+
- job: check-tracing
460+
artifacts: false
443461
variables:
444462
# max 10s per iteration, 60s per file
445463
HFUZZ_RUN_ARGS: >

0 commit comments

Comments
 (0)