From 53b69b57062b5ea8687e8c5758ce8a0bf4787e6c Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Tue, 3 Mar 2026 13:28:30 -0800 Subject: [PATCH 1/2] build: update README for deprecation notice --- README.md | 2 ++ owlbot.py | 38 ++++++-------------------------------- 2 files changed, 8 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index ea2c8dc0d..bdf16c491 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +**_THIS REPOSITORY IS DEPRECATED. ALL OF ITS CONTENT AND HISTORY HAS BEEN MOVED TO [GOOGLE-CLOUD-NODE](https://github.com/googleapis/google-cloud-node/tree/main/packages/handwritten)_** + [//]: # "This README.md file is auto-generated, all changes to this file will be lost." [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo diff --git a/owlbot.py b/owlbot.py index 0607a2f0c..49fce7a64 100644 --- a/owlbot.py +++ b/owlbot.py @@ -1,43 +1,17 @@ -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # -# Licensed under the Apache License, Version 2.0 (the "License"); +# 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 # -# http://www.apache.org/licenses/LICENSE-2.0 +# 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. - -import synthtool as s -import synthtool.gcp as gcp import synthtool.languages.node as node -import logging - -logging.basicConfig(level=logging.DEBUG) - -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location='build/src') -s.copy(templates, excludes=['.jsdoc.js', - '.github/release-please.yml', - '.github/sync-repo-settings.yaml', - '.github/workflows/ci.yaml', - '.prettierrc.js', - '.mocharc.js', - '.kokoro/continuous/node14/system-test.cfg', - '.kokoro/presubmit/node14/system-test.cfg', - '.kokoro/release/publish.cfg', - '.kokoro/system-test.sh', - '.kokoro/samples-test.sh', - ]) - -# Create .config directory under $HOME to get around permissions issues -# with resumable upload. -s.replace( - ".circleci/config.yml", - "command: npm run system-test", - "command: mkdir $HOME/.config && npm run system-test") -node.fix() +node.owlbot_main(templates_excludes=[ +'README.md' +]) From 7d9e2149a24cad149efd677e0eb5a4289b9a2d36 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Mar 2026 21:34:07 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .github/release-please.yml | 4 ---- .github/sync-repo-settings.yaml | 10 ++++----- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++------ .kokoro/release/publish.cfg | 4 ++-- .kokoro/samples-test.sh | 2 -- .kokoro/system-test.sh | 6 ----- .mocharc.js | 29 ++++++++++++++++++++++++ .prettierrc.js | 17 ++++++++++++++ 8 files changed, 85 insertions(+), 27 deletions(-) create mode 100644 .mocharc.js create mode 100644 .prettierrc.js diff --git a/.github/release-please.yml b/.github/release-please.yml index 12726f76e..a1b41da3c 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,6 +1,2 @@ handleGHRelease: true releaseType: node -branches: - - handleGHRelease: true - releaseType: node - branch: 4.x \ No newline at end of file diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 8bcfe112d..ccb85ea56 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -1,14 +1,9 @@ branchProtectionRules: - - pattern: 4.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - pattern: main isAdminEnforced: true requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false + requiresStrictStatusChecks: true requiredStatusCheckContexts: - "ci/kokoro: Samples test" - "ci/kokoro: System test" @@ -19,3 +14,6 @@ branchProtectionRules: - cla/google - windows - OwlBot Post Processor +permissionRules: + - team: cloud-sdk-nodejs-team + permission: push diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f547520d5..0ca4d30ab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [14, 16, 18] + node: [14, 16, 18, 20] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} - run: node --version @@ -26,11 +26,25 @@ jobs: - run: npm test env: MOCHA_THROW_DEPRECATION: false + test-script: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 + with: + node-version: 18 + - run: node --version + - run: npm install --engine-strict + working-directory: .github/scripts + - run: npm test + working-directory: .github/scripts + env: + MOCHA_THROW_DEPRECATION: false windows: runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: node-version: 18 - run: npm install --engine-strict @@ -40,9 +54,21 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 with: node-version: 18 - run: npm install - run: npm run lint + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 + with: + node-version: 18 + - run: npm install + - run: npm run docs + - uses: JustinBeckwith/linkinator-action@v1 + with: + paths: docs/ diff --git a/.kokoro/release/publish.cfg b/.kokoro/release/publish.cfg index 85aa13842..495289123 100644 --- a/.kokoro/release/publish.cfg +++ b/.kokoro/release/publish.cfg @@ -18,7 +18,7 @@ before_action { env_vars: { key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,client-library-test-universe-domain-credential" + value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" } # Download trampoline resources. @@ -38,7 +38,7 @@ env_vars: { value: "github/nodejs-storage/.kokoro/publish.sh" } -# Store the packages we uploaded to npmjs.org and their corresponding +# Store the packages we uploaded to npmjs.com and their corresponding # package-lock.jsons in Placer. That way, we have a record of exactly # what we published, and which version of which tools we used to publish # it, which we can use to generate SBOMs and attestations. diff --git a/.kokoro/samples-test.sh b/.kokoro/samples-test.sh index d195fbf7c..528775394 100755 --- a/.kokoro/samples-test.sh +++ b/.kokoro/samples-test.sh @@ -16,8 +16,6 @@ set -eo pipefail -export NPM_CONFIG_PREFIX=${HOME}/.npm-global - # Ensure the npm global directory is writable, otherwise rebuild `npm` mkdir -p $NPM_CONFIG_PREFIX npm config -g ls || npm i -g npm@`npm --version` diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh index 6b69337ef..a90d5cfec 100755 --- a/.kokoro/system-test.sh +++ b/.kokoro/system-test.sh @@ -22,12 +22,6 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/secret_manager/long-door-651-kokoro-system-test-service-account export GCLOUD_PROJECT=long-door-651 -# For universe domain testing -export TEST_UNIVERSE_DOMAIN_CREDENTIAL=${KOKORO_GFILE_DIR}/secret_manager/client-library-test-universe-domain-credential -export TEST_UNIVERSE_DOMAIN=$(gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-domain) -export TEST_UNIVERSE_PROJECT_ID=$(gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-project-id) -export TEST_UNIVERSE_LOCATION=$(gcloud secrets versions access latest --project cloud-devrel-kokoro-resources --secret=client-library-test-universe-storage-location) - cd $(dirname $0)/.. # Run a pre-test hook, if a pre-system-test.sh is in the project diff --git a/.mocharc.js b/.mocharc.js new file mode 100644 index 000000000..0b600509b --- /dev/null +++ b/.mocharc.js @@ -0,0 +1,29 @@ +// Copyright 2020 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 +// +// http://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. +const config = { + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000, + "recursive": true +} +if (process.env.MOCHA_THROW_DEPRECATION === 'false') { + delete config['throw-deprecation']; +} +if (process.env.MOCHA_REPORTER) { + config.reporter = process.env.MOCHA_REPORTER; +} +if (process.env.MOCHA_REPORTER_OUTPUT) { + config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; +} +module.exports = config diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 000000000..d1b95106f --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,17 @@ +// Copyright 2020 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. + +module.exports = { + ...require('gts/.prettierrc.json') +}