From 8f9d56f8d39e7206f13a2f1c6c91f158aee672c7 Mon Sep 17 00:00:00 2001 From: Carlos Jorge Date: Mon, 30 Nov 2026 18:47:39 +0000 Subject: [PATCH 1/5] ci: run CI on the Foundation's runner pools on forge 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 --- .github/workflows/ci-cd-production.yml | 4 +++- .github/workflows/ci-cd-pull-request.yml | 20 +++++++------------- .github/workflows/image.yml | 5 ++++- .github/workflows/release.yml | 6 ++++-- .github/workflows/website-integrity.yml | 3 ++- 5 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci-cd-production.yml b/.github/workflows/ci-cd-production.yml index 3ca7c781c007..582627138cde 100644 --- a/.github/workflows/ci-cd-production.yml +++ b/.github/workflows/ci-cd-production.yml @@ -10,9 +10,11 @@ env: HEALTH_CHECK_URL: https://thegraph.com/docs APP_NAME: graph-docs +# The build runs on the Foundation's public runner pool gf-public-16 on forge. The deploy runs on a +# GitHub-hosted runner: it holds the production GCP credentials, which never go to forge's pools. jobs: build: - runs-on: ubuntu-latest + runs-on: gf-public-16 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/ci-cd-pull-request.yml b/.github/workflows/ci-cd-pull-request.yml index 0805547df75b..27959ad212ee 100644 --- a/.github/workflows/ci-cd-pull-request.yml +++ b/.github/workflows/ci-cd-pull-request.yml @@ -2,13 +2,16 @@ name: Pull Request CI/CD on: pull_request +# Jobs run on the Foundation's public runner pools on forge (gf-public-, a fresh VM per +# job): the checks on 4 vCPUs, the image build on 16. The build does not wait for the checks. + env: IMAGE: ghcr.io/graphprotocol/graph-docs jobs: lint: if: contains(github.head_ref, 'crowdin') == false - runs-on: ubuntu-latest + runs-on: gf-public-4 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 @@ -31,7 +34,7 @@ jobs: format: if: contains(github.head_ref, 'crowdin') == false - runs-on: ubuntu-latest + runs-on: gf-public-4 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 @@ -54,7 +57,7 @@ jobs: typecheck: if: contains(github.head_ref, 'crowdin') == false - runs-on: ubuntu-latest + runs-on: gf-public-4 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 @@ -77,8 +80,7 @@ jobs: build: if: contains(github.head_ref, 'crowdin') == false - runs-on: ubuntu-latest - needs: [lint, format, typecheck] + runs-on: gf-public-16 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 @@ -88,14 +90,6 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Set up env - uses: the-guild-org/shared-config/setup@v1 - with: - node-version: 22 - - - name: Install dependencies - run: pnpm install - - name: Build Docker image uses: docker/build-push-action@v5 with: diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index cd33f4f9dae6..d41f615fe0e9 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -14,6 +14,9 @@ on: # graphprotocol/graph-infra: Kargo follows latest. A v* tag releases a commit's image under the # tag's name (release.yml). +# The build runs on the Foundation's public runner pool gf-public-16 on forge (16 vCPUs, a fresh VM +# per job). + # Runs of one branch build one at a time and in order, so latest only moves forward. A run is not # cancelled: every commit it builds keeps its image, which a release tags. concurrency: @@ -29,7 +32,7 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: gf-public-16 steps: - name: Check out the repo uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ea4029343a6..0ff8b54fbb5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ on: # move latest. Production Kargo follows these version tags (graphprotocol/graph-infra). # ci-cd-production.yml still builds and deploys production from the same tags, separately. +# Both jobs run on the Foundation's public runner pool gf-public-4 on forge. + # Releases run one at a time, and none is cancelled. concurrency: group: release @@ -24,7 +26,7 @@ env: jobs: checks: - runs-on: ubuntu-latest + runs-on: gf-public-4 steps: - name: Check out the repo uses: actions/checkout@v4 @@ -47,7 +49,7 @@ jobs: run: pnpm typecheck release: - runs-on: ubuntu-latest + runs-on: gf-public-4 timeout-minutes: 60 needs: [checks] permissions: diff --git a/.github/workflows/website-integrity.yml b/.github/workflows/website-integrity.yml index 2e3ede255986..bb22384b4061 100644 --- a/.github/workflows/website-integrity.yml +++ b/.github/workflows/website-integrity.yml @@ -7,7 +7,8 @@ on: - main jobs: website-check: - runs-on: ubuntu-latest + # The Foundation's public runner pool on forge: a full site build on 16 vCPUs. + runs-on: gf-public-16 steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1 From 683a772ff194a35a251ab09d1e63861415af4939 Mon Sep 17 00:00:00 2001 From: Carlos Jorge Date: Mon, 30 Nov 2026 18:54:37 +0000 Subject: [PATCH 2/5] ci: set up pnpm and Node.js without a global npm install 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 --- .github/workflows/ci-cd-pull-request.yml | 30 +++++++++++++++++------- .github/workflows/release.yml | 10 +++++--- .github/workflows/website-integrity.yml | 11 +++++++-- 3 files changed, 37 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-cd-pull-request.yml b/.github/workflows/ci-cd-pull-request.yml index 27959ad212ee..c35ab5844955 100644 --- a/.github/workflows/ci-cd-pull-request.yml +++ b/.github/workflows/ci-cd-pull-request.yml @@ -21,13 +21,17 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Set up env - uses: the-guild-org/shared-config/setup@v1 + - name: Set up pnpm + uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: node-version: 22 + cache: pnpm - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Lint run: pnpm lint @@ -44,13 +48,17 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Set up env - uses: the-guild-org/shared-config/setup@v1 + - name: Set up pnpm + uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: node-version: 22 + cache: pnpm - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Check formatting run: pnpm prettier:check @@ -67,13 +75,17 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Set up env - uses: the-guild-org/shared-config/setup@v1 + - name: Set up pnpm + uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: node-version: 22 + cache: pnpm - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Typecheck run: pnpm typecheck diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ff8b54fbb5f..4af121d33009 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,13 +31,17 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 - - name: Set up env - uses: the-guild-org/shared-config/setup@v1 + - name: Set up pnpm + uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: node-version: 22 + cache: pnpm - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Lint run: pnpm lint diff --git a/.github/workflows/website-integrity.yml b/.github/workflows/website-integrity.yml index bb22384b4061..3a64405a4aab 100644 --- a/.github/workflows/website-integrity.yml +++ b/.github/workflows/website-integrity.yml @@ -21,10 +21,17 @@ jobs: - name: Fetch run: git fetch origin main - - name: Set up env - uses: the-guild-org/shared-config/setup@v1 + - name: Set up pnpm + uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 with: node-version: 22 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Run pre-build scripts run: pnpm prebuild:ci From 95fa1a5abcbd5a5a8cefd7e298aa7e438186dd57 Mon Sep 17 00:00:00 2001 From: Carlos Jorge Date: Mon, 30 Nov 2026 19:12:29 +0000 Subject: [PATCH 3/5] build: skip file tracing for the static export 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 --- website/next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/next.config.js b/website/next.config.js index b6a3697427f7..220c5b1c4785 100644 --- a/website/next.config.js +++ b/website/next.config.js @@ -112,6 +112,9 @@ const withNextra = nextra({ export default withNextra({ env, output: 'export', + // A static export serves no Node.js server, so it needs no file traces: tracing would take most + // of the build and its files never reach `out`. + outputFileTracing: false, distDir: process.env.NODE_ENV === 'production' ? '../out/docs' : undefined, experimental: { // Fix scroll restoration (see https://github.com/vercel/next.js/issues/37893#issuecomment-1221335543) From 45402728e25f8eb44955499a158aeaff3d335b67 Mon Sep 17 00:00:00 2001 From: Carlos Jorge Date: Mon, 30 Nov 2026 19:16:16 +0000 Subject: [PATCH 4/5] ci: measure the pull request build on gf-public-8 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci-cd-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd-pull-request.yml b/.github/workflows/ci-cd-pull-request.yml index c35ab5844955..871448eaf341 100644 --- a/.github/workflows/ci-cd-pull-request.yml +++ b/.github/workflows/ci-cd-pull-request.yml @@ -92,7 +92,7 @@ jobs: build: if: contains(github.head_ref, 'crowdin') == false - runs-on: gf-public-16 + runs-on: gf-public-8 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 From 5d602b6a2c0843e49d88388e9280447a5d1bda77 Mon Sep 17 00:00:00 2001 From: Carlos Jorge Date: Mon, 30 Nov 2026 19:20:07 +0000 Subject: [PATCH 5/5] ci: build the images on gf-public-8 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 --- .github/workflows/ci-cd-production.yml | 4 ++-- .github/workflows/ci-cd-pull-request.yml | 2 +- .github/workflows/image.yml | 4 ++-- .github/workflows/website-integrity.yml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-cd-production.yml b/.github/workflows/ci-cd-production.yml index 582627138cde..3d6d99911d61 100644 --- a/.github/workflows/ci-cd-production.yml +++ b/.github/workflows/ci-cd-production.yml @@ -10,11 +10,11 @@ env: HEALTH_CHECK_URL: https://thegraph.com/docs APP_NAME: graph-docs -# The build runs on the Foundation's public runner pool gf-public-16 on forge. The deploy runs on a +# The build runs on the Foundation's public runner pool gf-public-8 on forge. The deploy runs on a # GitHub-hosted runner: it holds the production GCP credentials, which never go to forge's pools. jobs: build: - runs-on: gf-public-16 + runs-on: gf-public-8 steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.12.1 diff --git a/.github/workflows/ci-cd-pull-request.yml b/.github/workflows/ci-cd-pull-request.yml index 871448eaf341..2825360974a2 100644 --- a/.github/workflows/ci-cd-pull-request.yml +++ b/.github/workflows/ci-cd-pull-request.yml @@ -3,7 +3,7 @@ name: Pull Request CI/CD on: pull_request # Jobs run on the Foundation's public runner pools on forge (gf-public-, a fresh VM per -# job): the checks on 4 vCPUs, the image build on 16. The build does not wait for the checks. +# job): the checks on 4 vCPUs, the image build on 8. The build does not wait for the checks. env: IMAGE: ghcr.io/graphprotocol/graph-docs diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index d41f615fe0e9..bfec3f654cab 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -14,7 +14,7 @@ on: # graphprotocol/graph-infra: Kargo follows latest. A v* tag releases a commit's image under the # tag's name (release.yml). -# The build runs on the Foundation's public runner pool gf-public-16 on forge (16 vCPUs, a fresh VM +# The build runs on the Foundation's public runner pool gf-public-8 on forge (8 vCPUs, a fresh VM # per job). # Runs of one branch build one at a time and in order, so latest only moves forward. A run is not @@ -32,7 +32,7 @@ env: jobs: build: - runs-on: gf-public-16 + runs-on: gf-public-8 steps: - name: Check out the repo uses: actions/checkout@v4 diff --git a/.github/workflows/website-integrity.yml b/.github/workflows/website-integrity.yml index 3a64405a4aab..f67f09df9d64 100644 --- a/.github/workflows/website-integrity.yml +++ b/.github/workflows/website-integrity.yml @@ -7,8 +7,8 @@ on: - main jobs: website-check: - # The Foundation's public runner pool on forge: a full site build on 16 vCPUs. - runs-on: gf-public-16 + # The Foundation's public runner pool on forge: a full site build on 8 vCPUs. + runs-on: gf-public-8 steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.12.1