Skip to content

Conversation

Walther
Copy link
Contributor

@Walther Walther commented Jan 16, 2023

What this PR does / why we need it:

The google cloud auth changes https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke require a new plugin to be installed, and forgot to add it to our windows runners during #3431

Additionally, we apply this workaround which sets an environment variable that makes gcloud install command work without additional terminal windows.

Which issue(s) this PR fixes:

Fixes CI windows tests

Special notes for your reviewer:

I'm also adding the --limit-output option to choco commands to reduce progress output spam in our CI logs.

@Walther Walther requested a review from stefreak January 16, 2023 14:19
edvald
edvald previously approved these changes Jan 16, 2023
vvagaytsev
vvagaytsev previously approved these changes Jan 16, 2023
stefreak
stefreak previously approved these changes Jan 16, 2023
Copy link
Member

@stefreak stefreak left a comment

Choose a reason for hiding this comment

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

👍

@stefreak
Copy link
Member

I wonder if garden should install this command, but that would probably be complicated / out of scope as garden would need to parse the kubecontext.

@Walther
Copy link
Contributor Author

Walther commented Jan 16, 2023

Closing as this does not, in fact, fix the windows tests.
(But we should add the --limit-output in the next PR that actually fixes these anyway)

@Walther Walther closed this Jan 16, 2023
@Walther Walther deleted the 2023-01-16-fix-windows-tests branch January 16, 2023 16:58
@stefreak stefreak restored the 2023-01-16-fix-windows-tests branch January 16, 2023 17:03
@stefreak
Copy link
Member

Reopening to be able to use circleci ssh later to investigate this further.

@stefreak stefreak reopened this Jan 16, 2023
@stefreak stefreak changed the title chore(ci): fix windows tests WIP: chore(ci): fix windows tests Jan 16, 2023
@stefreak stefreak marked this pull request as draft January 16, 2023 17:05
@stefreak stefreak changed the title WIP: chore(ci): fix windows tests chore(ci): fix windows tests Jan 16, 2023
@stefreak stefreak marked this pull request as ready for review January 17, 2023 14:54
@stefreak stefreak requested a review from vvagaytsev January 17, 2023 14:54
Copy link
Contributor

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

Nice job! Thanks @Walther and @stefreak! 👍
Please remember to squash :) The squash commit message should include co-authors by default.

@stefreak stefreak merged commit e074a29 into main Jan 17, 2023
@stefreak stefreak deleted the 2023-01-16-fix-windows-tests branch January 17, 2023 15:10
vvagaytsev pushed a commit that referenced this pull request Jan 24, 2023
* chore(ci): fix windows tests

* chore(ci): set CLOUDSDK_PYTHON env variable

The google cloud auth changes https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke require a new plugin to be installed, and forgot to add it to our windows runners during #3431

Additionally, we apply the workaround described in https://stackoverflow.com/questions/57024587/why-the-gcloud-components-update-command-always-show-restarting-command/75137898#75137898 which sets an environment variable that makes gcloud install command work without additional terminal windows.

See also https://stackoverflow.com/a/75137898/1518423

Co-authored-by: Steffen Neubauer <steffen@garden.io>
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.

4 participants