From ea7eeba62ccc8d7bf2d1ce7922195403985e1fc9 Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Mon, 8 Dec 2025 13:52:07 -0500 Subject: [PATCH 1/3] chore: disable flaky tests --- .kokoro/build.sh | 13 ++++++++++++- .../google/cloud/bigquery/it/ITBigQueryTest.java | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 084b07b25b..c5ef3dcf1c 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -71,8 +71,19 @@ 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 + ) + for test_to_skip in "${EXCLUSIONS[@]}"; do + EXCLUDED_TESTS+="!${test_to_skip}," + done + EXCLUDED_TESTS=${EXCLUDED_TESTS::-1} # 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 From 32f552c8966943469a396756ceeddbe1e7a53f40 Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Mon, 8 Dec 2025 13:55:47 -0500 Subject: [PATCH 2/3] chore: simplify test exclusion loop --- .kokoro/build.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.kokoro/build.sh b/.kokoro/build.sh index c5ef3dcf1c..d747b05450 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -78,10 +78,8 @@ graalvm) "ITBigQueryTest#testFastSQLQueryMultiPage" # b/467064659 "ITBigQueryTest#testStatelessQueries" # b/467067105 ) - for test_to_skip in "${EXCLUSIONS[@]}"; do - EXCLUDED_TESTS+="!${test_to_skip}," - done - EXCLUDED_TESTS=${EXCLUDED_TESTS::-1} + 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 -Dtest="${EXCLUDED_TESTS}" RETURN_CODE=$? From d0be268839b654c0e0667a1d08f5f4f2506cc359 Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Mon, 8 Dec 2025 15:10:42 -0500 Subject: [PATCH 3/3] chore: intialize junit classes --- .../test/resources/META-INF/native-image/native-image.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 google-cloud-bigquery/src/test/resources/META-INF/native-image/native-image.properties 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