-
Notifications
You must be signed in to change notification settings - Fork 647
chore: Nodejs spanner migration #7310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
87f78c9
de4d3bb
09ae515
73aad3e
ab0a98d
d59998d
c8da697
edc9058
c3dee2c
94b2580
c4acfe0
234d61e
6636176
dd54c8b
96a3137
1758075
6042b96
1ec84d1
3c3ef45
99d0126
765d741
23afa89
5be615d
a560479
aa31069
605cb1e
31b63aa
f4ac4de
3643da2
7f5bd56
3aa1eea
c95f726
0c8bcfa
ec3c17a
b32beff
4be729e
13b84be
2216e8d
8c12527
dda9ed8
40f0cb4
51d7e02
1bf71b6
7e6fb77
7c3d4c5
7efe224
93c727d
888ba2e
e543f58
9bbcb75
e009ab0
18ee1c1
1e86447
bbc7e1f
67ac96a
6cc3617
59dcfca
047d2ab
a1eecf7
d4d516b
ccd6137
b97744c
67b7d0d
7301230
dceba27
487c886
af9f9bf
70f0714
e6455de
da78d74
bdf398c
41f746d
92c721b
3158191
e08971b
178c505
438531e
31083f3
5dbafef
71c0abd
73f575f
8fd6efb
b66e531
4e3f1fa
832a62f
110ba1a
3ce1a85
95e2114
0c83900
7044afe
59f2536
56d5c53
fdae503
d20168b
d42f3b0
5f9b817
f21d7ce
5eb54d6
9ec1904
910a36e
41bd3b7
c207af4
1d97b40
989b8a3
746a98e
5d187eb
4fb5f7a
ca529fa
4ed216b
d949874
55b72af
ab9656d
3b56374
9cd6934
2d42e70
a911ef4
86de04b
a371277
5dfdd52
53bfa23
5343338
c9d2ee0
e838eff
61258f3
a1df3e0
a110a17
c8394b8
c4e65c8
2120a03
b6a9e16
e5da70b
ef17317
01963be
379dad7
c0cb094
438ed1a
d668608
24ba2cb
4b57840
90d88e2
d971b54
350ddac
a41f3c4
9c2bdff
195b407
40a85a9
3218a30
691aef1
5fb05d0
754e340
566628e
8050f7f
56a1e57
5fba6ba
204b59a
1142c53
d9a8f61
512b59f
899bc57
85b6165
ffa0941
17c447c
b631e0f
001a1b3
f3bd153
8146141
daaa309
c144067
282da4b
8fa3e82
df3167c
57c1227
49f9aec
73cc8a9
2ab1f20
c492f03
70da8f3
0ed232d
587725f
a098edc
4a336d3
1b1291d
d3d6d5d
e64d18a
a8f5657
0067eaa
e0f3313
6e27c45
24ad294
5147482
df78271
59d7587
b456ec2
2845cb5
bc01812
1addd7c
fe37337
9bffe15
3365138
668b76f
23f3aa4
482e5b8
ec8ccb8
be8c91b
0bb783e
f79105d
0eb83d7
9eb6d1f
1a4a264
dcd1d8b
fdbbce1
c59ff5b
55522cf
90b628d
256de4a
5399851
38f4153
0961ea1
32213d9
6cb6b46
78ea40d
933b1f7
ce19950
73f1eb4
2afc65d
3dfcb21
6531cc5
ea92367
e8ae430
f101d8f
1be82de
68d1414
1b53cf1
d26718d
9395144
d2e4319
184684f
a5780a4
b97660f
f1650a8
311035b
412bbc8
9336614
9bb802d
f15e2a5
2f5a07f
5d2a845
1241229
f4c4a23
d5349cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| name: system-tests-against-emulator | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| services: | ||
| emulator: | ||
| image: gcr.io/cloud-spanner-emulator/emulator:latest | ||
| ports: | ||
| - 9010:9010 | ||
| - 9020:9020 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | ||
| - uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: 22 | ||
| - run: node --version | ||
| - run: npm install | ||
| - run: npm run system-test | ||
| env: | ||
| SPANNER_EMULATOR_HOST: localhost:9010 | ||
| GCLOUD_PROJECT: emulator-test-project | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright 2021 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. | ||
|
|
||
|
|
||
| deep-remove-regex: | ||
| - /owl-bot-staging | ||
|
|
||
| deep-copy-regex: | ||
| - source: /google/spanner/(v.*)/.*-nodejs | ||
| dest: /owl-bot-staging/spanner/$1 | ||
| - source: /google/spanner/(admin/database/v.*)/.*-nodejs | ||
| dest: /owl-bot-staging/spanner/$1 | ||
| - source: /google/spanner/(admin/instance/v.*)/.*-nodejs | ||
| dest: /owl-bot-staging/spanner/$1 | ||
| - source: /google/spanner/(executor/v.*)/.*-nodejs | ||
| dest: /owl-bot-staging/spanner/$1 | ||
|
|
||
| begin-after-commit-hash: 46f25fb1121747b994ff5818963fda84b5e6bfd3 | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ARG VARIANT="18" | ||
| FROM mcr.microsoft.com/devcontainers/typescript-node:${VARIANT} | ||
|
|
||
| RUN apt-get update && export DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| RUN type -p curl >/dev/null || (apt-get install curl -y) | ||
|
|
||
| # install gh | ||
| RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
| && chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
| && 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 \ | ||
| && apt-get update \ | ||
| && apt-get install gh -y | ||
|
|
||
| # install gloud sdk | ||
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
| // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
| { | ||
| "name": "Node.js & TypeScript", | ||
| "build": { | ||
| // Sets the run context to one level up instead of the .devcontainer folder. | ||
| "args": { "VARIANT": "18" }, | ||
| // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
| "dockerfile": "Dockerfile" | ||
| }, | ||
|
|
||
| "postCreateCommand": "bash .devcontainer/postCreate.sh", | ||
|
|
||
| "customizations": { | ||
| "vscode": { | ||
| "settings": { | ||
| "debug.javascript.autoAttachFilter":"smart" | ||
| }, | ||
| "extensions": [ | ||
| "ms-azuretools.vscode-docker" | ||
| ] | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| echo "Post Create Starting" | ||
|
|
||
| npm install | ||
| npm test |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| **/node_modules | ||
| **/coverage | ||
| test/fixtures | ||
| build/ | ||
| docs/ | ||
| protos/ | ||
| samples/generated/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "extends": "./node_modules/gts" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| *.ts text eol=lf | ||
| *.js text eol=lf | ||
| protos/* linguist-generated | ||
| **/api-extractor.json linguist-language=JSON-with-Comments |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| **/*.log | ||
| **/node_modules | ||
| /.coverage | ||
| /coverage | ||
| /.nyc_output | ||
| /docs/ | ||
| /out/ | ||
| /build/ | ||
| system-test/secrets.js | ||
| system-test/*key.json | ||
| *.lock | ||
| .DS_Store | ||
| package-lock.json | ||
| __pycache__ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| // Copyright 2026 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. | ||
| // | ||
| // ** This file is automatically generated by gapic-generator-typescript. ** | ||
| // ** https://github.com/googleapis/gapic-generator-typescript ** | ||
| // ** All changes to this file may be overwritten. ** | ||
|
|
||
| 'use strict'; | ||
|
|
||
| module.exports = { | ||
| opts: { | ||
| readme: './README.md', | ||
| package: './package.json', | ||
| template: './node_modules/jsdoc-fresh', | ||
| recurse: true, | ||
| verbose: true, | ||
| destination: './docs/' | ||
| }, | ||
| plugins: [ | ||
| 'plugins/markdown', | ||
| 'jsdoc-region-tag' | ||
| ], | ||
| source: { | ||
| excludePattern: '(^|\\/|\\\\)[._]', | ||
| include: [ | ||
| 'build/src', | ||
| 'protos' | ||
| ], | ||
| includePattern: '\\.js$' | ||
| }, | ||
| templates: { | ||
| copyright: 'Copyright 2026 Google LLC', | ||
| includeDate: false, | ||
| sourceFiles: false, | ||
| systemName: '@google-cloud/spanner', | ||
| theme: 'lumen', | ||
| default: { | ||
| outputSourceFiles: false | ||
| } | ||
| }, | ||
| markdown: { | ||
| idInHeadings: true | ||
| } | ||
| }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium