FORGE-68: run the ci checks as parallel jobs #680
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!680
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "FORGE-68-parallel-ci"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue: https://tasks.gmac.io/gmacko/issue/FORGE-68 · plan: https://xev2v724is67.postplan.dev (phase 1)
Why
The
cijob ran every check one after another: 12.2 min median, 19.7 max over 2 days. Measured step medians: api+web unit suites 292s, typecheck 127s, DB suites 88s, Go 77s (mostly compile), leaf tests 22s. These steps don't depend on each other.Change
ciis split into parallel jobs:checks(typecheck, lint, package links, script/workflow verifications),unit-api,unit-web(leaf + web + health + mobile),database(per-job PostgreSQL service) andgo(no pnpm install).cikeeps the required checkCI / ci. It needs all five withif: always(), merges their check-events streams and failure logs (via artifacts), runs the existing check-events summary and CTRF upload, and reports to ForgeGraph the same way. It fails unless every job passed; a skipped job counts as failure, and cancelled maps to cancelled..forgejo/actions/pnpm-install(pnpm, Node and the retrying frozen install with the registry token passed as an input).ci.ymlandops/ci-runners/README.mddescribe the fleet as of today (hetzner-ci added, labnuc tried and rolled back; FORGE-64).Tests
ci-aggregate.test.tschecks the required check name and needs/if wiring. It also executes the verdict script (all pass → success; failure/skipped → failure; cancelled → cancelled) and the artifact merge script (no artifacts; events and logs merged) underbash -e -o pipefail.Trade-off
Each PR now uses 5 runner slots for these checks instead of 1, and pays install overhead about four times (~30–60s each). That fits the current pool (hetzner-worker 1, hetzner-bob 2, hetzner-ci 2). The Containers executor in the plan is how this scales further.
🤖 Generated with Claude Code
afb7970fd7160416fb64