Skip to content

Commit 7f0bfd4

Browse files
fix: add more native image configurations for Arrow tests and enable native image tests (#2053)
* fix: add more native image configurations for Arrow tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add more necessary configurations * enable native image tests * empty commit * remove exclusion * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * exclude arrow tests in java 17 * restore nightly-it * restore formatting * more formatting changes * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * include tests for exclusion * restore script changes * bring back nightly-it * include IT* and *ClientTest filter from shared-config Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 89962a5 commit 7f0bfd4

File tree

3 files changed

+70
-6
lines changed

3 files changed

+70
-6
lines changed

‎.kokoro/build.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,16 @@ nightly-it)
8080
verify
8181
RETURN_CODE=$?
8282
;;
83-
#graalvm)
84-
# # Run Unit and Integration Tests with Native Image
85-
# mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
86-
# RETURN_CODE=$?
87-
# ;;
83+
graalvm)
84+
# Run Unit and Integration Tests with Native Image
85+
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
86+
RETURN_CODE=$?
87+
;;
88+
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"
91+
RETURN_CODE=$?
92+
;;
8893
samples)
8994
SAMPLES_DIR=samples
9095
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.

‎google-cloud-bigquery/src/main/resources/META-INF/native-image/com.google.cloud/google-cloud-bigquery/reflect-config.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,67 @@
33
"name":"io.netty.buffer.AbstractByteBufAllocator",
44
"queryAllDeclaredMethods":true
55
},
6+
{
7+
"name":"io.netty.buffer.PooledByteBufAllocator",
8+
"fields":[{"name":"directArenas"}]
9+
},
10+
{
11+
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscChunkedArrayQueue",
12+
"queryAllDeclaredMethods":true,
13+
"allDeclaredFields":true,
14+
"queryAllDeclaredConstructors":true
15+
},
16+
{
17+
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueConsumerIndexField",
18+
"fields":[{"name":"consumerIndex"}]
19+
},
20+
{
21+
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerIndexField",
22+
"fields":[{"name":"producerIndex"}]
23+
},
24+
{
25+
"name":"io.netty.util.internal.shaded.org.jctools.queues.MpscArrayQueueProducerLimitField",
26+
"fields":[{"name":"producerLimit"}]
27+
},
28+
{
29+
"name":"java.nio.DirectByteBuffer",
30+
"methods":[{"name":"<init>","parameterTypes":["long","int"] }]
31+
},
632
{
733
"name":"org.apache.arrow.memory.DefaultAllocationManagerFactory",
834
"fields":[{"name":"FACTORY"}]
35+
},
36+
{
37+
"name":"org.apache.arrow.vector.types.pojo.ArrowType",
38+
"allDeclaredFields":true,
39+
"queryAllDeclaredMethods":true,
40+
"queryAllDeclaredConstructors":true
41+
},
42+
{
43+
"name":"org.apache.arrow.vector.types.pojo.ArrowType$Int",
44+
"allDeclaredFields":true,
45+
"queryAllDeclaredMethods":true,
46+
"queryAllDeclaredConstructors":true
47+
},
48+
{
49+
"name":"org.apache.arrow.vector.types.pojo.ArrowType$PrimitiveType",
50+
"allDeclaredFields":true,
51+
"queryAllDeclaredMethods":true
52+
},
53+
{
54+
"name":"io.netty.buffer.AbstractReferenceCountedByteBuf",
55+
"fields":[{"name":"refCnt"}]
56+
},
57+
{
58+
"name":"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueColdProducerFields",
59+
"fields":[{"name":"producerLimit"}]
60+
},
61+
{
62+
"name":"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueConsumerFields",
63+
"fields":[{"name":"consumerIndex"}]
64+
},
65+
{
66+
"name":"io.netty.util.internal.shaded.org.jctools.queues.BaseMpscLinkedArrayQueueProducerFields",
67+
"fields":[{"name":"producerIndex"}]
968
}
1069
]

‎owlbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222
'.kokoro/dependencies.sh',
2323
'codecov.yaml',
2424
'renovate.json',
25-
'.kokoro/build.sh',
25+
'.kokoro/build.sh'
2626
])

0 commit comments

Comments
 (0)