Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Daniel-Aaron-Bloom
Copy link
Contributor

Description

This adds detection for Cloud Run Jobs via the CLOUD_RUN_JOB env var. This is motivated by bugs like like googleapis/nodejs-logging#1590.

Impact

Cloud Run Jobs are no longer detected as Compute Engine.

Testing

Copied Cloud Run Env detection test.

Checklist

  • 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
  • Appropriate docs were updated
  • Appropriate comments were added, particularly in complex areas or places that require background
  • No new warnings or issues will be generated from this change

Fixes #2119

@Daniel-Aaron-Bloom Daniel-Aaron-Bloom requested review from a team as code owners August 20, 2025 03:50
Copy link

google-cla bot commented Aug 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Aug 20, 2025
@feywind feywind merged commit b659124 into googleapis:main Aug 25, 2025
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCPEnv to detect more GCP services (Cloud Run Job)
3 participants