Skip to content

helios: set SUPPRESS_GCLOUD_CREDS_WARNING environment variable#32

Merged
mattnworb merged 2 commits intospotify:masterfrom
mattnworb:helios-gcloud-env-var
Nov 14, 2018
Merged

helios: set SUPPRESS_GCLOUD_CREDS_WARNING environment variable#32
mattnworb merged 2 commits intospotify:masterfrom
mattnworb:helios-gcloud-env-var

Conversation

@mattnworb
Copy link
Member

Have to stop using write_jar_script as it does not support passing
in environment variables.

Writing the script inline instead, which I picked up from the scio
formula.

Have to stop using [write_jar_script][0] as it does not support passing
in environment variables.

Writing the script inline instead, which I picked up from the scio
formula.

[0]: https://www.rubydoc.info/github/Homebrew/brew/Pathname:write_jar_script
@mattnworb mattnworb requested review from caipre and davidxia November 14, 2018 00:50
@mattnworb
Copy link
Member Author

before merging, I need to doublecheck how our @spotify-helios-ci-agent robot bumps the version number in each release to make sure I didn't break anything it expects to be there.

(bin+"helios").write <<~EOS
#!/usr/bin/env bash
export SUPPRESS_GCLOUD_CREDS_WARNING=true
exec java -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -jar #{libexec}/#{jarfile} "$@"
Copy link

Choose a reason for hiding this comment

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

Is libexec defined somewhere? Previously it was a literal string.

Copy link
Member Author

Choose a reason for hiding this comment

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

@mattnworb
Copy link
Member Author

confirmed that our internal release script just does sed -i "s/$old_version/$RELEASE_TAG/g" $helios_formula_path, so no problems here

@mattnworb mattnworb merged commit dfb0f6a into spotify:master Nov 14, 2018
@mattnworb mattnworb deleted the helios-gcloud-env-var branch November 14, 2018 16:15
@mattnworb
Copy link
Member Author

apparently the environment variable I am setting in this change is brand new, and not yet in a gcloud oauth2 library release googleapis/google-auth-library-java#207

We'll have to update the version of the library used by helios for this to be picked up.

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

Comments