-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
test(logging): add kokoro build script for environment tests #3812
Conversation
env | grep KOKORO | ||
|
||
# Set up service account credentials | ||
export GOOGLE_APPLICATION_CREDENTIALS=$KOKORO_KEYSTORE_DIR/72523_go_integration_service_account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Nothing that get logged here is secret today, but I would still just just suggest moving this to the top before set -x is enabled in case something more sensitive shows up in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Tis moved.
@codyoss Are you ok with my using the following?
-
I'm using go_integration_service_account from keystore. I may need to add IAM permissions to deploy CloudRun and CloudFunctions (required by the tests). Is that ok or should I create a new SA for this?
-
I'm putting this environment script under /kokoro directory. Let me know if you want me to nest it somewhere else!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Yes!
- Yes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
This environment test script runs logging & error reporting tests from this submodule. It deploys various GCP services like Cloud Run, Functions, GKE, etc, write logs, and tests whether the log entries are as expected.
Questions:
go_integration_service_account
from keystore. I may need to add IAM permissions to deploy CloudRun and CloudFunctions (required by the tests). Is that ok or should I create a new SA for this?Please don't hestitate to let me know if this can be more cleanly introduced into this repo. Thanks for any pointers.