Skip to content

Commit 46d6880

Browse files
chore: merge main into generate-libraries-main
2 parents 6312d91 + b8293ef commit 46d6880

251 files changed

Lines changed: 629 additions & 11769 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.kokoro/nightly/common.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
# For google-cloud-java, only test specific handwritten libraries included in the monorepo. This is to
17+
# help speed up the execution as building the entire repo is an expensive operation. Specify the nested
18+
# `google-cloud-*` path (except for grafeas as it doesn't have one) because maven -pl will only build the
19+
# specified folder (i.e. parent folder) and ignore all the related sub-modules inside
20+
google_cloud_java_handwritten_maven_args="java-grafeas,java-vertexai/google-cloud-vertexai,java-resourcemanager/google-cloud-resourcemanager,java-translate/google-cloud-translate"
21+
1622
# Checks that the protobuf compatibility scripts provide non-empty input
1723
function validate_protobuf_compatibility_script_inputs {
1824
# Comma-delimited list of repos to test

.kokoro/nightly/downstream-protobuf-binary-compatibility.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,16 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
7676
# Perform testing on main (with latest changes). Shallow copy as history is not important
7777
git clone "https://github.com/googleapis/${repo}.git" --depth=1
7878
pushd "${repo}"
79-
# Install all repo modules to ~/.m2 (there can be multiple relevant artifacts to test i.e. core, admin, control)
80-
mvn -B -ntp install -T 1C -DskipTests -Dclirr.skip -Denforcer.skip
79+
80+
if [ "${repo}" == "google-cloud-java" ]; then
81+
# The `-am` command also builds anything these libraries depend on (i.e. proto-* and grpc-* sub modules)
82+
mvn clean install -B -V -ntp -T 1C -DskipTests -Dclirr.skip -Denforcer.skip -Dmaven.javadoc.skip \
83+
-pl "${google_cloud_java_handwritten_maven_args}" -am
84+
else
85+
# Install all repo modules to ~/.m2 (there can be multiple relevant artifacts to test i.e. core, admin, control)
86+
mvn clean install -B -V -ntp -T 1C -DskipTests -Dclirr.skip -Denforcer.skip -Dmaven.javadoc.skip
87+
fi
88+
8189

8290
linkage_checker_arguments=""
8391
build_program_arguments "${repo}"

.kokoro/nightly/downstream-protobuf-source-compatibility.sh

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,25 @@ for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
3030

3131
# Compile the Handwritten Library with the Protobuf-Java version to test source compatibility
3232
# Run unit tests to help check for any behavior differences (dependant on coverage)
33-
mvn clean test -B -V -ntp \
34-
-Dclirr.skip=true \
35-
-Denforcer.skip=true \
36-
-Dmaven.javadoc.skip=true \
33+
if [ "${repo}" == "google-cloud-java" ]; then
34+
# The `-am` command also builds anything these libraries depend on (i.e. proto-* and grpc-* sub modules)
35+
mvn clean test -B -V -ntp \
36+
-Dclirr.skip \
37+
-Denforcer.skip \
38+
-Dmaven.javadoc.skip \
39+
-Denforcer.skip \
3740
-Dprotobuf.version=${PROTOBUF_RUNTIME_VERSION} \
41+
-pl "${google_cloud_java_handwritten_maven_args}" -am \
3842
-T 1C
43+
else
44+
mvn clean test -B -V -ntp \
45+
-Dclirr.skip \
46+
-Denforcer.skip \
47+
-Dmaven.javadoc.skip \
48+
-Denforcer.skip \
49+
-Dprotobuf.version=${PROTOBUF_RUNTIME_VERSION} \
50+
-T 1C
51+
fi
52+
3953
popd
4054
done

java-showcase/gapic-showcase/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
<properties>
2020
<gapic-showcase.version>0.35.1</gapic-showcase.version>
21+
<slf4j1-logback.version>1.2.13</slf4j1-logback.version>
2122
</properties>
2223

2324
<build>
@@ -281,13 +282,13 @@
281282
<dependency>
282283
<groupId>ch.qos.logback</groupId>
283284
<artifactId>logback-classic</artifactId>
284-
<version>1.3.15</version>
285+
<version>${slf4j1-logback.version}</version>
285286
<scope>test</scope>
286287
</dependency>
287288
<dependency>
288289
<groupId>ch.qos.logback</groupId>
289290
<artifactId>logback-core</artifactId>
290-
<version>1.3.15</version>
291+
<version>${slf4j1-logback.version}</version>
291292
<scope>test</scope>
292293
</dependency>
293294
</dependencies>

java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider.java

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

java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetCredentialsProvider1.java

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

java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/create/SyncCreateSetEndpoint.java

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

java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/AsyncGetEnum.java

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

java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getenum/SyncGetEnum.java

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

java-showcase/gapic-showcase/samples/snippets/generated/src/main/java/com/google/showcase/v1beta1/compliance/getiampolicy/AsyncGetIamPolicy.java

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

0 commit comments

Comments
 (0)