From d605b8149954e79c05461630915b674e11793889 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 22 Jul 2022 17:24:17 -0400 Subject: [PATCH] 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 --- .kokoro/build.sh | 8 ++++---- google-cloud-bigquery/pom.xml | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 089ca0e23..4b1c5de2b 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -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) diff --git a/google-cloud-bigquery/pom.xml b/google-cloud-bigquery/pom.xml index 3e2982dcb..a543ca7fa 100644 --- a/google-cloud-bigquery/pom.xml +++ b/google-cloud-bigquery/pom.xml @@ -204,4 +204,25 @@ + + + + java17 + + [17,) + + + + + org.apache.maven.plugins + maven-surefire-plugin + + --add-opens=java.base/java.nio=ALL-UNNAMED + + + + + + +