Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 8ce670a

Browse files
authored
fix(java): restore native image configurations (#1844)
This configuration was added in https://togithub.com/googleapis/java-bigquerystorage/pull/1488 but was removed by owlbot in https://togithub.com/googleapis/java-bigquerystorage/pull/1543. The build script changes were excluded from https://togithub.com/googleapis/java-bigquerystorage/pull/1362 so this missing configuration was only caught through manual testing by running `mvn test -Pnative`. This PR restores both changes.
1 parent 0d396f4 commit 8ce670a

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/.OwlBot.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ deep-preserve-regex:
8383
- "/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/Exceptions.java"
8484
- "/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java"
8585
- "/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPool.java"
86+
- "/google-cloud-bigquerystorage/src/main/resources/META-INF/native-image/"
8687

8788
deep-copy-regex:
8889
- source: "/google/cloud/bigquery/storage/(v.*)/.*-java/proto-google-.*/src"

.kokoro/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ integration)
6868
verify
6969
RETURN_CODE=$?
7070
;;
71+
graalvm)
72+
# Run Unit and Integration Tests with Native Image
73+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
74+
RETURN_CODE=$?
75+
;;
76+
graalvm17)
77+
# Run Unit and Integration Tests with Native Image
78+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
79+
RETURN_CODE=$?
80+
;;
7181
samples)
7282
SAMPLES_DIR=samples
7383
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"name":"java.lang.Object",
4+
"allDeclaredFields":true,
5+
"queryAllDeclaredMethods":true,
6+
"methods":[{"name":"<init>","parameterTypes":[] }]}
7+
]

0 commit comments

Comments
 (0)