Skip to content

Make google-cloud-cli apt package installation conditional on rodete - #5419

Open
letitz wants to merge 1 commit into
google:masterfrom
letitz:fix-rodete-gcloud-apt
Open

Make google-cloud-cli apt package installation conditional on rodete#5419
letitz wants to merge 1 commit into
google:masterfrom
letitz:fix-rodete-gcloud-apt

Conversation

@letitz

@letitz letitz commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

When running local environment setup (./local/install_deps.bash) on internal Google Linux workstations (rodete), apt-get fails when attempting to install several optional App Engine and Pub/Sub component packages that are not provided in internal apt repositories. Furthermore, attempting to add the docker-ce repository triggers interactive glogin authentication even when Docker is already installed on the system.

Specifically:

  • google-cloud-cli-app-engine-python, google-cloud-cli-app-engine-python-extras, google-cloud-cli-app-engine-go, and google-cloud-cli-pubsub-emulator apt packages are optional/unavailable on rodete (see internal references b/414408644 and b/484368884).
  • glogin and glinux-add-repo docker-ce-rodete should be skipped if docker is already installed on the machine (if ! which docker).
  • Fixes the pipenv CLI invocation and virtual environment activation sequence in local/install_python_deps_linux.bash.

This pull request updates local/install_deps_linux.bash to inspect $distro_codename and whether docker is installed. On rodete, only google-cloud-cli and google-cloud-cli-datastore-emulator are installed via apt-get, while non-rodete distributions retain the full component package list (including google-cloud-cli-app-engine-go).

Additionally adds local/tests/install_deps_test_linux.bash to test and verify fresh checkout environment installation on Linux.

@letitz
letitz requested a review from a team as a code owner August 11, 2026 02:12
@letitz
letitz force-pushed the fix-rodete-gcloud-apt branch 2 times, most recently from 3115b45 to 3d872a6 Compare August 11, 2026 02:22

@letitz letitz left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's mention the base PR in this PR's descrpition.

Comment thread local/install_python_deps_linux.bash Outdated
Comment thread local/install_python_deps_linux.bash Outdated
@letitz
letitz force-pushed the fix-rodete-gcloud-apt branch from 3d872a6 to 732844a Compare August 11, 2026 02:32
…lation conditional on rodete

When running local environment setup (./local/install_deps.bash) on internal
Google Linux workstations (rodete), apt-get fails when attempting to install
several optional App Engine and Pub/Sub component packages that are not
provided in internal apt repositories. Furthermore, attempting to add the
docker-ce repository triggers interactive glogin authentication even when
docker is already installed on the system.

Specifically:
- google-cloud-cli-app-engine-python, google-cloud-cli-app-engine-python-extras,
  google-cloud-cli-app-engine-go, and google-cloud-cli-pubsub-emulator apt
  packages are optional/unavailable on rodete (see internal references b/414408644
  and b/484368884).
- glogin and glinux-add-repo docker-ce-rodete should be skipped if docker is
  already installed on the machine.
- Fix pipenv CLI invocation in local/install_python_deps_linux.bash.

This commit updates local/install_deps_linux.bash to check $distro_codename and
whether docker is installed. On rodete, only google-cloud-cli and
google-cloud-cli-datastore-emulator are installed via apt-get, while non-rodete
distributions retain the full component package list. Additionally adds
local/tests/install_deps_test_linux.bash to test and verify fresh checkout
setup on Linux.
@letitz
letitz requested a review from ViniciustCosta August 11, 2026 14:53
@letitz

letitz commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks! Onto @ViniciustCosta for review.

@letitz

letitz commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

I'm intentionally ignoring the docker image build failure, since that looks like it doesn't work at head - it also failed on #5420.

@dylanjew

Copy link
Copy Markdown
Collaborator

I'm intentionally ignoring the docker image build failure, since that looks like it doesn't work at head - it also failed on #5420.

That one's been flaky, I've tried retrying the job.

@letitz
letitz requested a review from PauloVLB August 11, 2026 19:38
@letitz

letitz commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

Adding @PauloVLB who has just taken a stab at fixing the image build check in #5423 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants