Skip to content

Commit 00beef3

Browse files
authored
Merge branch 'main' into nodejs-firestore-migration
2 parents a07dc56 + c03d177 commit 00beef3

234 files changed

Lines changed: 295601 additions & 163 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
@@ -11,3 +11,4 @@
1111
/handwritten/cloud-profiler @googleapis/cloud-profiler-team
1212
/handwritten/storage @googleapis/gcs-team
1313
/handwritten/firestore @googleapis/firestore-team
14+
/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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"handwritten/firestore": "8.3.0",
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",

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)