Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 5a2cc39

Browse files
chore: update CoC, samples index, build config (#1333)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(docs): update code of conduct of synthtool and templates Source-Author: Christopher Wilcox <[email protected]> Source-Date: Thu Oct 22 14:22:01 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 5f6ef0ec5501d33c4667885b37a7685a30d41a76 Source-Link: googleapis/synthtool@5f6ef0e * build(node): add KOKORO_BUILD_ARTIFACTS_SUBDIR to env Source-Author: Benjamin E. Coe <[email protected]> Source-Date: Mon Nov 2 15:56:09 2020 -0500 Source-Repo: googleapis/synthtool Source-Sha: ba9918cd22874245b55734f57470c719b577e591 Source-Link: googleapis/synthtool@ba9918c * docs: spelling correction for "targetting" Co-authored-by: Benjamin E. Coe <[email protected]> Source-Author: Samyak Jain <[email protected]> Source-Date: Tue Nov 24 20:27:51 2020 +0530 Source-Repo: googleapis/synthtool Source-Sha: 15013eff642a7e7e855aed5a29e6e83c39beba2a Source-Link: googleapis/synthtool@15013ef * docs: add instructions for authenticating for system tests * docs: add instructions for authenticating for system tests * docs: add phrasing change to README Source-Author: sofisl <[email protected]> Source-Date: Mon Dec 21 13:21:29 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: 363fe305e9ce34a6cd53951c6ee5f997094b54ee Source-Link: googleapis/synthtool@363fe30 * refactor(nodejs): move build cop to flakybot Source-Author: Benjamin E. Coe <[email protected]> Source-Date: Tue Jan 26 16:48:20 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 57c23fa5705499a4181095ced81f0ee0933b64f6 Source-Link: googleapis/synthtool@57c23fa
1 parent cbdbb6c commit 5a2cc39

File tree

8 files changed

+109
-96
lines changed

8 files changed

+109
-96
lines changed

.kokoro/samples-test.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/system-test.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/test.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kokoro/trampoline_v2.sh

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CODE_OF_CONDUCT.md

Lines changed: 87 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,94 @@
1-
# Contributor Code of Conduct
1+
<!-- # Generated by synthtool. DO NOT EDIT! !-->
2+
# Code of Conduct
23

3-
As contributors and maintainers of this project,
4-
and in the interest of fostering an open and welcoming community,
5-
we pledge to respect all people who contribute through reporting issues,
6-
posting feature requests, updating documentation,
7-
submitting pull requests or patches, and other activities.
4+
## Our Pledge
85

9-
We are committed to making participation in this project
10-
a harassment-free experience for everyone,
11-
regardless of level of experience, gender, gender identity and expression,
12-
sexual orientation, disability, personal appearance,
13-
body size, race, ethnicity, age, religion, or nationality.
6+
In the interest of fostering an open and welcoming environment, we as
7+
contributors and maintainers pledge to making participation in our project and
8+
our community a harassment-free experience for everyone, regardless of age, body
9+
size, disability, ethnicity, gender identity and expression, level of
10+
experience, education, socio-economic status, nationality, personal appearance,
11+
race, religion, or sexual identity and orientation.
12+
13+
## Our Standards
14+
15+
Examples of behavior that contributes to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
1423

1524
Examples of unacceptable behavior by participants include:
1625

17-
* The use of sexualized language or imagery
18-
* Personal attacks
19-
* Trolling or insulting/derogatory comments
20-
* Public or private harassment
21-
* Publishing other's private information,
22-
such as physical or electronic
23-
addresses, without explicit permission
24-
* Other unethical or unprofessional conduct.
26+
* The use of sexualized language or imagery and unwelcome sexual attention or
27+
advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Our Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
2540

2641
Project maintainers have the right and responsibility to remove, edit, or reject
27-
comments, commits, code, wiki edits, issues, and other contributions
28-
that are not aligned to this Code of Conduct.
29-
By adopting this Code of Conduct,
30-
project maintainers commit themselves to fairly and consistently
31-
applying these principles to every aspect of managing this project.
32-
Project maintainers who do not follow or enforce the Code of Conduct
33-
may be permanently removed from the project team.
34-
35-
This code of conduct applies both within project spaces and in public spaces
36-
when an individual is representing the project or its community.
37-
38-
Instances of abusive, harassing, or otherwise unacceptable behavior
39-
may be reported by opening an issue
40-
or contacting one or more of the project maintainers.
41-
42-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
43-
available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
42+
comments, commits, code, wiki edits, issues, and other contributions that are
43+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
44+
contributor for other behaviors that they deem inappropriate, threatening,
45+
offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
This Code of Conduct also applies outside the project spaces when the Project
57+
Steward has a reasonable belief that an individual's behavior may have a
58+
negative impact on the project or its community.
59+
60+
## Conflict Resolution
61+
62+
We do not believe that all conflict is bad; healthy debate and disagreement
63+
often yield positive results. However, it is never okay to be disrespectful or
64+
to engage in behavior that violates the project’s code of conduct.
65+
66+
If you see someone violating the code of conduct, you are encouraged to address
67+
the behavior directly with those involved. Many issues can be resolved quickly
68+
and easily, and this gives people more control over the outcome of their
69+
dispute. If you are unable to resolve the matter for any reason, or if the
70+
behavior is threatening or harassing, report it. We are dedicated to providing
71+
an environment where participants feel welcome and safe.
72+
73+
Reports should be directed to *[email protected]*, the
74+
Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
75+
receive and address reported violations of the code of conduct. They will then
76+
work with a committee consisting of representatives from the Open Source
77+
Programs Office and the Google Open Source Strategy team. If for any reason you
78+
are uncomfortable reaching out to the Project Steward, please email
79+
80+
81+
We will investigate every complaint, but you may not receive a direct response.
82+
We will use our discretion in determining when and how to follow up on reported
83+
incidents, which may range from not taking action to permanent expulsion from
84+
the project and project-sponsored spaces. We will notify the accused of the
85+
report and provide them an opportunity to discuss it before any action is taken.
86+
The identity of the reporter will be omitted from the details of the report
87+
supplied to the accused. In potentially harmful situations, such as ongoing
88+
harassment or threats to anyone's safety, we may take action without notice.
89+
90+
## Attribution
91+
92+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
93+
available at
94+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

CONTRIBUTING.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ accept your pull requests.
3737
1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling.
3838
1. Submit a pull request.
3939

40+
### Before you begin
41+
42+
1. [Select or create a Cloud Platform project][projects].
43+
1. [Enable the Stackdriver Trace API][enable_api].
44+
1. [Set up authentication with a service account][auth] so you can access the
45+
API from your local workstation.
46+
47+
4048
## Running the tests
4149

4250
1. [Prepare your environment for Node.js setup][setup].
@@ -51,15 +59,17 @@ accept your pull requests.
5159
npm test
5260

5361
# Run sample integration tests.
54-
gcloud auth application-default login
5562
npm run samples-test
5663

5764
# Run all system tests.
58-
gcloud auth application-default login
5965
npm run system-test
6066

6167
1. Lint (and maybe fix) any changes:
6268

6369
npm run fix
6470

6571
[setup]: https://cloud.google.com/nodejs/docs/setup
72+
[projects]: https://console.cloud.google.com/project
73+
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
74+
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=cloudtrace.googleapis.com
75+
[auth]: https://cloud.google.com/docs/authentication/getting-started

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ The Trace Agent does not support bundled server code, so bundlers like webpack o
212212

213213
## Samples
214214

215-
Samples are in the [`samples/`](https://github.com/googleapis/cloud-trace-nodejs/tree/master/samples) directory. The samples' `README.md`
216-
has instructions for running the samples.
215+
Samples are in the [`samples/`](https://github.com/googleapis/cloud-trace-nodejs/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample.
217216

218217
| Sample | Source Code | Try it |
219218
| --------------------------- | --------------------------------- | ------ |
@@ -231,7 +230,7 @@ Our client libraries follow the [Node.js release schedule](https://nodejs.org/en
231230
Libraries are compatible with all current _active_ and _maintenance_ versions of
232231
Node.js.
233232

234-
Client libraries targetting some end-of-life versions of Node.js are available, and
233+
Client libraries targeting some end-of-life versions of Node.js are available, and
235234
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).
236235
The dist-tags follow the naming convention `legacy-(version)`.
237236

synth.metadata

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/cloud-trace-nodejs.git",
7-
"sha": "dd67d0585b2d6a3cb900d7996a3d1043f9be7fee"
7+
"sha": "cbdbb6c4e75881a497393733563d7e42a4c3805f"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "901ddd44e9ef7887ee681b9183bbdea99437fdcc"
14+
"sha": "57c23fa5705499a4181095ced81f0ee0933b64f6"
1515
}
1616
}
17-
],
18-
"generatedFiles": [
19-
".eslintrc.json",
20-
".gitattributes",
21-
".github/ISSUE_TEMPLATE/bug_report.md",
22-
".github/ISSUE_TEMPLATE/feature_request.md",
23-
".github/ISSUE_TEMPLATE/support_request.md",
24-
".github/PULL_REQUEST_TEMPLATE.md",
25-
".github/release-please.yml",
26-
".kokoro/.gitattributes",
27-
".kokoro/common.cfg",
28-
".kokoro/continuous/node10/common.cfg",
29-
".kokoro/continuous/node10/docs.cfg",
30-
".kokoro/continuous/node10/test.cfg",
31-
".kokoro/continuous/node12/common.cfg",
32-
".kokoro/continuous/node12/lint.cfg",
33-
".kokoro/continuous/node12/samples-test.cfg",
34-
".kokoro/continuous/node12/system-test.cfg",
35-
".kokoro/continuous/node12/test.cfg",
36-
".kokoro/docs.sh",
37-
".kokoro/lint.sh",
38-
".kokoro/populate-secrets.sh",
39-
".kokoro/presubmit/node10/common.cfg",
40-
".kokoro/presubmit/node12/common.cfg",
41-
".kokoro/presubmit/node12/samples-test.cfg",
42-
".kokoro/presubmit/node12/system-test.cfg",
43-
".kokoro/presubmit/node12/test.cfg",
44-
".kokoro/publish.sh",
45-
".kokoro/release/docs-devsite.cfg",
46-
".kokoro/release/docs-devsite.sh",
47-
".kokoro/release/docs.cfg",
48-
".kokoro/release/docs.sh",
49-
".kokoro/release/publish.cfg",
50-
".kokoro/samples-test.sh",
51-
".kokoro/system-test.sh",
52-
".kokoro/test.bat",
53-
".kokoro/test.sh",
54-
".kokoro/trampoline.sh",
55-
".kokoro/trampoline_v2.sh",
56-
".mocharc.js",
57-
".prettierrc.js",
58-
".trampolinerc",
59-
"CODE_OF_CONDUCT.md",
60-
"CONTRIBUTING.md",
61-
"LICENSE",
62-
"README.md",
63-
"api-extractor.json",
64-
"renovate.json",
65-
"samples/README.md"
6617
]
6718
}

0 commit comments

Comments
 (0)