Skip to content

test: run the logging-bunyan system tests in google cloud build#8705

Draft
danieljbruce wants to merge 8 commits into
mainfrom
kokoro-to-gcb-logging-bunyan
Draft

test: run the logging-bunyan system tests in google cloud build#8705
danieljbruce wants to merge 8 commits into
mainfrom
kokoro-to-gcb-logging-bunyan

Conversation

@danieljbruce

Copy link
Copy Markdown
Contributor

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> 🦕

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new Cloud Build configuration (cloudbuild.yaml) for the handwritten/logging-bunyan package to automate dependency installation, system testing, and optional code coverage reporting. The reviewer's feedback focuses on cleaning up the configuration file by removing commented-out boilerplate code, Secret Manager placeholders, and placeholder comments regarding Codecov integration to improve maintainability.

Comment on lines +30 to +38
# If you need specific credentials from Secret Manager, uncomment these:
# - 'GOOGLE_APPLICATION_CREDENTIALS=/secrets/sa-key.json'
id: 'run-system-tests'
waitFor: ['install-dependencies']
# For Secret Manager, uncomment these (adjust secret name and volume path as needed):
# secretEnv: ['SA_KEY']
# volumes:
# - name: 'sa-keys'
# path: '/secrets'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Remove the commented-out boilerplate code and Secret Manager placeholders to keep the configuration clean and maintainable.

  id: 'run-system-tests'
  waitFor: ['install-dependencies']

Comment on lines +52 to +58
# The original codecov.sh script from Kokoro needs to be made available to GCB.
# Options:
# a) Commit codecov.sh into your repo (e.g., .kokoro/codecov.sh) and call it:
# if [ -f .kokoro/codecov.sh ]; then . ./.kokoro/codecov.sh; fi
# b) Replicate its functionality directly in this step.
# c) Store it in a GCS bucket and fetch it.
echo "Codecov reporting (if desired) would be integrated here."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Remove the placeholder comments and echo statement regarding Codecov integration options to keep the build configuration clean.

Comment on lines +63 to +67
# If you use Secret Manager for credentials, uncomment and configure:
# availableSecrets:
# secretManager:
# - versionName: projects/${PROJECT_ID}/secrets/YOUR_SERVICE_ACCOUNT_KEY_SECRET_NAME/versions/latest
# env: 'SA_KEY' # This env var will hold the secret value. Use it as GOOGLE_APPLICATION_CREDENTIALS in step 3 if needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Remove the commented-out Secret Manager configuration template block to keep the configuration file clean and maintainable.

@danieljbruce danieljbruce changed the title Kokoro to gcb logging bunyan test: run the logging-bunyan system tests in google cloud build Jun 23, 2026
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.

1 participant