fix: parallelize ci.yml steps with depends_on (#1052)

Add depends_on declarations so independent CI steps run in parallel.
Steps needing submodules (foundry-suite, contracts-local-fork,
evolution-tests, node-quality) wait for bootstrap-deps; lightweight
checks (single-package-manager, validate-evolution-patch,
optimizer-not-mutated, transpiler-tests) start immediately.

Critical path: bootstrap-deps (50s) + max(node-quality 400s) ≈ 450s
(was ~630s sequential).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-20 12:47:58 +00:00
parent 86e258f6e1
commit 82f1548856

View file

@ -24,6 +24,7 @@ clone:
steps:
- name: bootstrap-deps
depends_on: []
image: registry.niovi.voyage/harb/node-ci:latest
commands:
- |
@ -34,6 +35,7 @@ steps:
'
- name: foundry-suite
depends_on: [bootstrap-deps]
image: registry.niovi.voyage/harb/node-ci:latest
commands:
- |
@ -48,6 +50,7 @@ steps:
'
- name: contracts-local-fork
depends_on: [bootstrap-deps]
image: registry.niovi.voyage/harb/node-ci:latest
environment:
HARB_ENV: BASE_SEPOLIA_LOCAL_FORK
@ -64,6 +67,7 @@ steps:
# which is not configured. Re-add when RPC secret is provisioned.
- name: transpiler-tests
depends_on: []
image: registry.niovi.voyage/harb/node-ci:latest
when:
- event: pull_request
@ -82,6 +86,7 @@ steps:
'
- name: evolution-tests
depends_on: [bootstrap-deps]
image: registry.niovi.voyage/harb/node-ci:latest
when:
- event: pull_request
@ -102,6 +107,7 @@ steps:
'
- name: single-package-manager
depends_on: []
image: registry.niovi.voyage/harb/node-ci:latest
commands:
- |
@ -114,6 +120,7 @@ steps:
'
- name: validate-evolution-patch
depends_on: []
image: registry.niovi.voyage/harb/node-ci:latest
when:
- event: pull_request
@ -133,6 +140,7 @@ steps:
'
- name: optimizer-not-mutated
depends_on: []
image: registry.niovi.voyage/harb/node-ci:latest
commands:
- |
@ -146,6 +154,7 @@ steps:
'
- name: node-quality
depends_on: [bootstrap-deps]
image: registry.niovi.voyage/harb/node-ci:latest
environment:
CI: "true"