Skip to content

Commit 09ea942

Browse files
authored
Merge branch 'main' into nodejs-error-reporting-migration
2 parents 4dc218a + dc04e0c commit 09ea942

274 files changed

Lines changed: 327568 additions & 9101 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
/handwritten/bigquery @googleapis/bigquery-team
1111
/handwritten/cloud-profiler @googleapis/cloud-profiler-team
1212
/handwritten/storage @googleapis/gcs-team
13+
/handwritten/spanner @googleapis/spanner-team
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
paths:
6+
- 'handwritten/spanner/**'
7+
pull_request:
8+
paths:
9+
- 'handwritten/spanner/**'
10+
name: system-tests-against-emulator
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
services:
16+
emulator:
17+
image: gcr.io/cloud-spanner-emulator/emulator:latest
18+
ports:
19+
- 9010:9010
20+
- 9020:9020
21+
22+
steps:
23+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
24+
- uses: actions/setup-node@v5
25+
with:
26+
node-version: 22
27+
- run: node --version
28+
- run: npm install
29+
working-directory: handwritten/spanner
30+
- run: npm run system-test
31+
working-directory: handwritten/spanner
32+
env:
33+
SPANNER_EMULATOR_HOST: localhost:9010
34+
GCLOUD_PROJECT: emulator-test-project

.release-please-manifest.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"handwritten/error-reporting": "3.0.5",
66
"handwritten/logging-bunyan": "5.1.1",
77
"handwritten/logging-winston": "6.0.1",
8+
"handwritten/spanner": "8.6.0",
89
"handwritten/storage": "7.19.0",
910
"packages/gapic-node-processing": "0.1.7",
1011
"packages/google-ads-admanager": "0.5.0",
@@ -55,6 +56,7 @@
5556
"packages/google-cloud-binaryauthorization": "4.3.0",
5657
"packages/google-cloud-capacityplanner": "0.1.2",
5758
"packages/google-cloud-certificatemanager": "2.1.1",
59+
"packages/google-cloud-ces": "0.1.0",
5860
"packages/google-cloud-channel": "4.1.2",
5961
"packages/google-cloud-chronicle": "0.2.1",
6062
"packages/google-cloud-cloudcontrolspartner": "0.6.1",
@@ -179,12 +181,14 @@
179181
"packages/google-cloud-video-transcoder": "4.4.1",
180182
"packages/google-cloud-videointelligence": "6.2.1",
181183
"packages/google-cloud-vision": "5.3.4",
184+
"packages/google-cloud-visionai": "0.1.0",
182185
"packages/google-cloud-vmmigration": "4.3.1",
183186
"packages/google-cloud-vmwareengine": "2.2.1",
184187
"packages/google-cloud-vpcaccess": "4.2.1",
185188
"packages/google-cloud-webrisk": "5.3.1",
186189
"packages/google-cloud-websecurityscanner": "4.2.1",
187190
"packages/google-cloud-workflows": "5.1.0",
191+
"packages/google-cloud-workloadmanager": "0.1.0",
188192
"packages/google-cloud-workstations": "2.2.1",
189193
"packages/google-container": "6.7.0",
190194
"packages/google-dataflow": "4.1.1",
@@ -225,8 +229,5 @@
225229
"packages/google-storagetransfer": "4.2.1",
226230
"packages/google-streetview-publish": "0.4.1",
227231
"packages/grafeas": "6.1.1",
228-
"packages/typeless-sample-bot": "3.1.1",
229-
"packages/google-cloud-visionai": "0.1.0",
230-
"packages/google-cloud-workloadmanager": "0.1.0",
231-
"packages/google-cloud-ces": "0.1.0"
232+
"packages/typeless-sample-bot": "3.1.1"
232233
}

handwritten/spanner/.OwlBot.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
deep-remove-regex:
17+
- /owl-bot-staging
18+
19+
deep-copy-regex:
20+
- source: /google/spanner/(v.*)/.*-nodejs
21+
dest: /owl-bot-staging/spanner/$1
22+
- source: /google/spanner/(admin/database/v.*)/.*-nodejs
23+
dest: /owl-bot-staging/spanner/$1
24+
- source: /google/spanner/(admin/instance/v.*)/.*-nodejs
25+
dest: /owl-bot-staging/spanner/$1
26+
- source: /google/spanner/(executor/v.*)/.*-nodejs
27+
dest: /owl-bot-staging/spanner/$1
28+
29+
begin-after-commit-hash: 46f25fb1121747b994ff5818963fda84b5e6bfd3
30+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ARG VARIANT="18"
2+
FROM mcr.microsoft.com/devcontainers/typescript-node:${VARIANT}
3+
4+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive
5+
6+
RUN type -p curl >/dev/null || (apt-get install curl -y)
7+
8+
# install gh
9+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
10+
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
11+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
12+
&& apt-get update \
13+
&& apt-get install gh -y
14+
15+
# install gloud sdk
16+
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && apt-get update -y && apt-get install google-cloud-cli -y
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
"build": {
6+
// Sets the run context to one level up instead of the .devcontainer folder.
7+
"args": { "VARIANT": "18" },
8+
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
9+
"dockerfile": "Dockerfile"
10+
},
11+
12+
"postCreateCommand": "bash .devcontainer/postCreate.sh",
13+
14+
"customizations": {
15+
"vscode": {
16+
"settings": {
17+
"debug.javascript.autoAttachFilter":"smart"
18+
},
19+
"extensions": [
20+
"ms-azuretools.vscode-docker"
21+
]
22+
}
23+
}
24+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
echo "Post Create Starting"
2+
3+
npm install
4+
npm test

handwritten/spanner/.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
7+
samples/generated/

handwritten/spanner/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}

handwritten/spanner/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.ts text eol=lf
2+
*.js text eol=lf
3+
protos/* linguist-generated
4+
**/api-extractor.json linguist-language=JSON-with-Comments

0 commit comments

Comments
 (0)