Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch travis gcloud installation to use noninteractive mode #6974

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

droazen
Copy link
Contributor

@droazen droazen commented Nov 19, 2020

Our travis gcloud installation scripts relied on piping interactive responses
into the stdin of the installer, which is brittle.

This patch changes our script to instead run the installer in non-interactive mode.

@gatk-bot
Copy link

Travis reported job failures from build 32208
Failures in the following jobs:

Test Type JDK Job ID Logs
cloud openjdk8 32208.1 logs

@droazen
Copy link
Contributor Author

droazen commented Nov 19, 2020

Unfortunately we are still getting the error about gcloud.py not found so it seems that the piped installer responses were not the problem:

python3: can't open file '/home/travis/gcloud/google-cloud-sdk/lib/gcloud.py': [Errno 2] No such file or directory

This file is definitely present in a fresh gcloud installation I just created for testing purposes...

@droazen droazen force-pushed the dr_fix_travis_gcloud_install branch from 4e9c187 to 45065f3 Compare November 19, 2020 22:01
@gatk-bot
Copy link

Travis reported job failures from build 32216
Failures in the following jobs:

Test Type JDK Job ID Logs
cloud openjdk8 32216.1 logs

@droazen droazen changed the title Fix gcloud installation on travis Try to fix gcloud installation on travis Nov 19, 2020
@gatk-bot
Copy link

Travis reported job failures from build 32213
Failures in the following jobs:

Test Type JDK Job ID Logs
cloud openjdk8 32213.1 logs

@droazen droazen force-pushed the dr_fix_travis_gcloud_install branch from 2865a7f to e1c5930 Compare November 25, 2020 18:33
Our travis gcloud installation scripts relied on piping interactive responses
into the stdin of the installer, which is brittle.

This patch changes our script to instead run the installer in non-interactive mode.
@droazen droazen force-pushed the dr_fix_travis_gcloud_install branch from e1c5930 to 93029af Compare November 25, 2020 18:37
@droazen droazen changed the title Try to fix gcloud installation on travis Switch travis gcloud installation to use noninteractive mode Nov 25, 2020
@droazen
Copy link
Contributor Author

droazen commented Nov 25, 2020

@lbergelson I've refactored this PR to just keep the switch to using non-interactive mode in the gcloud installer, which I think is worth merging to guard against future issues. Can you re-review?

@droazen droazen merged commit a043550 into master Nov 25, 2020
@droazen droazen deleted the dr_fix_travis_gcloud_install branch November 25, 2020 20:42
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.

3 participants