Skip to content

Commit

Permalink
fix(java): make field accessible to address Java 17 issue with arrow (#…
Browse files Browse the repository at this point in the history
…2165)

* fix(java): troubleshoot Java 17 issue with arrow and exclude nightly tests from presubmits
  • Loading branch information
mpeddada1 committed Jul 22, 2022
1 parent db70796 commit d605b81
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .kokoro/build.sh
Expand Up @@ -81,13 +81,13 @@ nightly-it)
RETURN_CODE=$?
;;
graalvm)
# Run Unit and Integration Tests with Native Image
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
# Run Integration Tests with Native Image. Skip running nightly tests in presubmits.
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITBigQueryTest -Pnative -Penable-integration-tests test
RETURN_CODE=$?
;;
graalvm17)
# Run Unit and Integration Tests with Native Image. Skip Arrow tests until https://github.com/googleapis/java-bigquery/issues/2060 is fixed.
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"
# Run Integration Tests with Native Image. Skip running nightly tests in presubmits.
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Dtest=ITBigQueryTest -Pnative -Penable-integration-tests test
RETURN_CODE=$?
;;
samples)
Expand Down
21 changes: 21 additions & 0 deletions google-cloud-bigquery/pom.xml
Expand Up @@ -204,4 +204,25 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>java17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>
</configuration>
</plugin>
</plugins>
</build>

</profile>
</profiles>
</project>

0 comments on commit d605b81

Please sign in to comment.