fix: Setup a writable gcloud SDK before installing Spanner emulator component - #39852
Open
christogav wants to merge 1 commit into
Open
fix: Setup a writable gcloud SDK before installing Spanner emulator component#39852christogav wants to merge 1 commit into
christogav wants to merge 1 commit into
Conversation
gcloud components install fails on self-hosted runners with: ERROR: (gcloud.components.install) You cannot perform this action because you do not have permission to modify the Google Cloud SDK installation directory [/usr/local/google-cloud-sdk]. The runner's pre-baked gcloud SDK at /usr/local/google-cloud-sdk isn't writable by the job's user, so any component install there fails regardless of which component. Other workflows in this repo (e.g. beam_CleanUpGCPResources.yml) work around this by running google-github-actions/setup-gcloud first, which provisions its own writable SDK copy instead of relying on the runner's baked-in one.
3 tasks
Contributor
|
Assigning reviewers: R: @Abacn for label build. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #39850.
That PR added a
gcloud components install cloud-spanner-emulator --quietstep tobeam_PreCommit_Go.ymlfor the Go Spanner change-streams IO integration tests. Once merged, the step ran but failed on the self-hosted runner with:The runner's pre-baked gcloud SDK at
/usr/local/google-cloud-sdkisn't writable by the job's user, so any component install against it fails, not just this one. Other workflows in this repo (e.g.beam_CleanUpGCPResources.yml, which installs thecbtcomponent) avoid this by runninggoogle-github-actions/setup-gcloudfirst, which provisions its own writable SDK copy instead of relying on the runner's baked-in install. This PR does the same forbeam_PreCommit_Go.yml.See the Contributor Guide for more tips on how to make review process smoother.