FORGE-79: run the api and web unit suites on the Cloudflare executor #695

Merged
gmackie merged 1 commit from FORGE-79-unit-on-cloudflare into main 2026-10-12 04:36:08 +00:00
Owner

Issue: https://tasks.gmac.io/gmacko/issue/FORGE-79 · plan phase 4 (first step) · depends on the pool (#694, already deployed)

Change

  • unit-api and unit-web move to runs-on: cloudflare (pure Node, no service containers). checks, database, go and the builds stay on the node pool.
  • ci-aggregate.test.ts pins each parallel job's runner, so moving one is an explicit, tested change.

This is a measured experiment

This PR's own CI runs these two jobs on Cloudflare, scaled up by the pool. I'll merge only if their timings beat the node pool. Node-pool baseline from #682's run: unit-api 137s, unit-web 223s, plus whatever time they spent queued for a slot (11 ForgeGraph jobs were waiting on the node pool when I checked). Known handicap: the image has no warm pnpm store, so each install starts cold. Baking a store into the image is the follow-up if install time dominates.

Risk

cloudflare has no fallback runner. If the pool or Cloudflare fails, these jobs wait, and CI / ci (required) blocks merges. Rollback is a two-line revert.

🤖 Generated with Claude Code

Issue: https://tasks.gmac.io/gmacko/issue/FORGE-79 · plan phase 4 (first step) · depends on the pool (#694, already deployed) ## Change - `unit-api` and `unit-web` move to `runs-on: cloudflare` (pure Node, no service containers). `checks`, `database`, `go` and the builds stay on the node pool. - `ci-aggregate.test.ts` pins each parallel job's runner, so moving one is an explicit, tested change. ## This is a measured experiment This PR's own CI runs these two jobs on Cloudflare, scaled up by the pool. **I'll merge only if their timings beat the node pool.** Node-pool baseline from #682's run: unit-api 137s, unit-web 223s, plus whatever time they spent queued for a slot (11 ForgeGraph jobs were waiting on the node pool when I checked). Known handicap: the image has no warm pnpm store, so each install starts cold. Baking a store into the image is the follow-up if install time dominates. ## Risk `cloudflare` has no fallback runner. If the pool or Cloudflare fails, these jobs wait, and `CI / ci` (required) blocks merges. Rollback is a two-line revert. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perf(ci): run the api and web unit suites on the Cloudflare executor (FORGE-79)
All checks were successful
CI / unit-web (pull_request) Successful in 3m35s
CI / unit-api (pull_request) Successful in 3m37s
CI / gitleaks (pull_request) Successful in 8s
CI / storybook (pull_request) Successful in 2m6s
CI / go (pull_request) Successful in 1m22s
CI / web-build (pull_request) Successful in 4m0s
CI / database (pull_request) Successful in 3m13s
CI / checks (pull_request) Successful in 4m9s
forgegraph/ci CI passed
CI / ci (pull_request) Successful in 36s
cdeac836de
Phase 4, first step. unit-api and unit-web are pure Node with no
service containers, so they move to runs-on: cloudflare and stop
queueing for node-pool slots. Typecheck, database, Go and the builds
stay on the nodes. The aggregate test now pins each parallel job's
runner.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.