Skip to content

Commit d605b81

Browse files
authored
fix(java): make field accessible to address Java 17 issue with arrow (#2165)
* fix(java): troubleshoot Java 17 issue with arrow and exclude nightly tests from presubmits
1 parent db70796 commit d605b81

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.kokoro/build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ nightly-it)
8181
RETURN_CODE=$?
8282
;;
8383
graalvm)
84-
# Run Unit and Integration Tests with Native Image
85-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
84+
# Run Integration Tests with Native Image. Skip running nightly tests in presubmits.
85+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITBigQueryTest -Pnative -Penable-integration-tests test
8686
RETURN_CODE=$?
8787
;;
8888
graalvm17)
89-
# Run Unit and Integration Tests with Native Image. Skip Arrow tests until https://github.com/googleapis/java-bigquery/issues/2060 is fixed.
90-
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test "-Dtest=!com.google.cloud.bigquery.it.ITBigQueryTest#testBQResultSetPaginationSlowQuery+testReadAPIConnectionMultiClose+testReadAPIIterationAndOrder, !com.google.cloud.bigquery.it.ITNightlyBigQueryTest#testIterateAndOrder+testMultipleRuns+testIterateAndOrderDefaultConnSettings, IT*, *ClientTest"
89+
# Run Integration Tests with Native Image. Skip running nightly tests in presubmits.
90+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITBigQueryTest -Pnative -Penable-integration-tests test
9191
RETURN_CODE=$?
9292
;;
9393
samples)

google-cloud-bigquery/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,25 @@
204204
</plugin>
205205
</plugins>
206206
</build>
207+
208+
<profiles>
209+
<profile>
210+
<id>java17</id>
211+
<activation>
212+
<jdk>[17,)</jdk>
213+
</activation>
214+
<build>
215+
<plugins>
216+
<plugin>
217+
<groupId>org.apache.maven.plugins</groupId>
218+
<artifactId>maven-surefire-plugin</artifactId>
219+
<configuration>
220+
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
221+
</configuration>
222+
</plugin>
223+
</plugins>
224+
</build>
225+
226+
</profile>
227+
</profiles>
207228
</project>

0 commit comments

Comments
 (0)