Skip to content

Install Cloud Spanner emulator component in Go PreCommit CI - #39850

Merged
liferoad merged 1 commit into
apache:masterfrom
christogav:spanner-emulator-ci-install
Aug 22, 2026
Merged

Install Cloud Spanner emulator component in Go PreCommit CI#39850
liferoad merged 1 commit into
apache:masterfrom
christogav:spanner-emulator-ci-install

Conversation

@christogav

@christogav christogav commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Adds a step to beam_PreCommit_Go.yml that installs the cloud-spanner-emulator gcloud component before running the Go PreCommit tests. We've previously been unable to run the emulator in docker, however gcloud is available - this installs the spanner emulator so that we can use it for improving tests.

This is split out from a larger in-progress PR (#37991) that replaces the Docker-testcontainer-based Spanner emulator setup in the Go Spanner IO integration tests with a real emulator driven via gcloud emulators spanner start. That workflow is triggered via pull_request_target, which always runs the workflow file from master rather than the PR branch, so this CI change needs to land on master on its own before #37991's checks can pick it up.


  • Mention the appropriate issue in your description, if applicable.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

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-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @liferoad for label build.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@liferoad
liferoad merged commit 2577a6c into apache:master Aug 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants