From b2fed4c08fbae203ae05210794db26d69e569415 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Jul 2021 23:58:55 +0000 Subject: [PATCH 1/5] build: switch to release-please release tagging (#1129) (#997) Requires https://github.com/googleapis/releasetool/pull/338 Source-Link: https://github.com/googleapis/synthtool/commit/1563597d28eca099d6411bbc29ecd09314a80746 Post-Processor: gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:06c970a44680229c1e8cefa701dbc93b80468ec4a34e6968475084e4ec1e2d7d --- .github/.OwlBot.lock.yaml | 2 +- .github/release-please.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9d507eee..b1434427 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-nodejs:latest - digest: sha256:41d5457ff79c3945782ab7e23bf4d617fd7bf3f2b03b6d84808010f7d2e10ca2 + digest: sha256:06c970a44680229c1e8cefa701dbc93b80468ec4a34e6968475084e4ec1e2d7d diff --git a/.github/release-please.yml b/.github/release-please.yml index 85344b92..a1b41da3 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1 +1,2 @@ +handleGHRelease: true releaseType: node From f5a152e5c8663fd64c3df5dfbed9f4a34b5ae284 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 30 Jul 2021 17:10:23 +0000 Subject: [PATCH 2/5] build: update auto-approve config for new validation (#1169) (#998) Co-authored-by: Anthonios Partheniou Source-Link: https://github.com/googleapis/synthtool/commit/df7fc1e3a6df4316920ab221431945cdf9aa7217 Post-Processor: gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:6245a5be4c0406d9b2f04f380d8b88ffe4655df3cdbb57626f8913e8d620f4dd --- .github/.OwlBot.lock.yaml | 2 +- .github/auto-approve.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b1434427..9b2b9550 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-nodejs:latest - digest: sha256:06c970a44680229c1e8cefa701dbc93b80468ec4a34e6968475084e4ec1e2d7d + digest: sha256:6245a5be4c0406d9b2f04f380d8b88ffe4655df3cdbb57626f8913e8d620f4dd diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml index a79ba66c..49cf9422 100644 --- a/.github/auto-approve.yml +++ b/.github/auto-approve.yml @@ -6,7 +6,7 @@ rules: - "CHANGELOG\\.md$" maxFiles: 3 - author: "renovate-bot" - title: "^(fix\\(deps\\)|chore\\(deps\\)):" + title: "^(fix|chore)\\(deps\\):" changedFiles: - - "/package\\.json$" + - "package\\.json$" maxFiles: 2 From 4cf8a7abcb743fdc8edec081e0b2f59be9b4cf3c Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Wed, 4 Aug 2021 16:00:28 -0400 Subject: [PATCH 3/5] chore(nodejs): update client ref docs link in metadata (#999) --- .repo-metadata.json | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 13c2e7dc..ad70a726 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,7 +2,7 @@ "name": "debugger", "name_pretty": "Stackdriver Debugger", "product_documentation": "https://cloud.google.com/debugger", - "client_documentation": "https://googleapis.dev/nodejs/debugger/latest/", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/debug-agent/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/559771", "release_level": "beta", "language": "nodejs", diff --git a/README.md b/README.md index 88e91529..e4ebebce 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/cloud-debug-nodejs/blob/master/LICENSE) -[client-docs]: https://googleapis.dev/nodejs/debugger/latest/ +[client-docs]: https://cloud.google.com/nodejs/docs/reference/debug-agent/latest [product-docs]: https://cloud.google.com/debugger [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [projects]: https://console.cloud.google.com/project From f4dd6993c27fe4e5ed1754392477934337b3f93c Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 9 Aug 2021 12:53:36 -0400 Subject: [PATCH 4/5] fix(build): migrate to using main branch (#1000) --- .github/.OwlBot.lock.yaml | 2 +- .github/generated-files-bot.yml | 4 ++-- .github/workflows/ci.yaml | 2 +- .kokoro/continuous/node10/common.cfg | 2 +- .kokoro/continuous/node10/test.cfg | 2 +- .kokoro/presubmit/node10/common.cfg | 2 +- .kokoro/samples-test.sh | 2 +- .kokoro/system-test.sh | 2 +- .kokoro/test.sh | 2 +- README.md | 18 +++++++++--------- samples/README.md | 4 ++-- src/types/v8.ts | 10 ++++------ 12 files changed, 25 insertions(+), 27 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9b2b9550..144aa60c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-nodejs:latest - digest: sha256:6245a5be4c0406d9b2f04f380d8b88ffe4655df3cdbb57626f8913e8d620f4dd + digest: sha256:72ff93409133b0cf277b8870f859e1ddde62d2e329f655311d4bfc16735d182e diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index 7bb7ce54..992ccef4 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -8,9 +8,9 @@ generatedFiles: - path: '.github/generated-files-bot.+(yml|yaml)' message: '`.github/generated-files-bot.(yml|yaml)` should be updated in [`synthtool`](https://github.com/googleapis/synthtool)' - path: 'README.md' - message: '`README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/master/.readme-partials.yaml' + message: '`README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/main/.readme-partials.yaml' - path: 'samples/README.md' - message: '`samples/README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/master/.readme-partials.yaml' + message: '`samples/README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/main/.readme-partials.yaml' ignoreAuthors: - 'gcf-owl-bot[bot]' - 'yoshi-automation' diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 891c9253..08027826 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ on: push: branches: - - master + - main pull_request: name: ci jobs: diff --git a/.kokoro/continuous/node10/common.cfg b/.kokoro/continuous/node10/common.cfg index 73c401b6..1f623d18 100644 --- a/.kokoro/continuous/node10/common.cfg +++ b/.kokoro/continuous/node10/common.cfg @@ -7,7 +7,7 @@ action { } } -# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token before_action { fetch_keystore { keystore_resource { diff --git a/.kokoro/continuous/node10/test.cfg b/.kokoro/continuous/node10/test.cfg index 468b8c71..609c0cf0 100644 --- a/.kokoro/continuous/node10/test.cfg +++ b/.kokoro/continuous/node10/test.cfg @@ -1,4 +1,4 @@ -# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token before_action { fetch_keystore { keystore_resource { diff --git a/.kokoro/presubmit/node10/common.cfg b/.kokoro/presubmit/node10/common.cfg index 73c401b6..1f623d18 100644 --- a/.kokoro/presubmit/node10/common.cfg +++ b/.kokoro/presubmit/node10/common.cfg @@ -7,7 +7,7 @@ action { } } -# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token +# Bring in codecov.io token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token before_action { fetch_keystore { keystore_resource { diff --git a/.kokoro/samples-test.sh b/.kokoro/samples-test.sh index 950f8483..f249d3e4 100755 --- a/.kokoro/samples-test.sh +++ b/.kokoro/samples-test.sh @@ -39,7 +39,7 @@ if [ -f samples/package.json ]; then npm link ../ npm install cd .. - # If tests are running against master, configure flakybot + # If tests are running against main branch, configure flakybot # to open issues on failures: if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml diff --git a/.kokoro/system-test.sh b/.kokoro/system-test.sh index 319d1e0e..0a840452 100755 --- a/.kokoro/system-test.sh +++ b/.kokoro/system-test.sh @@ -33,7 +33,7 @@ fi npm install -# If tests are running against master, configure flakybot +# If tests are running against main branch, configure flakybot # to open issues on failures: if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml diff --git a/.kokoro/test.sh b/.kokoro/test.sh index b5646aeb..af1ce7e3 100755 --- a/.kokoro/test.sh +++ b/.kokoro/test.sh @@ -21,7 +21,7 @@ export NPM_CONFIG_PREFIX=${HOME}/.npm-global cd $(dirname $0)/.. npm install -# If tests are running against master, configure flakybot +# If tests are running against main branch, configure flakybot # to open issues on failures: if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]] || [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"nightly"* ]]; then export MOCHA_REPORTER_OUTPUT=test_output_sponge_log.xml diff --git a/README.md b/README.md index e4ebebce..ff5981a6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/debug-agent.svg)](https://www.npmjs.org/package/@google-cloud/debug-agent) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/cloud-debug-nodejs/master.svg?style=flat)](https://codecov.io/gh/googleapis/cloud-debug-nodejs) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/cloud-debug-nodejs/main.svg?style=flat)](https://codecov.io/gh/googleapis/cloud-debug-nodejs) @@ -15,7 +15,7 @@ Stackdriver Debug Agent for Node.js A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/cloud-debug-nodejs/blob/master/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/cloud-debug-nodejs/blob/main/CHANGELOG.md). * [Stackdriver Debugger Node.js Client API Reference][client-docs] * [Stackdriver Debugger Documentation][product-docs] @@ -58,12 +58,12 @@ npm install @google-cloud/debug-agent ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/cloud-debug-nodejs/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/cloud-debug-nodejs/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| App | [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/master/samples/app.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/app.js,samples/README.md) | -| Snippets | [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/master/samples/snippets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/snippets.js,samples/README.md) | +| App | [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/main/samples/app.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/app.js,samples/README.md) | +| Snippets | [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/main/samples/snippets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/snippets.js,samples/README.md) | @@ -111,19 +111,19 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/cloud-debug-nodejs/blob/master/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/cloud-debug-nodejs/blob/main/CONTRIBUTING.md). Please note that this `README.md`, the `samples/README.md`, and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) are generated from a central template. To edit one of these files, make an edit -to its template in this -[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). +to its templates in +[directory](https://github.com/googleapis/synthtool). ## License Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/cloud-debug-nodejs/blob/master/LICENSE) +See [LICENSE](https://github.com/googleapis/cloud-debug-nodejs/blob/main/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/debug-agent/latest [product-docs]: https://cloud.google.com/debugger diff --git a/samples/README.md b/samples/README.md index 33e97fae..21444bad 100644 --- a/samples/README.md +++ b/samples/README.md @@ -32,7 +32,7 @@ Before running the samples, make sure you've followed the steps outlined in ### App -View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/master/samples/app.js). +View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/main/samples/app.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/app.js,samples/README.md) @@ -49,7 +49,7 @@ __Usage:__ ### Snippets -View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/master/samples/snippets.js). +View the [source code](https://github.com/googleapis/cloud-debug-nodejs/blob/main/samples/snippets.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/cloud-debug-nodejs&page=editor&open_in_editor=samples/snippets.js,samples/README.md) diff --git a/src/types/v8.ts b/src/types/v8.ts index 2621b8a4..d6321f1d 100644 --- a/src/types/v8.ts +++ b/src/types/v8.ts @@ -15,7 +15,7 @@ // TODO: Determine if the use of snake case should be allowed in this file. /* eslint-disable @typescript-eslint/no-explicit-any */ -// See https://github.com/v8/v8/blob/master/src/debug/mirrors.js +// See https://chromium.googlesource.com/v8/v8.git/+/refs/heads/main/src/inspector/value-mirror.cc export declare type MirrorType = | 'undefined' @@ -133,7 +133,7 @@ export interface PropertyMirror extends Mirror { export interface FrameDetails { // TODO: The debug code expects this to have `arguments` and `locals` fields. - // The code at https://github.com/v8/v8/blob/master/src/debug/mirrors.js + // The code at https://chromium.googlesource.com/v8/v8.git/+/refs/heads/main/src/inspector/value-mirror.cc // seems to suggest that these fields should exist. Make sure that is // the case. arguments: Array<{ @@ -283,8 +283,7 @@ export interface FunctionMirror extends ObjectMirror { context: () => ContextMirror; } -// See https://github.com/v8/v8/blob/master/src/debug/debug.js and -// https://github.com/nodejs/node/blob/master/src/node_contextify.cc +// See https://chromium.googlesource.com/v8/v8.git/+/refs/heads/main/test/debugger/test-api.js export interface ExecutionState { // This interface only contains the elements used within the debug agent // for the full implementation. @@ -323,8 +322,7 @@ export interface DebugEvent { AsyncTaskEvent: DebugEvent; } -// See https://github.com/v8/v8/blob/master/src/debug/debug.js -// TODO: Add the rest of the methods in this interface +// See https://chromium.googlesource.com/v8/v8.git/+/refs/heads/main/test/debugger/test-api.js export interface Debug { DebugEvent: DebugEvent; setListener: (listener: any, opt_data?: any) => void; From 15f385bcdc704406691c29be21177ad40135a8ed Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 9 Aug 2021 17:00:53 +0000 Subject: [PATCH 5/5] chore: release 5.2.8 (#1002) :robot: I have created a release \*beep\* \*boop\* --- ### [5.2.8](https://www.github.com/googleapis/cloud-debug-nodejs/compare/v5.2.7...v5.2.8) (2021-08-09) ### Bug Fixes * **build:** migrate to using main branch ([#1000](https://www.github.com/googleapis/cloud-debug-nodejs/issues/1000)) ([f4dd699](https://www.github.com/googleapis/cloud-debug-nodejs/commit/f4dd6993c27fe4e5ed1754392477934337b3f93c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ package.json | 2 +- samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9aadf19..9e76d0f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Node.js Agent for Google Cloud Debug ChangeLog +### [5.2.8](https://www.github.com/googleapis/cloud-debug-nodejs/compare/v5.2.7...v5.2.8) (2021-08-09) + + +### Bug Fixes + +* **build:** migrate to using main branch ([#1000](https://www.github.com/googleapis/cloud-debug-nodejs/issues/1000)) ([f4dd699](https://www.github.com/googleapis/cloud-debug-nodejs/commit/f4dd6993c27fe4e5ed1754392477934337b3f93c)) + ### [5.2.7](https://www.github.com/googleapis/cloud-debug-nodejs/compare/v5.2.6...v5.2.7) (2021-07-09) diff --git a/package.json b/package.json index cd06ead3..a609f159 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/debug-agent", - "version": "5.2.7", + "version": "5.2.8", "author": "Google Inc.", "description": "Stackdriver Debug Agent for Node.js", "main": "./build/src/index", diff --git a/samples/package.json b/samples/package.json index fa3c7fb8..2a1547d7 100644 --- a/samples/package.json +++ b/samples/package.json @@ -17,7 +17,7 @@ "test": "mocha" }, "dependencies": { - "@google-cloud/debug-agent": "^5.2.7", + "@google-cloud/debug-agent": "^5.2.8", "express": "4.17.1" }, "devDependencies": {