Skip to content

Commit e1eb7ba

Browse files
chore: samples build fix and docs changes (#501)
* 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 * chore(ci): fix typo in restrict presubmit samples ITs to only snapshot Fixes below error in Java repos when googleapis/synthtool#804 was merged: ``` github/java-bigquerystorage/.kokoro/build.sh: line 81: pushd: {SAMPLES_DIR}: No such file or directory ``` Thanks @kolea2 for spotting this in Fusion build logs. cc @chingor13 Source-Author: Stephanie Wang <[email protected]> Source-Date: Mon Oct 26 13:44:04 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: f68649c5f26bcff6817c6d21e90dac0fc71fef8e Source-Link: googleapis/synthtool@f68649c
1 parent 0809d8f commit e1eb7ba

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.kokoro/build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,16 @@ integration)
6969
RETURN_CODE=$?
7070
;;
7171
samples)
72-
if [[ -f samples/pom.xml ]]
72+
SAMPLES_DIR=samples
73+
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
74+
if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]]
7375
then
74-
pushd samples
76+
SAMPLES_DIR=samples/snapshot
77+
fi
78+
79+
if [[ -f ${SAMPLES_DIR}/pom.xml ]]
80+
then
81+
pushd ${SAMPLES_DIR}
7582
mvn -B \
7683
-Penable-samples \
7784
-DtrimStackTrace=false \

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- # Generated by synthtool. DO NOT EDIT! !-->
12
# Code of Conduct
23

34
## Our Pledge
@@ -69,12 +70,12 @@ dispute. If you are unable to resolve the matter for any reason, or if the
6970
behavior is threatening or harassing, report it. We are dedicated to providing
7071
an environment where participants feel welcome and safe.
7172

72-
Reports should be directed to *[PROJECT STEWARD NAME(s) AND EMAIL(s)]*, the
73-
Project Steward(s) for *[PROJECT NAME]*. It is the Project Steward’s duty to
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
7475
receive and address reported violations of the code of conduct. They will then
7576
work with a committee consisting of representatives from the Open Source
7677
Programs Office and the Google Open Source Strategy team. If for any reason you
77-
are uncomfortable reaching out the Project Steward, please email
78+
are uncomfortable reaching out to the Project Steward, please email
7879
7980

8081
We will investigate every complaint, but you may not receive a direct response.

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-bigtable.git",
7-
"sha": "fc741645536e01fac772136bc8346f73ff95e600"
7+
"sha": "0809d8fe3d8a8a59d9fcaf85a2c20fc4eeeacc9e"
88
}
99
},
1010
{
@@ -19,7 +19,7 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "9593c3b5b714cc9b17c445aee8834ac2b4b9348b"
22+
"sha": "f68649c5f26bcff6817c6d21e90dac0fc71fef8e"
2323
}
2424
}
2525
],

0 commit comments

Comments
 (0)