Skip to content

Commit 2bb10b6

Browse files
authored
Merge branch 'main' into batch-labels-allocation
2 parents 5d0a040 + ee09630 commit 2bb10b6

File tree

246 files changed

+2703
-792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+2703
-792
lines changed

.github/blunderbuss.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ assign_issues_by:
5050
- 'api: documentai'
5151
to:
5252
- GoogleCloudPlatform/document-ai-samples-contributors
53+
- labels:
54+
- "api: routeoptimization"
55+
to:
56+
- GoogleCloudPlatform/geo-routeoptimization
5357

5458
assign_prs_by:
5559
- labels:
@@ -89,3 +93,7 @@ assign_prs_by:
8993
- 'api: documentai'
9094
to:
9195
- GoogleCloudPlatform/document-ai-samples-contributors
96+
- labels:
97+
- "api: routeoptimization"
98+
to:
99+
- GoogleCloudPlatform/geo-routeoptimization

.github/workflows/ai-platform-snippets.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
- uses: actions/[email protected]
4444
with:
4545
ref: ${{github.event.pull_request.head.sha}}
46-
- uses: 'google-github-actions/auth@v1.1.1'
46+
- uses: 'google-github-actions/auth@v2.1.3'
4747
with:
4848
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
4949
service_account: '[email protected]'
5050
create_credentials_file: 'true'
5151
access_token_lifetime: 600s
5252
- id: secrets
53-
uses: 'google-github-actions/get-secretmanager-secrets@v1'
53+
uses: 'google-github-actions/get-secretmanager-secrets@v2'
5454
with:
5555
secrets: |-
5656
caip_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-caip-project-id
@@ -62,7 +62,7 @@ jobs:
6262
id: npm-cache-dir
6363
shell: bash
6464
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
65-
- uses: actions/cache@v3
65+
- uses: actions/cache@v4
6666
id: npm-cache
6767
with:
6868
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/dialogflow-cx.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
- uses: actions/[email protected]
4444
with:
4545
ref: ${{github.event.pull_request.head.sha}}
46-
- uses: 'google-github-actions/auth@v1.1.1'
46+
- uses: 'google-github-actions/auth@v2.1.3'
4747
with:
4848
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
4949
service_account: '[email protected]'
5050
create_credentials_file: 'true'
5151
access_token_lifetime: 600s
5252
- id: secrets
53-
uses: 'google-github-actions/get-secretmanager-secrets@v1'
53+
uses: 'google-github-actions/get-secretmanager-secrets@v2'
5454
with:
5555
secrets: |-
5656
agent_id:nodejs-docs-samples-tests/nodejs-docs-samples-dialogflow-cx-agent-id
@@ -62,7 +62,7 @@ jobs:
6262
id: npm-cache-dir
6363
shell: bash
6464
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
65-
- uses: actions/cache@v3
65+
- uses: actions/cache@v4
6666
id: npm-cache
6767
with:
6868
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/flakybot.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ jobs:
2929
id-token: 'write'
3030
steps:
3131
- name: authenticate
32-
uses: 'google-github-actions/auth@v1'
32+
uses: 'google-github-actions/auth@v2'
3333
with:
3434
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
3535
service_account: '[email protected]'
3636
create_credentials_file: 'true'
3737
access_token_lifetime: 600s
3838
- name: download test results
39-
uses: actions/download-artifact@v3
39+
uses: actions/download-artifact@v4
4040
with:
4141
name: test-results
4242
- name: download FlakyBot
4343
run: |
4444
curl -s -L https://github.com/googleapis/repo-automation-bots/archive/refs/tags/flakybot-v${{ env.FLAKYBOT_VERSION }}.tar.gz -o flakybot.tar.gz
4545
tar xzf flakybot.tar.gz
4646
cp -rT repo-automation-bots-flakybot-v${{ env.FLAKYBOT_VERSION}}/packages/flakybot/ .
47-
- uses: actions/setup-go@v4
47+
- uses: actions/setup-go@v5
4848
with:
4949
cache: true
5050
cache-dependency-path: '${{ github.workspace }}/go.sum'

