Skip to content

Commit 2be059a

Browse files
authored
chore: migrate java-bigquerystorage to monorepo
chore: migrate java-bigquerystorage to monorepo
2 parents 0f184c9 + 1816d7b commit 2be059a

File tree

532 files changed

+265648
-164
lines changed

Some content is hidden

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

532 files changed

+265648
-164
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77

88
# java-vertexai has maintainers
99
/java-vertexai/ @googleapis/vertexai-team @googleapis/cloud-sdk-java-team
10+
/java-bigquerystorage/ @googleapis/bigquery-team @googleapis/cloud-sdk-java-team
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
on:
2+
push:
3+
paths-ignore:
4+
- 'tutorials/**'
5+
branches:
6+
- main
7+
pull_request:
8+
name: java-bigquerystorage ci
9+
env:
10+
BUILD_SUBDIR: java-bigquerystorage
11+
jobs:
12+
filter:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
library: ${{ steps.filter.outputs.library }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: dorny/paths-filter@v3
19+
id: filter
20+
with:
21+
filters: |
22+
library:
23+
- 'java-bigquerystorage/**'
24+
units:
25+
needs: filter
26+
if: ${{ needs.filter.outputs.library == 'true' }}
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
java: [11, 17, 21, 25]
32+
steps:
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
34+
- uses: actions/setup-java@v2
35+
with:
36+
distribution: temurin
37+
java-version: ${{matrix.java}}
38+
- run: java -version
39+
- run: .kokoro/build.sh
40+
env:
41+
JOB_TYPE: test
42+
units-java8:
43+
needs: filter
44+
if: ${{ needs.filter.outputs.library == 'true' }}
45+
# Building using Java 17 and run the tests with Java 8 runtime
46+
name: "units (8)"
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
50+
- uses: actions/setup-java@v3
51+
with:
52+
java-version: 8
53+
distribution: zulu
54+
- name: "Set jvm system property environment variable for surefire plugin (unit tests)"
55+
# Maven surefire plugin (unit tests) allows us to specify JVM to run the tests.
56+
# https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm
57+
run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java -P !java17" >> $GITHUB_ENV
58+
shell: bash
59+
- uses: actions/setup-java@v3
60+
with:
61+
java-version: 17
62+
distribution: zulu
63+
- run: .kokoro/build.sh
64+
env:
65+
JOB_TYPE: test
66+
windows:
67+
needs: filter
68+
if: ${{ needs.filter.outputs.library == 'true' }}
69+
runs-on: windows-latest
70+
steps:
71+
- name: Support longpaths
72+
run: git config --system core.longpaths true
73+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
74+
- uses: actions/setup-java@v2
75+
with:
76+
distribution: temurin
77+
java-version: 8
78+
- run: java -version
79+
- run: .kokoro/build.sh
80+
env:
81+
JOB_TYPE: test
82+
dependencies:
83+
needs: filter
84+
if: ${{ needs.filter.outputs.library == 'true' }}
85+
runs-on: ubuntu-latest
86+
strategy:
87+
matrix:
88+
java: [17]
89+
steps:
90+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
91+
- uses: actions/setup-java@v2
92+
with:
93+
distribution: temurin
94+
java-version: ${{matrix.java}}
95+
- run: java -version
96+
- run: .kokoro/dependencies.sh
97+
javadoc:
98+
needs: filter
99+
if: ${{ needs.filter.outputs.library == 'true' }}
100+
runs-on: ubuntu-latest
101+
steps:
102+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
103+
- uses: actions/setup-java@v3
104+
with:
105+
distribution: temurin
106+
java-version: 17
107+
- run: java -version
108+
- run: .kokoro/build.sh
109+
env:
110+
JOB_TYPE: javadoc
111+
lint:
112+
needs: filter
113+
if: ${{ needs.filter.outputs.library == 'true' }}
114+
runs-on: ubuntu-latest
115+
steps:
116+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
117+
- uses: actions/setup-java@v2
118+
with:
119+
distribution: temurin
120+
java-version: 17
121+
- run: java -version
122+
- run: .kokoro/build.sh
123+
env:
124+
JOB_TYPE: lint

.kokoro/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ case ${JOB_TYPE} in
110110
-Djacoco.skip=true \
111111
-DskipUnitTests=true \
112112
-Dmaven.wagon.http.retryHandler.count=5 \
113-
-T 1C ${SUREFIRE_JVM_OPT}
113+
${SUREFIRE_JVM_OPT}
114114

115115
RETURN_CODE=$?
116116
popd

.kokoro/common.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ excluded_modules=(
1919
'google-cloud-pom-parent'
2020
'java-vertexai'
2121
'java-logging'
22+
'java-bigquerystorage'
2223
)
2324

2425
function retry_with_backoff {
@@ -203,7 +204,7 @@ function generate_modified_modules_list() {
203204
if [[ -n $modules ]]; then
204205
modules=$(echo "${modules}" | cut -d '/' -f1 | sort -u)
205206
for module in $modules; do
206-
if [[ ! " ${excluded_modules[*]} " =~ " ${module} " && " ${maven_modules[*]} " =~ " ${module} " ]]; then
207+
if [[ " ${maven_modules[*]} " =~ " ${module} " ]]; then
207208
modified_module_list+=("${module}")
208209
fi
209210
done
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.56.1"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "graalvm-single"
12+
}
13+
14+
# TODO: remove this after we've migrated all tests and scripts
15+
env_vars: {
16+
key: "GCLOUD_PROJECT"
17+
value: "gcloud-devel"
18+
}
19+
20+
env_vars: {
21+
key: "GOOGLE_CLOUD_PROJECT"
22+
value: "gcloud-devel"
23+
}
24+
25+
env_vars: {
26+
key: "GOOGLE_APPLICATION_CREDENTIALS"
27+
value: "secret_manager/java-it-service-account"
28+
}
29+
30+
env_vars: {
31+
key: "SECRET_MANAGER_KEYS"
32+
value: "java-it-service-account"
33+
}
34+
35+
env_vars: {
36+
key: "ENABLE_FLAKYBOT"
37+
value: "false"
38+
}
39+
40+
env_vars: {
41+
key: "BUILD_SUBDIR"
42+
value: "java-bigquerystorage"
43+
}
44+
45+
env_vars: {
46+
key: "INTEGRATION_TEST_ARGS"
47+
value: "-Dit.test=!ITBigQueryWrite*RetryTest -Dsurefire.failIfNoSpecifiedTests=false -Dfailsafe.failIfNoSpecifiedTests=false"
48+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
7+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "integration-single"
12+
}
13+
14+
# TODO: remove this after we've migrated all tests and scripts
15+
env_vars: {
16+
key: "GCLOUD_PROJECT"
17+
value: "gcloud-devel"
18+
}
19+
20+
env_vars: {
21+
key: "GOOGLE_CLOUD_PROJECT"
22+
value: "gcloud-devel"
23+
}
24+
25+
env_vars: {
26+
key: "GOOGLE_APPLICATION_CREDENTIALS"
27+
value: "secret_manager/java-it-service-account"
28+
}
29+
30+
env_vars: {
31+
key: "SECRET_MANAGER_KEYS"
32+
value: "java-it-service-account"
33+
}
34+
35+
env_vars: {
36+
key: "BUILD_SUBDIR"
37+
value: "java-bigquerystorage"
38+
}
39+
40+
env_vars: {
41+
key: "INTEGRATION_TEST_ARGS"
42+
value: "-Dit.test=!ITBigQueryWrite*RetryTest -Dsurefire.failIfNoSpecifiedTests=false -Dfailsafe.failIfNoSpecifiedTests=false"
43+
}

gapic-libraries-bom/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,13 @@
273273
<type>pom</type>
274274
<scope>import</scope>
275275
</dependency>
276+
<dependency>
277+
<groupId>com.google.cloud</groupId>
278+
<artifactId>google-cloud-bigquerystorage-bom</artifactId>
279+
<version>3.21.1-SNAPSHOT</version><!-- {x-version-update:google-cloud-bigquerystorage:current} -->
280+
<type>pom</type>
281+
<scope>import</scope>
282+
</dependency>
276283
<dependency>
277284
<groupId>com.google.cloud</groupId>
278285
<artifactId>google-cloud-billing-bom</artifactId>

generation/check_non_release_please_versions.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ for pomFile in $(find . -mindepth 2 -name pom.xml | sort ); do
88
[[ "${pomFile}" =~ .*google-cloud-pom-parent.* ]] || \
99
[[ "${pomFile}" =~ .*CoverageAggregator.* ]] || \
1010
[[ "${pomFile}" =~ .*java-shared-dependencies*. ]] || \
11+
[[ "${pomFile}" =~ .*java-bigquerystorage.* ]] || \
1112
[[ "${pomFile}" =~ .*.github*. ]]; then
1213
continue
1314
fi

0 commit comments

Comments
 (0)