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.
This commit is contained in:
Chirag Aggarwal committed 2026-09-20 19:23:45 +01:00
1 parent fc52ec251c
commit eb475b5953
3 files changed
+13 -13

No files matched your search

+11 -11
View File
@@ -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:
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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