From d21ae3724f7891c5d890ca7332a85ce74b62a7be Mon Sep 17 00:00:00 2001 From: Dotta <34892728+cryppadotta@users.noreply.github.com> Date: Wed, 25 Nov 2026 16:53:08 -0600 Subject: [PATCH] fix(ci): run Runner image amd64 jobs on standard runners again (#23000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work > - The Runner image workflow (`.github/workflows/runner-image.yml`) builds the Runner image on each master push that changes Runner inputs > - The Docker workflow waits for this Runner image before it publishes the Core image > - #22992 moved the master `Build and check (amd64)` and `Write the build cache (amd64)` jobs to the `cloud-release-32` larger runner > - On master, the amd64 build job stays queued with the `cloud-release-32` label and never gets a runner. Jobs from other workflows (for example `cloud-migrator-artifacts.yml`) get runners on the same label at the same time. The runner group does not admit this workflow. > - Because of this, no Core image publishes after #22992, and staging cannot deploy newer commits > - This pull request puts the two jobs back on `matrix.runner` (the runners before #22992). It keeps the parallel provider-pack archiving from #22992. > - The benefit is that Runner image and Core image publishing work again on master ## Linked Issues or Issue Description Refs #22992 **Describe the bug** On master, every `Runner image` run after #22992 has its `Build and check (amd64)` job queued forever with the `cloud-release-32` label. No runner picks it up. The Docker publish waits on it, so no Core image publishes. **Steps to reproduce** 1. Merge any commit to master after #22992. 2. Open the `Runner image` run for that push. 3. See `Build and check (amd64)` queued with no runner for 30+ minutes, while jobs from other workflows run on `cloud-release-32`. **Expected behavior** The amd64 build job starts on a runner, and the Runner image and the Core image publish. ## What Changed - `.github/workflows/runner-image.yml`: the `build` and `cache` jobs use `runs-on: ${{ matrix.runner }}` again. The file is now identical to its state before #22992. The comment about the larger runner is removed. - `server/src/__tests__/runner-image-workflow.test.ts`: the guard test now asserts that the `build` and `cache` jobs use `matrix.runner` and do not reference `cloud-release-32` or `CORE_PUBLICATION_RUNNER`. - The parallel archive change in `scripts/create-provider-pack-archive.mjs` and its test from #22992 do not change. To use `cloud-release-32` for this workflow again, an owner must first let the runner group admit `runner-image.yml`. With the current group settings, the job never started on that runner. This PR does not change repository variables, runner groups or organization settings. ## Verification - `git diff 168253f74d -- .github/workflows/runner-image.yml` is empty. - `pnpm exec vitest run server/src/__tests__/runner-image-workflow.test.ts`: 18/18 pass. - After merge: the master `Runner image` run starts its amd64 job on `ubuntu-latest`, and the master `Docker` run publishes. ## Risks - Low risk. This restores the runner placement that worked before #22992. The master amd64 Runner build goes back to its earlier duration on the 4-core runner. ## Model Used - Claude Opus 5.5 (`claude-opus-5-5`), Claude Code agent with tool use and shell execution. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [ ] All Paperclip CI gates are green - [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 --- .github/workflows/runner-image.yml | 7 ++----- server/src/__tests__/runner-image-workflow.test.ts | 11 +++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/runner-image.yml b/.github/workflows/runner-image.yml index db9f71cb4ea..aa45620b05f 100644 --- a/.github/workflows/runner-image.yml +++ b/.github/workflows/runner-image.yml @@ -212,9 +212,6 @@ jobs: # Multi-arch by native runner, not QEMU, as in docker.yml. GitHub-hosted # runners: the protected release fleets admit only docker.yml on master. - # Canonical master amd64 pushes use the larger GitHub-hosted runner - # (cloud-release-32) to avoid 4-core CPU bottlenecks in archive compression - # and OCI export; PRs, forks, schedules, and arm64 stay on standard runners. # # These legs cannot write to the registry on any event, and they # write no registry build cache. The install runs dependency lifecycle @@ -238,7 +235,7 @@ jobs: - platform: linux/arm64 runner: ubuntu-24.04-arm arch: arm64 - runs-on: ${{ matrix.arch == 'amd64' && github.repository == 'paperclipai/paperclip' && github.repository_id == '1170821064' && github.event_name == 'push' && github.ref == 'refs/heads/master' && (vars.CORE_PUBLICATION_RUNNER || 'cloud-release-32') || matrix.runner }} + runs-on: ${{ matrix.runner }} timeout-minutes: 60 permissions: contents: read @@ -732,7 +729,7 @@ jobs: - platform: linux/arm64 runner: ubuntu-24.04-arm arch: arm64 - runs-on: ${{ matrix.arch == 'amd64' && github.repository == 'paperclipai/paperclip' && github.repository_id == '1170821064' && github.event_name == 'push' && github.ref == 'refs/heads/master' && (vars.CORE_PUBLICATION_RUNNER || 'cloud-release-32') || matrix.runner }} + runs-on: ${{ matrix.runner }} timeout-minutes: 30 permissions: contents: read diff --git a/server/src/__tests__/runner-image-workflow.test.ts b/server/src/__tests__/runner-image-workflow.test.ts index a4b10f150c7..d12fc29cc3e 100644 --- a/server/src/__tests__/runner-image-workflow.test.ts +++ b/server/src/__tests__/runner-image-workflow.test.ts @@ -282,12 +282,11 @@ describe("Runner image workflow", () => { } }); - it("routes only canonical master amd64 pushes to the larger GitHub-hosted runner", () => { - const runsOn = /^ {4}runs-on: (.+)$/m.exec(jobs.build)?.[1] ?? ""; - expect(runsOn).toBe( - `\${{ matrix.arch == 'amd64' && ${canonical} && (vars.CORE_PUBLICATION_RUNNER || 'cloud-release-32') || matrix.runner }}`, - ); - expect(jobs.build).not.toMatch(/runs-on\/fleet=/); + it("builds and caches on the standard GitHub-hosted matrix runners", () => { + for (const job of [jobs.build, jobs.cache]) { + expect(/^ {4}runs-on: (.+)$/m.exec(job)?.[1]).toBe("${{ matrix.runner }}"); + expect(job).not.toMatch(/cloud-release-32|CORE_PUBLICATION_RUNNER|runs-on\/fleet=/); + } }); it("is registered with the merge-review notifier under its own name", () => {