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

ci(spanner): use airlock for presubmit jobs #2199

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

sakthivelmanii
Copy link

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

Copy link

generated-files-bot bot commented Nov 26, 2024

Warning: This pull request is touching the following templated files:

  • .kokoro/presubmit/node14/system-test.cfg - .kokoro files are templated and should be updated in synthtool
  • .kokoro/system-test.sh - .kokoro files are templated and should be updated in synthtool
  • .kokoro/trampoline_v2.sh - .kokoro files are templated and should be updated in synthtool

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/nodejs-spanner API. labels Nov 26, 2024
@sakthivelmanii sakthivelmanii force-pushed the use-airlock-for-presubmit-jobs branch from 137e50c to 08dddf6 Compare November 26, 2024 06:53
@surbhigarg92 surbhigarg92 added the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 5, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 5, 2024
@sakthivelmanii sakthivelmanii force-pushed the use-airlock-for-presubmit-jobs branch from 3ef6509 to ffaf8e6 Compare December 23, 2024 08:54
@sakthivelmanii sakthivelmanii force-pushed the use-airlock-for-presubmit-jobs branch from ffaf8e6 to d851939 Compare December 30, 2024 04:31
Comment on lines +43 to +45
# Setup service account credentials.
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/secret_manager/long-door-651-kokoro-system-test-service-account
export GCLOUD_PROJECT=long-door-651
Copy link
Member

Choose a reason for hiding this comment

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

Does this change (moving the lines) really matter?

@@ -16,11 +16,9 @@

set -eo pipefail

export NPM_CONFIG_PREFIX=${HOME}/.npm-global
Copy link
Member

Choose a reason for hiding this comment

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

Does this change (moving the lines) really matter?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. it depends on which SA Airlock uses. I am using Kokoro SA here. Moving line below makes to use Kokoro GCP pool SA.

@@ -164,7 +164,8 @@ if [[ -n "${KOKORO_BUILD_ID:-}" ]]; then
"KOKORO_GITHUB_PULL_REQUEST_COMMIT"
# For flakybot
"KOKORO_GITHUB_COMMIT_URL"
"KOKORO_GITHUB_PULL_REQUEST_URL"
"KOKORO_GITHUB_PULL_REQUEST_URL",
"ENABLE_AIRLOCK"
Copy link
Member

Choose a reason for hiding this comment

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

USE_AIRLOCK

Copy link
Author

Choose a reason for hiding this comment

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

will change this.

}

env_vars: {
key: "ENABLE_AIRLOCK",
Copy link
Member

Choose a reason for hiding this comment

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

Shall we use USE_AIRLOCK as consistent environment variable?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. I will change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants