Skip to content

Commit 98bf674

Browse files
chore: Re-generated to pick up changes from synthtool (#1717)
* 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. * build: migrate to flakybot Source-Author: Justin Beckwith <justin.beckwith@gmail.com> Source-Date: Thu Jan 28 22:22:38 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: d1bb9173100f62c0cfc8f3138b62241e7f47ca6a Source-Link: googleapis/synthtool@d1bb917 * build(java): generate docfx yml on release * feat: generate docfx yml on release * fix: updates name variable * fix: remove non needed resource * fix: update date Source-Author: Emily Ball <emilyball@google.com> Source-Date: Mon Feb 1 15:24:59 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 5de29e9434b63ea6d7e46dc348521c62969af1a1 Source-Link: googleapis/synthtool@5de29e9 * build(java): run linkage monitor as GitHub action Source-Author: Tomo Suzuki <suztomo@google.com> Source-Date: Tue Feb 2 16:20:26 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: e935c9ecb47da0f2e054f5f1845f7cf7c95fa625 Source-Link: googleapis/synthtool@e935c9e * build(java): update autorelease branch name check In response to the new multi release branch changes. Source-Author: Stephanie Wang <stephaniewang526@users.noreply.github.com> Source-Date: Wed Feb 3 15:06:07 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: 140ba24a136c63e7f10a998a63e7898aed63ea7d Source-Link: googleapis/synthtool@140ba24 * chore: remove leading newline from LICENSE Co-authored-by: Christopher Wilcox <crwilcox@google.com> Source-Author: Justin Beckwith <justin.beckwith@gmail.com> Source-Date: Wed Feb 3 15:37:31 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 27b2d4f4674840628d0b75c5941e89c12af4764f Source-Link: googleapis/synthtool@27b2d4f * fix: update repo name java-memcache set for all accidentally Source-Author: Emily Ball <emilyball@google.com> Source-Date: Thu Feb 4 10:39:41 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 692715c0f23a7bb3bfbbaa300f7620ddfa8c47e5 Source-Link: googleapis/synthtool@692715c * build(java): update autorelease script Noticed the workflow was getting skipped on all the release PRs. Updating due to recent update in release-please branch name. Source-Author: Stephanie Wang <stephaniewang526@users.noreply.github.com> Source-Date: Tue Feb 9 19:10:03 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: 2414b817065726eae0bc525346c7e874f969369d Source-Link: googleapis/synthtool@2414b81 * chore: update cloud-rad buckets doclava v2 => staging docFX v3 => prod Source-Author: Emily Ball <emilyball@google.com> Source-Date: Tue Feb 16 17:02:08 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: b416a7befcdbc42de41cf387dcf428f894fb812b Source-Link: googleapis/synthtool@b416a7b * fix: don't log downloads @chingor13 This change keeps Maven 3.6.1 and later from spamming our CI logs with page after page of lists of artifacts it's downloading that makes it much harder to find the actual test output. Source-Author: Elliotte Rusty Harold <elharo@users.noreply.github.com> Source-Date: Thu Feb 18 19:58:59 2021 +0000 Source-Repo: googleapis/synthtool Source-Sha: 1aeca92e4a38f47134cb955f52ea76f84f09ff88 Source-Link: googleapis/synthtool@1aeca92 * build: reduce download junk in log files * fix: less download junk log files * Update build.sh Source-Author: Elliotte Rusty Harold <elharo@users.noreply.github.com> Source-Date: Fri Feb 19 01:42:29 2021 +0000 Source-Repo: googleapis/synthtool Source-Sha: 6946fd71ae9215b0e7ae188f5057df765ee6d7d2 Source-Link: googleapis/synthtool@6946fd7
1 parent 918fc3b commit 98bf674

10 files changed

Lines changed: 102 additions & 64 deletions

File tree

.github/workflows/auto-release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: auto-release
44
jobs:
55
approve:
66
runs-on: ubuntu-latest
7-
if: contains(github.head_ref, 'release-v')
7+
if: contains(github.head_ref, 'release-please')
88
steps:
99
- uses: actions/github-script@v3
1010
with:
@@ -16,8 +16,8 @@ jobs:
1616
return;
1717
}
1818
19-
// only approve PRs like "chore: release <release version>"
20-
if ( !context.payload.pull_request.title.startsWith("chore: release") ) {
19+
// only approve PRs like "chore(master): release <release version>"
20+
if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) {
2121
return;
2222
}
2323

.kokoro/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo ${JOB_TYPE}
2929

3030
# attempt to install 3 times with exponential backoff (starting with 10 seconds)
3131
retry_with_backoff 3 10 \
32-
mvn install -B -V \
32+
mvn install -B -V -ntp \
3333
-DskipTests=true \
3434
-Dclirr.skip=true \
3535
-Denforcer.skip=true \
@@ -60,6 +60,7 @@ javadoc)
6060
;;
6161
integration)
6262
mvn -B ${INTEGRATION_TEST_ARGS} \
63+
-ntp \
6364
-Penable-integration-tests \
6465
-DtrimStackTrace=false \
6566
-Dclirr.skip=true \
@@ -81,6 +82,7 @@ samples)
8182
pushd ${SAMPLES_DIR}
8283
mvn -B \
8384
-Penable-samples \
85+
-ntp \
8486
-DtrimStackTrace=false \
8587
-Dclirr.skip=true \
8688
-Denforcer.skip=true \

.kokoro/dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
3131

3232
# this should run maven enforcer
3333
retry_with_backoff 3 10 \
34-
mvn install -B -V \
34+
mvn install -B -V -ntp \
3535
-DskipTests=true \
3636
-Dclirr.skip=true
3737

@@ -86,4 +86,4 @@ then
8686
else
8787
msg "Errors found. See log statements above."
8888
exit 1
89-
fi
89+
fi

.kokoro/linkage-monitor.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

.kokoro/release/publish_javadoc.cfg

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ env_vars: {
77
value: "docs-staging"
88
}
99

10+
# cloud-rad staging
1011
env_vars: {
1112
key: "STAGING_BUCKET_V2"
12-
value: "docs-staging-v2"
13-
# Production will be at: docs-staging-v2
13+
value: "docs-staging-v2-staging"
1414
}
1515

1616
env_vars: {
@@ -26,7 +26,4 @@ before_action {
2626
keyname: "docuploader_service_account"
2727
}
2828
}
29-
}
30-
31-
# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/<doclet name>
32-
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx"
29+
}

.kokoro/release/publish_javadoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ python3 -m docuploader create-metadata \
7171
--version ${VERSION} \
7272
--language java
7373

74-
# upload docs
74+
# upload docs to staging bucket
7575
python3 -m docuploader upload . \
7676
--credentials ${CREDENTIALS} \
7777
--staging-bucket ${STAGING_BUCKET_V2}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# cloud-rad production
4+
env_vars: {
5+
key: "STAGING_BUCKET_V2"
6+
value: "docs-staging-v2"
7+
}
8+
9+
# Configure the docker image for kokoro-trampoline
10+
env_vars: {
11+
key: "TRAMPOLINE_IMAGE"
12+
value: "gcr.io/cloud-devrel-kokoro-resources/java11"
13+
}
14+
15+
env_vars: {
16+
key: "TRAMPOLINE_BUILD_FILE"
17+
value: "github/google-api-java-client/.kokoro/release/publish_javadoc11.sh"
18+
}
19+
20+
before_action {
21+
fetch_keystore {
22+
keystore_resource {
23+
keystore_config_id: 73713
24+
keyname: "docuploader_service_account"
25+
}
26+
}
27+
}
28+
29+
# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/<doclet name>
30+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx"
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#!/bin/bash
2+
# Copyright 2021 Google Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -eo pipefail
17+
18+
if [[ -z "${CREDENTIALS}" ]]; then
19+
CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account
20+
fi
21+
22+
if [[ -z "${STAGING_BUCKET_V2}" ]]; then
23+
echo "Need to set STAGING_BUCKET_V2 environment variable"
24+
exit 1
25+
fi
26+
27+
# work from the git root directory
28+
pushd $(dirname "$0")/../../
29+
30+
# install docuploader package
31+
python3 -m pip install gcp-docuploader
32+
33+
# compile all packages
34+
mvn clean install -B -q -DskipTests=true
35+
36+
export NAME=google-api-client
37+
export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
38+
39+
# V3 generates docfx yml from javadoc
40+
# generate yml
41+
mvn clean site -B -q -P docFX
42+
43+
pushd target/docfx-yml
44+
45+
# create metadata
46+
python3 -m docuploader create-metadata \
47+
--name ${NAME} \
48+
--version ${VERSION} \
49+
--language java
50+
51+
# upload yml to production bucket
52+
python3 -m docuploader upload . \
53+
--credentials ${CREDENTIALS} \
54+
--staging-bucket ${STAGING_BUCKET_V2} \
55+
--destination-prefix docfx-

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/

synth.metadata

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/google-api-java-client.git",
7-
"sha": "f864c6c4a7a2b9c11b719486c86d9c7c5f86389a"
7+
"sha": "9c1b449d369b4e09230ff459be42a9145901dcea"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "3816b080296d4d52975079fd26c110dd26ba25af"
14+
"sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2"
1515
}
1616
}
1717
],
@@ -38,7 +38,6 @@
3838
".kokoro/continuous/java8.cfg",
3939
".kokoro/continuous/readme.cfg",
4040
".kokoro/dependencies.sh",
41-
".kokoro/linkage-monitor.sh",
4241
".kokoro/nightly/common.cfg",
4342
".kokoro/nightly/integration.cfg",
4443
".kokoro/nightly/java11.cfg",
@@ -70,6 +69,8 @@
7069
".kokoro/release/promote.sh",
7170
".kokoro/release/publish_javadoc.cfg",
7271
".kokoro/release/publish_javadoc.sh",
72+
".kokoro/release/publish_javadoc11.cfg",
73+
".kokoro/release/publish_javadoc11.sh",
7374
".kokoro/release/snapshot.cfg",
7475
".kokoro/release/snapshot.sh",
7576
".kokoro/release/stage.cfg",
@@ -84,4 +85,4 @@
8485
"samples/snapshot/pom.xml",
8586
"samples/snippets/pom.xml"
8687
]
87-
}
88+
}

0 commit comments

Comments
 (0)