From e0ae15b074890084b85fb0bfe5c7059aa8381b1f Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Thu, 8 Oct 2026 13:22:37 -0700 Subject: [PATCH] chore: update @google-cloud/agentplatform doc metadata and Node 22 presubmit configs * Update .repo-metadata.json and .jsdoc.js from @google-cloud/vertexai to @google-cloud/agentplatform with a filename-anchored excludePattern * Fix .kokoro/presubmit/node22/docs.sh (`cd $(dirname $0)/../../..`, `@google-cloud/cloud-rad@^0.4.12`, and `EXIT=$?`) * Migrate continuous-system-test.cfg to node22 * Remove the obsolete node18 presubmit configs since package.json requires Node >= 22.0.0. PiperOrigin-RevId: 996032259 --- .jsdoc.js | 4 +- .kokoro/presubmit/node18/common.cfg | 24 ---------- .kokoro/presubmit/node18/docs.cfg | 16 ------- .kokoro/presubmit/node18/docs.sh | 44 ------------------- .kokoro/presubmit/node18/system-test.cfg | 7 --- .../continuous-system-test.cfg | 0 .kokoro/presubmit/node22/docs.sh | 5 ++- .repo-metadata.json | 6 +-- 8 files changed, 8 insertions(+), 98 deletions(-) delete mode 100644 .kokoro/presubmit/node18/common.cfg delete mode 100644 .kokoro/presubmit/node18/docs.cfg delete mode 100755 .kokoro/presubmit/node18/docs.sh delete mode 100644 .kokoro/presubmit/node18/system-test.cfg rename .kokoro/presubmit/{node18 => node22}/continuous-system-test.cfg (100%) diff --git a/.jsdoc.js b/.jsdoc.js index 313a9680..66438947 100644 --- a/.jsdoc.js +++ b/.jsdoc.js @@ -31,7 +31,7 @@ module.exports = { 'jsdoc-region-tag' ], source: { - excludePattern: '(^|\\/|\\\\)[._]', + excludePattern: '(^|\\/|\\\\)[._][^\\/\\\\]*$', include: [ 'build/src', ], @@ -41,7 +41,7 @@ module.exports = { copyright: 'Copyright 2023 Google LLC', includeDate: false, sourceFiles: false, - systemName: '@google-cloud/vertexai', + systemName: '@google-cloud/agentplatform', theme: 'lumen', default: { outputSourceFiles: false diff --git a/.kokoro/presubmit/node18/common.cfg b/.kokoro/presubmit/node18/common.cfg deleted file mode 100644 index f25baad1..00000000 --- a/.kokoro/presubmit/node18/common.cfg +++ /dev/null @@ -1,24 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-agentplatform/.kokoro/trampoline_v2.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:18-user" -} -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-agentplatform/.kokoro/test.sh" -} \ No newline at end of file diff --git a/.kokoro/presubmit/node18/docs.cfg b/.kokoro/presubmit/node18/docs.cfg deleted file mode 100644 index f0b0e585..00000000 --- a/.kokoro/presubmit/node18/docs.cfg +++ /dev/null @@ -1,16 +0,0 @@ -# doc publications use a Python image. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:18-user" -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "nodejs-agentplatform/.kokoro/trampoline_v2.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-agentplatform/.kokoro/presubmit/node18/docs.sh" -} \ No newline at end of file diff --git a/.kokoro/presubmit/node18/docs.sh b/.kokoro/presubmit/node18/docs.sh deleted file mode 100755 index 80614eee..00000000 --- a/.kokoro/presubmit/node18/docs.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -set -eo pipefail - -if [[ -z "$CREDENTIALS" ]]; then - # if CREDENTIALS are explicitly set, assume we're testing locally - # and don't set NPM_CONFIG_PREFIX. - export NPM_CONFIG_PREFIX=${HOME}/.npm-global - export PATH="$PATH:${NPM_CONFIG_PREFIX}/bin" - cd $(dirname $0)/../.. -fi - -npm install -npm install --no-save @google-cloud/cloud-rad@^0.4.0 - -# Switch to 'fail at end' to allow tar command to complete before exiting. -set +e - -# publish docs to devsite -NO_UPLOAD=1 npx @google-cloud/cloud-rad . cloud-rad - -tar cvfz docs.tar.gz yaml - -if [[ $EXIT -ne 0 ]]; then - echo -e "\n Generate docs failed: npx returned a non-zero exit code. \n" - exit $EXIT -fi - -set -e \ No newline at end of file diff --git a/.kokoro/presubmit/node18/system-test.cfg b/.kokoro/presubmit/node18/system-test.cfg deleted file mode 100644 index 9a6b9bcb..00000000 --- a/.kokoro/presubmit/node18/system-test.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Download resources for system tests (service account key, etc.) -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/nodejs-agentplatform/.kokoro/system-test.sh" -} diff --git a/.kokoro/presubmit/node18/continuous-system-test.cfg b/.kokoro/presubmit/node22/continuous-system-test.cfg similarity index 100% rename from .kokoro/presubmit/node18/continuous-system-test.cfg rename to .kokoro/presubmit/node22/continuous-system-test.cfg diff --git a/.kokoro/presubmit/node22/docs.sh b/.kokoro/presubmit/node22/docs.sh index 80614eee..77e2e0f4 100755 --- a/.kokoro/presubmit/node22/docs.sh +++ b/.kokoro/presubmit/node22/docs.sh @@ -22,17 +22,18 @@ if [[ -z "$CREDENTIALS" ]]; then # and don't set NPM_CONFIG_PREFIX. export NPM_CONFIG_PREFIX=${HOME}/.npm-global export PATH="$PATH:${NPM_CONFIG_PREFIX}/bin" - cd $(dirname $0)/../.. + cd $(dirname $0)/../../.. fi npm install -npm install --no-save @google-cloud/cloud-rad@^0.4.0 +npm install --no-save @google-cloud/cloud-rad@^0.4.12 # Switch to 'fail at end' to allow tar command to complete before exiting. set +e # publish docs to devsite NO_UPLOAD=1 npx @google-cloud/cloud-rad . cloud-rad +EXIT=$? tar cvfz docs.tar.gz yaml diff --git a/.repo-metadata.json b/.repo-metadata.json index 8dfa2727..7da50d6e 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,12 +1,12 @@ { - "name": "vertexai", + "name": "agentplatform", "name_pretty": "Google Cloud Vertex AI", "release_level": "preview", "language": "nodejs", "repo": "googleapis/nodejs-agentplatform", - "distribution_name": "@google-cloud/vertexai", + "distribution_name": "@google-cloud/agentplatform", "api_id": "aiplatform.googleapis.com", "api_shortname": "aiplatform", "library_type": "GAPIC_MANUAL", - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/vertexai/latest" + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/agentplatform/latest" } \ No newline at end of file