Skip to content
This repository was archived by the owner on Mar 11, 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
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ test/fixtures
build/
docs/
protos/
**/env-tests-logging
samples/generated/
system-test/**/fixtures
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# The yoshi-nodejs team is the default owner for nodejs repositories.
* @googleapis/yoshi-nodejs
* @googleapis/yoshi-nodejs @googleapis/yoshi-nodejs

# The github automation team is the default owner for the auto-approve file.
.github/auto-approve.yml @googleapis/github-automation
17 changes: 0 additions & 17 deletions .github/auto-label.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
# Copyright 2022 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.
requestsize:
enabled: true
staleness:
pullrequest: true
old: 30
extraold: 60
1 change: 0 additions & 1 deletion .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
handleGHRelease: true
releaseType: node
extraFiles: ["src/utils/instrumentation.ts"]
3 changes: 0 additions & 3 deletions .github/sync-repo-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ branchProtectionRules:
requiredStatusCheckContexts:
- "ci/kokoro: Samples test"
- "ci/kokoro: System test"
- docs
- lint
- test (14)
- test (16)
- test (18)
- test (20)
- cla/google
- windows
- OwlBot Post Processor
Expand All @@ -23,4 +21,3 @@ permissionRules:
permission: admin
- team: jsteam
permission: push

23 changes: 9 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,15 @@ jobs:
node-version: 14
- run: npm install
- run: npm run lint
# TODO(https://github.com/googleapis/nodejs-logging/issues/1609)
docs:
runs-on: ubuntu-latest
steps:
- run: echo "Docs are disabled for now"
# docs:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 14
# - run: npm install
# - run: npm run docs
# - uses: JustinBeckwith/linkinator-action@v1
# with:
# paths: docs/
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- run: npm install
- run: npm run docs
- uses: JustinBeckwith/linkinator-action@v1
with:
paths: docs/
20 changes: 0 additions & 20 deletions .kokoro/common.cfg

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

20 changes: 0 additions & 20 deletions .kokoro/continuous/node14/common.cfg

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

1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ test/fixtures
build/
docs/
protos/
**/env-tests-logging
5 changes: 2 additions & 3 deletions .trampolinerc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
# Template for .trampolinerc

# Add required env vars here.
required_envvars+=()
required_envvars+=(
)

# Add env vars which are passed down into the container here.
pass_down_envvars+=(
"ENVIRONMENT"
"RUNTIME"
"AUTORELEASE_PR"
"VERSION"
)
Expand Down
16 changes: 1 addition & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,8 @@ accept your pull requests.

npm run fix

## Running the tests in GCP services

It is possible to end-to-end test this library within specific Google Cloud
Platform environments. The [env-tests-logging](https://github.com/googleapis/env-tests-logging)
submodule contains common tests to ensure correct logging behavior across Google
Cloud Platforms.

Currently, the following environments are supported:

| Platform | Runtime | Try it |
| --------------- | -------------- | ------------------------------ |
| Cloud Functions | Nodejs12 | `nox --session "tests(language='nodejs', platform='functions')"` |
| Cloud Run | COMING SOON | `nox --session "tests(language='nodejs', platform='cloudrun')"` |

[setup]: https://cloud.google.com/nodejs/docs/setup
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=logging.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
[auth]: https://cloud.google.com/docs/authentication/getting-started
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
64 changes: 6 additions & 58 deletions owlbot.py
Original file line number Diff line number Diff line change
@@ -1,69 +1,17 @@
# Copyright 2018 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
#
# http://www.apache.org/licenses/LICENSE-2.0
# 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 script is used to synthesize generated parts of this library."""

import os
import synthtool as s
import synthtool.languages.node as node

node.owlbot_main(
staging_excludes=[
".eslintignore", ".prettierignore", "src/index.ts", "README.md", "package.json",
"system-test/fixtures/sample/src/index.js",
"system-test/fixtures/sample/src/index.ts"],
templates_excludes=[
"src/index.ts",
".eslintignore",
".prettierignore",
"CONTRIBUTING.md",
".github/auto-label.yaml",
".github/release-please.yml",
".github/CODEOWNERS",
".github/sync-repo-settings.yaml"
]
)

# adjust .trampolinerc for environment tests
s.replace(
".trampolinerc",
"required_envvars[^\)]*\)",
"required_envvars+=()"
)
s.replace(
".trampolinerc",
"pass_down_envvars\+\=\(",
'pass_down_envvars+=(\n "ENVIRONMENT"\n "RUNTIME"'
)

# --------------------------------------------------------------------------
# Modify test configs
# --------------------------------------------------------------------------

# add shared environment variables to test configs
s.move(
".kokoro/common_env_vars.cfg",
".kokoro/common.cfg",
merge=lambda src, dst, _, : f"{dst}\n{src}",
)

for path, subdirs, files in os.walk(f".kokoro/continuous"):
for name in files:
if name == "common.cfg":
file_path = os.path.join(path, name)
s.move(
".kokoro/common_env_vars.cfg",
file_path,
merge=lambda src, dst, _, : f"{dst}\n{src}",
)
node.owlbot_main(templates_excludes=[
'README.md'
])
2 changes: 1 addition & 1 deletion protos/protos.d.ts

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

2 changes: 1 addition & 1 deletion protos/protos.js

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

Loading
Loading