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

test(logging): add kokoro build script for environment tests #3812

Merged
merged 5 commits into from
Mar 19, 2021

Conversation

0xSage
Copy link
Contributor

@0xSage 0xSage commented Mar 13, 2021

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:

  1. 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?
  2. I'm open to putting this script somewhere else (should I nest it under internal/logging or somewhere else?)
    Please don't hestitate to let me know if this can be more cleanly introduced into this repo. Thanks for any pointers.

@0xSage 0xSage self-assigned this Mar 13, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 13, 2021
@product-auto-label product-auto-label bot added the api: logging Issues related to the Cloud Logging API. label Mar 13, 2021
@0xSage 0xSage added priority: p2 Moderately-important priority. Fix may not be included in next release. type: process A process-related concern. May include testing, release, or the like. labels Mar 13, 2021
@0xSage 0xSage marked this pull request as ready for review March 15, 2021 16:40
@0xSage 0xSage requested a review from a team as a code owner March 15, 2021 16:40
@tbpg tbpg requested a review from codyoss March 19, 2021 16:52
env | grep KOKORO

# Set up service account credentials
export GOOGLE_APPLICATION_CREDENTIALS=$KOKORO_KEYSTORE_DIR/72523_go_integration_service_account
Copy link
Member

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.

Copy link
Contributor Author

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?

  1. 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?

  2. I'm putting this environment script under /kokoro directory. Let me know if you want me to nest it somewhere else!

Copy link
Member

Choose a reason for hiding this comment

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

  1. Yes!
  2. Yes!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the PR!

@0xSage 0xSage merged commit 4a0a22e into master Mar 19, 2021
@0xSage 0xSage deleted the environment branch March 19, 2021 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the Cloud Logging API. cla: yes This human has signed the Contributor License Agreement. priority: p2 Moderately-important priority. Fix may not be included in next release. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants