From eb475b5953141769ae7ce7bb02d0fbcef78e50d6 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 20 Sep 2026 19:23:45 +0100 Subject: [PATCH] ci: pin to europe-west3 to test a warm regional image cache Per-step timing shows the gap is image pulls, not compute: Run tests is 3s on RunsOn against 5s here, while Pull Docker Image is 12s against 54s and Pull Docker Compose images 50s against 87s. The app image already comes from GCRUNNER_REGISTRY_PULL, but jobs spread over eight regions, so each regional read-through cache is cold for a new SHA and the image is fetched cross-region once per region. europe-west3 is where the source registry lives, so pinning there should make every job after the first a local hit. --- .github/workflows/ci.yml | 22 +++++++++++----------- .github/workflows/sdk-preview.yml | 2 +- .github/workflows/specs.yml | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03d2a2af55..b843c98502 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: runs-on: >- ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - && format('gcrunner={0}-security-{1}/family=c3d/cpu=4+8/ram=16+32/disk=80gb', github.run_id, strategy.job-index) + && format('gcrunner={0}-security-{1}/family=c3d/cpu=4+8/ram=16+32/disk=80gb/zone=europe-west3-a', github.run_id, strategy.job-index) || 'ubuntu-latest' }} permissions: contents: read @@ -104,7 +104,7 @@ jobs: runs-on: >- ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - && format('gcrunner={0}-checks-{1}/family=c3d/cpu=4+8/ram=16+32/disk=80gb', github.run_id, strategy.job-index) + && format('gcrunner={0}-checks-{1}/family=c3d/cpu=4+8/ram=16+32/disk=80gb/zone=europe-west3-a', github.run_id, strategy.job-index) || 'ubuntu-latest' }} steps: - name: Checkout repository @@ -179,7 +179,7 @@ jobs: runs-on: >- ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - && format('gcrunner={0}-locale-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb', github.run_id, strategy.job-index) + && format('gcrunner={0}-locale-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb/zone=europe-west3-a', github.run_id, strategy.job-index) || 'ubuntu-latest' }} steps: - name: Check out the repo @@ -278,7 +278,7 @@ jobs: runs-on: >- ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - && format('gcrunner={0}-packages-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb', github.run_id, strategy.job-index) + && format('gcrunner={0}-packages-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb/zone=europe-west3-a', github.run_id, strategy.job-index) || 'ubuntu-latest' }} outputs: matrix: ${{ steps.changed.outputs.matrix }} @@ -350,7 +350,7 @@ jobs: runs-on: >- ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) - && format('gcrunner={0}-package-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb', github.run_id, strategy.job-index) + && format('gcrunner={0}-package-{1}/family=c3d/cpu=2+4/ram=8+16/disk=80gb/zone=europe-west3-a', github.run_id, strategy.job-index) || 'ubuntu-latest' }} strategy: fail-fast: false @@ -385,7 +385,7 @@ jobs: build: name: Build - runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=8/ram=32/disk=100gb + runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=8/ram=32/disk=100gb/zone=europe-west3-a timeout-minutes: 30 steps: - name: Checkout repository @@ -424,7 +424,7 @@ jobs: unit: name: Tests / Unit - runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb + runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb/zone=europe-west3-a timeout-minutes: 15 needs: build permissions: @@ -486,7 +486,7 @@ jobs: e2e_general: name: Tests / E2E / General - runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb + runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb/zone=europe-west3-a timeout-minutes: 15 needs: build permissions: @@ -555,7 +555,7 @@ jobs: e2e_service: name: Tests / E2E / ${{ matrix.database }} (${{ matrix.mode }}) / ${{ matrix.service.name }} - runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=${{ matrix.service.runner == 'e2e-large' && '8+16' || '4+8' }}/ram=${{ matrix.service.runner == 'e2e-large' && '32+64' || '16+32' }}/disk=80gb + runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=${{ matrix.service.runner == 'e2e-large' && '8+16' || '4+8' }}/ram=${{ matrix.service.runner == 'e2e-large' && '32+64' || '16+32' }}/disk=80gb/zone=europe-west3-a timeout-minutes: 20 needs: [build, matrix] permissions: @@ -720,7 +720,7 @@ jobs: e2e_grouped: name: Tests / E2E / ${{ matrix.config.label }} (${{ matrix.mode }}) - runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb + runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb/zone=europe-west3-a timeout-minutes: 35 needs: [build, matrix] permissions: @@ -879,7 +879,7 @@ jobs: benchmark: name: Benchmark if: github.event_name == 'pull_request' || github.event_name == 'push' - runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb + runs-on: gcrunner=${{ github.run_id }}/family=c3d/cpu=4+8/ram=16+32/disk=80gb/zone=europe-west3-a timeout-minutes: 20 needs: build permissions: diff --git a/.github/workflows/sdk-preview.yml b/.github/workflows/sdk-preview.yml index 54ea3e2b66..41863a8393 100644 --- a/.github/workflows/sdk-preview.yml +++ b/.github/workflows/sdk-preview.yml @@ -16,7 +16,7 @@ on: jobs: setup: name: Setup & Build SDK - runs-on: gcrunner=${{ github.run_id }}-setup-${{ strategy.job-index }}/family=c3d/cpu=4/ram=16/disk=80gb + runs-on: gcrunner=${{ github.run_id }}-setup-${{ strategy.job-index }}/family=c3d/cpu=4/ram=16/disk=80gb/zone=europe-west3-a steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml index 76504e73f4..912ea7c870 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs.yml @@ -30,7 +30,7 @@ on: jobs: generate: name: Generate Specs - runs-on: gcrunner=${{ github.run_id }}-generate-${{ strategy.job-index }}/family=c3d/cpu=4/ram=16/disk=80gb + runs-on: gcrunner=${{ github.run_id }}-generate-${{ strategy.job-index }}/family=c3d/cpu=4/ram=16/disk=80gb/zone=europe-west3-a steps: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2