chore: update IsGoogleCloudServerless function to check for Cloud Run Worker Pools - #9226
Merged
Merged
Conversation
…rmining if the environment is GCP Serverless Update the function for determining whether a environment is GCP Serverless to include K_CLOUD_RUN_WORKER_POOLS.
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the isGoogleCloudServerless detection logic to include the CLOUD_RUN_WORKER_POOL environment variable, along with its corresponding JSDoc documentation. The review feedback correctly identifies an invalid internal URL in the newly added documentation and suggests replacing it with the correct public Google Cloud documentation link.
quirogas
approved these changes
Sep 15, 2026
quirogas
left a comment
Contributor
There was a problem hiding this comment.
LGTM!
please fix the linter errors before submitting and make sure the commit message follows conventional commit guidelines.
iennae
approved these changes
Sep 15, 2026
shivanee-p
approved these changes
Sep 15, 2026
Contributor
|
We'll address linting issues in follow up PR. |
Merged
quirogas
added a commit
that referenced
this pull request
Sep 16, 2026
…and harden isAvailable error unwrapping (#9349) Follow-up to #9226 (Fixes #9225). Improve error handling and environment detection. Specifically, it handles abort and timeout errors by mapping them to 'ETIMEDOUT', extracts nested error codes from err.error, and formats unexpected error codes more clearly in warnings
danieljbruce
pushed a commit
that referenced
this pull request
Sep 16, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>gcp-metadata: 9.0.4</summary> ## [9.0.4](gcp-metadata-v9.0.3...gcp-metadata-v9.0.4) (2026-09-16) ### Bug Fixes * **gcp-metadata:** Support CLOUD_RUN_WORKER_POOL residency detection and harden isAvailable error unwrapping ([#9349](#9349)) ([10b654f](10b654f)) * Update IsGoogleCloudServerless function to check for Cloud Run Worker Pools ([#9226](#9226)) ([e0ff8c5](e0ff8c5)) </details> <details><summary>apptopology: 0.3.0</summary> ## [0.3.0](apptopology-v0.2.0...apptopology-v0.3.0) (2026-09-16) ### ⚠ BREAKING CHANGES * upgrade minimum Node.js version to 22 ([#9357](#9357)) ### Features * Upgrade minimum Node.js version to 22 ([#9357](#9357)) ([d2e6a23](d2e6a23)) </details> <details><summary>ftp: 0.3.0</summary> ## [0.3.0](ftp-v0.2.0...ftp-v0.3.0) (2026-09-16) ### ⚠ BREAKING CHANGES * upgrade minimum Node.js version to 22 ([#9357](#9357)) ### Features * Upgrade minimum Node.js version to 22 ([#9357](#9357)) ([d2e6a23](d2e6a23)) </details> <details><summary>tasks: 7.1.1</summary> ## [7.1.1](tasks-v7.1.0...tasks-v7.1.1) (2026-09-16) ### Bug Fixes * Remove unintentionally added file ([#9356](#9356)) ([99f6657](99f6657)) </details> <details><summary>workloadidentity: 0.3.0</summary> ## [0.3.0](workloadidentity-v0.2.0...workloadidentity-v0.3.0) (2026-09-16) ### ⚠ BREAKING CHANGES * upgrade minimum Node.js version to 22 ([#9357](#9357)) ### Features * Upgrade minimum Node.js version to 22 ([#9357](#9357)) ([d2e6a23](d2e6a23)) </details> <details><summary>loyaltycustomers: 0.3.0</summary> ## [0.3.0](loyaltycustomers-v0.2.0...loyaltycustomers-v0.3.0) (2026-09-16) ### ⚠ BREAKING CHANGES * upgrade minimum Node.js version to 22 ([#9357](#9357)) ### Features * Upgrade minimum Node.js version to 22 ([#9357](#9357)) ([d2e6a23](d2e6a23)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
For ##9225 🦕