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", () => {