Repository navigation
ci: run CI on the Foundation's runner pools on forge, three times faster - #1141
Merged
Merged
Conversation
The checks and the release run on gf-public-4; the image builds (pull request, main, production) and the website integrity build run on gf-public-16. A pull request's image build no longer waits for the checks and no longer installs dependencies it does not use (the Dockerfile installs its own). The production deploy and the OpenGraph deploy stay on GitHub-hosted runners: they hold GCP and Cloudflare credentials. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
the-guild-org/shared-config/setup runs `npm i -g corepack` before setting up Node.js, which needs a writable global prefix: forge's runners keep their Node.js root-owned, so it fails there. pnpm/action-setup installs the pnpm that packageManager names, setup-node caches its store, and one frozen install follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
next build traces every page's server files for a Node.js server, which a static export never runs. On CI the trace took about 200 of the build's 350 seconds and stalled the page export running beside it; the exported site is the same file for file without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The build is mostly serial (webpack's compile, then the export): on gf-public-16 it takes as long as on gf-public-8, which has more runners. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cjorge-thegraph
marked this pull request as ready for review
November 30, 2026 19:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves docs' CI from GitHub-hosted runners to the Foundation's runner pools on forge and makes the image build about three times faster. A pull request's CI now takes about 170 s; it took a median of 516 s before.
Where each job runs
docs is public, so it uses the public pools (
gf-public-<vCPUs>, a fresh VM per job). graphprotocol/graph-infra#1149 added docs to thegf-publicrunner group, and the change is applied.gf-public-4gf-public-8, alongside the checksgraph-docs:<commit>,lateston main)gf-public-8gf-public-4gf-public-8gf-public-8(it has never run: itspages/**filter matches no path)Image names, tags, the release job and the runtime-env check are unchanged. Main's image builds still run one at a time and are never cancelled.
Why it is faster
outputFileTracing: falseinwebsite/next.config.js).next buildtraced every page's server files for a Node.js server, which a static export never runs.pnpm buildinside the image went from 347 s to 113 s.maininnode:22-alpine, compared file by file with the build ID normalised, gave 3,095 files, none different.pnpm installit never used (the Dockerfile installs its own).pnpm/action-setupinstalls the pnpm thatpackageManagernames,setup-nodecaches its store, and onepnpm install --frozen-lockfilefollows.the-guild-org/shared-config/setup, which runsnpm i -g corepackfirst and fails on forge's runners, where Node.js is root-owned.gf-public-16and 159 s ongf-public-8, so it usesgf-public-8, which has more runners.gf-public-4.Before and after
graph-docs:5d602b6a…(run)Caching
pnpm installtakes about 10 s on forge, which a downloaded layer cache would not beat by much..nextbefore every build.Not yet run on forge
release.yml,ci-cd-production.ymlandwebsite-integrity.ymlstart only from a tag or apages/**change.build-push-actionwith a push, and buildx (imagetoolsuses the same buildx).🤖 Generated with Claude Code