Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/release-trigger.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
enabled: true
multiScmName: nodejs-spanner
multiScmName: nodejs-spanner
8 changes: 1 addition & 7 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ branchProtectionRules:
requiredStatusCheckContexts:
- "ci/kokoro: Samples test"
- "ci/kokoro: System test"
- "ci/kokoro: System test with Regular Sessions"
- lint
- test (18)
- test (20)
- test (22)
- cla/google
- windows
- OwlBot Post Processor
- Build with Airlock
permissionRules:
- team: yoshi-admins
permission: admin
- team: jsteam-admins
permission: admin
- team: jsteam
- team: cloud-sdk-nodejs-team
permission: push
6 changes: 0 additions & 6 deletions .kokoro/samples-test.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions .kokoro/trampoline_v2.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**_THIS REPOSITORY IS DEPRECATED. ALL OF ITS CONTENT AND HISTORY HAS BEEN MOVED TO [GOOGLE-CLOUD-NODE](https://github.com/googleapis/google-cloud-node/tree/main/packages/handwritten)_**

[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
Expand Down
65 changes: 5 additions & 60 deletions owlbot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2021 Google LLC
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# 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
#
Expand All @@ -11,62 +11,7 @@
# 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.

import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.node as node
import logging
from pathlib import Path
from synthtool import _tracked_paths
from synthtool import shell
import shutil

staging = Path("owl-bot-staging")

if staging.is_dir():
logging.info(f"Copying files from staging directory ${staging}.")

# nodejs-spanner is composed of 3 APIs: SpannerClient, SpannerAdminDatabase and
# SpannerAdminInstance, all 3 are exported in src/v1/index.js
# Excluding auto-generated system test since Spanner has its own packing test
excludes=["src/index.ts", "src/v1/index.ts", "README.md", "package.json",
"system-test/*", "system-test/fixtures/sample/*", "system-test/fixtures/sample/src/*",
"tsconfig.json"]

# Copy spanner library.
for version in ['v1']:
library = staging / version
_tracked_paths.add(library)
s.copy([library], excludes=excludes)

excludes += ["webpack.config.js", ".jsdoc.js"]

# Copy the admin/database library.
for version in ['v1']:
library = staging / 'admin' / 'database' / version
_tracked_paths.add(library)
s.copy([library], excludes=excludes)

# Copy the admin/instance library.
for version in ['v1']:
library = staging / 'admin' / 'instance' / version
_tracked_paths.add(library)
s.copy([library], excludes=excludes)

# Copy the spanner/executor library.
for version in ['v1']:
library = staging / 'executor' / version
_tracked_paths.add(library)
s.copy([library], excludes=excludes)

# The staging directory should never be merged into the main branch.
shutil.rmtree(staging)

common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src')
s.copy(templates, excludes=[".kokoro/samples-test.sh", ".kokoro/trampoline_v2.sh", ".github/release-trigger.yml", ".github/sync-repo-settings.yaml"])

node.postprocess_gapic_library_hermetic()

# Remove generated samples from veneer library:
shell.run(('rm', '-rf', 'samples/generated'), hide_output = False)
node.owlbot_main(templates_excludes=[
'README.md'
])
Loading