.github/workflows/functions-slack.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,29 @@ jobs:
4242
steps:
4343
- uses: actions/[email protected]
4444
with:
45-
ref: ${{github.event.pull_request.head.sha}}
46-
- uses: 'google-github-actions/auth@v1.1.1'
45+
ref: ${{github.event.pull_request.head.sha}}
46+
- uses: 'google-github-actions/auth@v2.1.3'
4747
with:
48-
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
49-
service_account: '[email protected]'
50-
create_credentials_file: 'true'
51-
access_token_lifetime: 600s
48+
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
49+
service_account: '[email protected]'
50+
create_credentials_file: 'true'
51+
access_token_lifetime: 600s
5252
- id: secrets
53-
uses: 'google-github-actions/get-secretmanager-secrets@v1'
54-
with:
53+
uses: 'google-github-actions/get-secretmanager-secrets@v2'
54+
with:
5555
secrets: |-
5656
slack_secret:nodejs-docs-samples-tests/nodejs-docs-samples-slack-secret
5757
kg_api_key:nodejs-docs-samples-tests/nodejs-docs-samples-kg-api-key
5858
- uses: actions/[email protected]
5959
with:
6060
node-version: 16
6161
- name: Get npm cache directory
62-
id: npm-cache-dir
63-
shell: bash
64-
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
65-
- uses: actions/cache@v3
66-
id: npm-cache
67-
with:
62+
id: npm-cache-dir
63+
shell: bash
64+
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
65+
- uses: actions/cache@v4
66+
id: npm-cache
67+
with:
6868
path: ${{ steps.npm-cache-dir.outputs.dir }}
6969
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
7070
restore-keys: |

.github/workflows/generative-ai-snippets.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
- uses: actions/[email protected]
4747
with:
4848
ref: ${{github.event.pull_request.head.sha}}
49-
- uses: 'google-github-actions/auth@v1.1.1'
49+
- uses: 'google-github-actions/auth@v2.1.3'
5050
with:
5151
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
5252
service_account: '[email protected]'
5353
create_credentials_file: 'true'
5454
access_token_lifetime: 600s
5555
- id: secrets
56-
uses: 'google-github-actions/get-secretmanager-secrets@v1'
56+
uses: 'google-github-actions/get-secretmanager-secrets@v2'
5757
with:
5858
secrets: |-
5959
caip_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-caip-project-id
@@ -66,7 +66,7 @@ jobs:
6666
id: npm-cache-dir
6767
shell: bash
6868
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
69-
- uses: actions/cache@v3
69+
- uses: actions/cache@v4
7070
id: npm-cache
7171
with:
7272
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/iam-deny.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/[email protected]
4747
with:
4848
ref: ${{github.event.pull_request.head.sha}}
49-
- uses: 'google-github-actions/auth@v1.1.1'
49+
- uses: 'google-github-actions/auth@v2.1.3'
5050
with:
5151
workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider'
5252
service_account: '[email protected]'
@@ -59,7 +59,7 @@ jobs:
5959
id: npm-cache-dir
6060
shell: bash
6161
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
62-
- uses: actions/cache@v3
62+
- uses: actions/cache@v4
6363
id: npm-cache
6464
with:
6565
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/security-center-snippets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/[email protected]
4949
with:
5050
ref: ${{github.event.pull_request.head.sha}}
51-
- uses: 'google-github-actions/auth@v1.1.1'
51+
- uses: 'google-github-actions/auth@v2.1.3'
5252
with:
5353
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
5454
service_account: '[email protected]'
@@ -61,7 +61,7 @@ jobs:
6161
id: npm-cache-dir
6262
shell: bash
6363
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
64-
- uses: actions/cache@v3
64+
- uses: actions/cache@v4
6565
id: npm-cache
6666
with:
6767
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/storagetransfer.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
- uses: actions/[email protected]
4747
with:
4848
ref: ${{github.event.pull_request.head.sha}}
49-
- uses: 'google-github-actions/auth@v1.1.1'
49+
- uses: 'google-github-actions/auth@v2.1.3'
5050
with:
5151
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
5252
service_account: '[email protected]'
5353
create_credentials_file: 'true'
5454
access_token_lifetime: 600s
5555
- id: secrets
56-
uses: 'google-github-actions/get-secretmanager-secrets@v1'
56+
uses: 'google-github-actions/get-secretmanager-secrets@v2'
5757
with:
5858
secrets: |-
5959
sts_aws_secret:nodejs-docs-samples-tests/nodejs-docs-samples-storagetransfer-aws
@@ -65,7 +65,7 @@ jobs:
6565
id: npm-cache-dir
6666
shell: bash
6767
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
68-
- uses: actions/cache@v3
68+
- uses: actions/cache@v4
6969
id: npm-cache
7070
with:
7171
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- uses: actions/[email protected]
3535
with:
3636
ref: ${{github.event.pull_request.head.sha}}
37-
- uses: 'google-github-actions/auth@v1.1.1'
37+
- uses: 'google-github-actions/auth@v2.1.3'
3838
with:
3939
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
4040
service_account: '[email protected]'
@@ -47,7 +47,7 @@ jobs:
4747
id: npm-cache-dir
4848
shell: bash
4949
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
50-
- uses: actions/cache@v3
50+
- uses: actions/cache@v4
5151
id: npm-cache
5252
with:
5353
path: ${{ steps.npm-cache-dir.outputs.dir }}

.github/workflows/vision.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
- uses: actions/[email protected]
4747
with:
4848
ref: ${{github.event.pull_request.head.sha}}
49-
- uses: 'google-github-actions/auth@v1.1.1'
49+
- uses: 'google-github-actions/auth@v2.1.3'
5050
with:
5151
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
5252
service_account: '[email protected]'
5353
create_credentials_file: 'true'
5454
access_token_lifetime: 600s
5555
- id: secrets
56-
uses: 'google-github-actions/get-secretmanager-secrets@v1'
56+
uses: 'google-github-actions/get-secretmanager-secrets@v2'
5757
with:
5858
secrets: |-
5959
vision:nodejs-docs-samples-tests/nodejs-docs-samples-vision
@@ -64,7 +64,7 @@ jobs:
6464
id: npm-cache-dir
6565
shell: bash
6666
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
67-
- uses: actions/cache@v3
67+
- uses: actions/cache@v4
6868
id: npm-cache
6969
with:
7070
path: ${{ steps.npm-cache-dir.outputs.dir }}

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ security-center @GoogleCloudPlatform/gcp-security-command-center @GoogleCloudPla
6969
retail @GoogleCloudPlatform/cloud-retail-team @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
7070
media @GoogleCloudPlatform/cloud-media-team @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
7171
healthcare @GoogleCloudPlatform/healthcare-life-sciences @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers
72+
routeoptimization @GoogleCloudPlatform/geo-routeoptimization @GoogleCloudPlatform/nodejs-samples-reviewers @GoogleCloudPlatform/cloud-samples-reviewers

ai-platform/snippets/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"@google-cloud/storage": "^7.0.0"
1919
},
2020
"devDependencies": {
21-
"c8": "^8.0.0",
22-
"chai": "^4.2.0",
21+
"c8": "^10.0.0",
22+
"chai": "^5.0.0",
2323
"mocha": "^10.0.0",
24-
"uuid": "^9.0.0",
25-
"sinon": "^16.0.0"
24+
"uuid": "^10.0.0",
25+
"sinon": "^18.0.0"
2626
}
2727
}
2828

appengine/analytics/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": "16.x.x"
13+
"node": "20.x"
1414
},
1515
"scripts": {
1616
"start": "node app.js",
@@ -19,11 +19,11 @@
1919
},
2020
"dependencies": {
2121
"express": "^4.16.4",
22-
"node-fetch": "^2.6.1"
22+
"node-fetch": "^3.0.0"
2323
},
2424
"devDependencies": {
25-
"c8": "^8.0.0",
25+
"c8": "^10.0.0",
2626
"mocha": "^10.0.0",
27-
"supertest": "^6.0.0"
27+
"supertest": "^7.0.0"
2828
}
2929
}

appengine/building-an-app/build/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"express": "^4.18.2"
2323
},
2424
"devDependencies": {
25-
"c8": "^8.0.0",
25+
"c8": "^10.0.0",
2626
"mocha": "^10.0.0",
27-
"supertest": "^6.0.0"
27+
"supertest": "^7.0.0"
2828
}
2929
}

appengine/building-an-app/update/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"express": "^4.18.2"
2323
},
2424
"devDependencies": {
25-
"c8": "^8.0.0",
25+
"c8": "^10.0.0",
2626
"mocha": "^10.0.0",
2727
"proxyquire": "^2.1.3",
28-
"sinon": "^16.0.0",
29-
"supertest": "^6.0.0"
28+
"sinon": "^18.0.0",
29+
"supertest": "^7.0.0"
3030
}
3131
}

appengine/datastore/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": "16.x.x"
13+
"node": "20.x"
1414
},
1515
"scripts": {
1616
"start": "node app.js",
1717
"system-test": "c8 mocha -p -j 2 --exit test/*.test.js",
1818
"test": "npm run system-test"
1919
},
2020
"dependencies": {
21-
"@google-cloud/datastore": "^8.0.0",
21+
"@google-cloud/datastore": "^9.0.0",
2222
"express": "^4.16.4"
2323
},
2424
"devDependencies": {
25-
"c8": "^8.0.0",
25+
"c8": "^10.0.0",
2626
"mocha": "^10.0.0",
27-
"supertest": "^6.0.0"
27+
"supertest": "^7.0.0"
2828
}
2929
}

appengine/endpoints/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
1111
},
1212
"engines": {
13-
"node": "16.x.x"
13+
"node": "20.x"
1414
},
1515
"scripts": {
1616
"deploy": "gcloud app deploy",
@@ -22,12 +22,12 @@
2222
"express": "^4.16.4"
2323
},
2424
"devDependencies": {
25-
"c8": "^8.0.0",
26-
"chai": "^4.2.0",
25+
"c8": "^10.0.0",
26+
"chai": "^5.0.0",
2727
"mocha": "^10.0.0",
2828
"proxyquire": "^2.1.0",
29-
"sinon": "^16.0.0",
30-
"supertest": "^6.0.0",
29+
"sinon": "^18.0.0",
30+
"supertest": "^7.0.0",
3131
"wait-port": "^1.0.4"
3232
}
3333
}

0 commit comments

Comments
 (0)