FORGE-79: skip the throwaway pnpm cache save on the Cloudflare executor #718

Merged
gmackie merged 1 commit from FORGE-79-no-cache-save-on-cf into main 2026-10-12 05:49:11 +00:00
Owner

Issue: https://tasks.gmac.io/gmacko/issue/FORGE-79

Why (measured, #714 run for 64067e9c)

cloudflare job steps last step ended task stopped unaccounted
unit-web checkout 4s, install 65s, leaf 26s, web/health/mobile 127s 05:24:36 05:26:11 95s

The 95s is the post-job phase of actions/setup-node with cache: pnpm, saving the pnpm store to the actions cache server. On the Cloudflare executor that server lives inside a single-use container, so the upload is thrown away. unit-api showed the same pattern (244s run vs ~140s of steps).

Change

  • .forgejo/actions/pnpm-install gains a node-cache input (default pnpm, unchanged for every node-runner job).
  • unit-api and unit-web (runs-on: cloudflare) pass node-cache: "".

Expected (estimate): ~90s off each Cloudflare unit job. The unit-web critical path drops from ~330s to ~240s. The install itself stays cold (~60s); baking a pnpm store into the image is the next step if worthwhile.

Tests

Workflow YAML parses (10 files); the runner-placement and aggregate tests pass (7/7). This PR's own run measures the change.

🤖 Generated with Claude Code

Issue: https://tasks.gmac.io/gmacko/issue/FORGE-79 ## Why (measured, #714 run for 64067e9c) | cloudflare job | steps | last step ended | task stopped | unaccounted | |---|---|---|---|---| | unit-web | checkout 4s, install 65s, leaf 26s, web/health/mobile 127s | 05:24:36 | 05:26:11 | **95s** | The 95s is the post-job phase of `actions/setup-node` with `cache: pnpm`, saving the pnpm store to the actions cache server. On the Cloudflare executor that server lives inside a single-use container, so the upload is thrown away. unit-api showed the same pattern (244s run vs ~140s of steps). ## Change - `.forgejo/actions/pnpm-install` gains a `node-cache` input (default `pnpm`, unchanged for every node-runner job). - `unit-api` and `unit-web` (`runs-on: cloudflare`) pass `node-cache: ""`. Expected (estimate): ~90s off each Cloudflare unit job. The unit-web critical path drops from ~330s to ~240s. The install itself stays cold (~60s); baking a pnpm store into the image is the next step if worthwhile. ## Tests Workflow YAML parses (10 files); the runner-placement and aggregate tests pass (7/7). This PR's own run measures the change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perf(ci): skip the throwaway pnpm cache save on the Cloudflare executor (FORGE-79)
All checks were successful
CI / gitleaks (pull_request) Successful in 21s
CI / unit-web (pull_request) Successful in 2m26s
CI / unit-api (pull_request) Successful in 4m16s
CI / go (pull_request) Successful in 1m6s
CI / storybook (pull_request) Successful in 1m42s
CI / web-build (pull_request) Successful in 2m52s
CI / checks (pull_request) Successful in 3m3s
CI / database (pull_request) Successful in 3m17s
forgegraph/ci CI passed
CI / ci (pull_request) Successful in 43s
fdda507070
On cloudflare jobs the post-job phase of the shared install action spent
~95s (unit-web task: last step ended 05:24:36, task stopped 05:26:11)
saving the pnpm store to an actions cache server that dies with the
container. The pnpm-install action gains a node-cache input (default
pnpm). The two cloudflare unit jobs pass '' and node runners keep caching,
where the cache outlives the job.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Author
Owner

Preview environment is live: https://pr-718-forgegraph.forgegraf.com

Deployed fdda5070 with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.

Preview environment is live: https://pr-718-forgegraph.forgegraf.com Deployed `fdda5070` with the beta stage's environment. It redeploys on every push and is destroyed when this PR closes.
Sign in to join this conversation.
No description provided.