From 278bdfeb0ff127b1cd33d889efe0d80643245527 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Sun, 23 Aug 2026 00:52:36 +1000 Subject: [PATCH] Install Cloud Spanner emulator component in Go PreCommit CI The Go Spanner IO integration tests are moving from a Docker testcontainer to a real Spanner emulator driven via `gcloud emulators spanner start`, so this workflow's runner now needs that emulator available. gcloud does not ship the "cloud-spanner-emulator" component by default: it's listed as "Not Installed" in the component manifest even on a freshly-installed CLI matching this runner's install method (tarball + install.sh on linux/amd64), so it must be installed explicitly before the Go tests run. --- .github/workflows/beam_PreCommit_Go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/beam_PreCommit_Go.yml b/.github/workflows/beam_PreCommit_Go.yml index 335d531f7435..c7848948f4c5 100644 --- a/.github/workflows/beam_PreCommit_Go.yml +++ b/.github/workflows/beam_PreCommit_Go.yml @@ -85,6 +85,8 @@ jobs: with: java-version: default go-version: default + - name: Install Cloud Spanner emulator + run: gcloud components install cloud-spanner-emulator --quiet - name: run goPreCommit script uses: ./.github/actions/gradle-command-self-hosted-action with: