diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 084b07b25b..d747b05450 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -71,8 +71,17 @@ integration) RETURN_CODE=$? ;; graalvm) + declare -a EXCLUSIONS=( + "ITRemoteUDFTest#testRoutineRemoteUDF" # b/467066596 + "ITBigQueryTest#testCancelJob" # b/467066417 + "ITBigQueryTest#testOpenTelemetryTracingQuery" # b/467063732 + "ITBigQueryTest#testFastSQLQueryMultiPage" # b/467064659 + "ITBigQueryTest#testStatelessQueries" # b/467067105 + ) + printf -v EXCLUDED_TESTS '!%s,' "${EXCLUSIONS[@]}" + EXCLUDED_TESTS=${EXCLUDED_TESTS%,} # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dtest="${EXCLUDED_TESTS}" RETURN_CODE=$? ;; samples) diff --git a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 268199869e..b1ebadfb58 100644 --- a/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -210,6 +210,7 @@ import java.util.logging.Logger; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.Timeout; @@ -4656,6 +4657,7 @@ public void testProjectIDFastSQLQueryWithJobId() throws InterruptedException { } @Test + @Ignore("b/467064827") public void testLocationFastSQLQueryWithJobId() throws InterruptedException { DatasetInfo infoUK = DatasetInfo.newBuilder(UK_DATASET) @@ -7213,6 +7215,7 @@ private TableResult executeSimpleQuery(BigQuery bigQuery) throws InterruptedExce } @Test + @Ignore("b/467068396") public void testTableResultJobIdAndQueryId() throws InterruptedException { // For stateless queries, jobId and queryId are populated based on the following criteria: // 1. For stateless queries, then queryId is populated. @@ -7310,6 +7313,7 @@ public void testStatelessQueriesWithLocation() throws Exception { } @Test + @Ignore("b/467067104") public void testQueryWithTimeout() throws InterruptedException { // Validate that queryWithTimeout returns either TableResult or Job object diff --git a/google-cloud-bigquery/src/test/resources/META-INF/native-image/native-image.properties b/google-cloud-bigquery/src/test/resources/META-INF/native-image/native-image.properties new file mode 100644 index 0000000000..118188ca44 --- /dev/null +++ b/google-cloud-bigquery/src/test/resources/META-INF/native-image/native-image.properties @@ -0,0 +1 @@ +Args = --initialize-at-build-time=org.mockito.junit.MockitoJUnitRunner