Skip to content

Commit cd29597

Browse files
authored
build: Run scala tests against release build of native code (#2541)
1 parent 7148d1c commit cd29597

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/actions/java-test/action.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ inputs:
4141
runs:
4242
using: "composite"
4343
steps:
44-
- name: Run Cargo build
44+
- name: Run Cargo release build
4545
shell: bash
46+
# it is important that we run the Scala tests against a release build rather than a debug build
47+
# to make sure that no tests are relying on overflow checks that are present only in debug builds
4648
run: |
4749
cd native
48-
cargo build
50+
cargo build --release
4951
5052
- name: Cache Maven dependencies
5153
uses: actions/cache@v4
@@ -70,7 +72,7 @@ runs:
7072
SPARK_LOCAL_HOSTNAME: "localhost"
7173
SPARK_LOCAL_IP: "127.0.0.1"
7274
run: |
73-
MAVEN_OPTS="-Xmx4G -Xms2G -XX:+UnlockDiagnosticVMOptions -XX:+ShowMessageBoxOnError -XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=./hs_err_pid%p.log" SPARK_HOME=`pwd` ./mvnw -B clean install ${{ inputs.maven_opts }}
75+
MAVEN_OPTS="-Xmx4G -Xms2G -XX:+UnlockDiagnosticVMOptions -XX:+ShowMessageBoxOnError -XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=./hs_err_pid%p.log" SPARK_HOME=`pwd` ./mvnw -B -Prelease clean install ${{ inputs.maven_opts }}
7476
- name: Run specified tests
7577
shell: bash
7678
if: ${{ inputs.suites != '' }}
@@ -81,7 +83,7 @@ runs:
8183
run: |
8284
MAVEN_SUITES="$(echo "${{ inputs.suites }}" | paste -sd, -)"
8385
echo "Running with MAVEN_SUITES=$MAVEN_SUITES"
84-
MAVEN_OPTS="-Xmx4G -Xms2G -DwildcardSuites=$MAVEN_SUITES -XX:+UnlockDiagnosticVMOptions -XX:+ShowMessageBoxOnError -XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=./hs_err_pid%p.log" SPARK_HOME=`pwd` ./mvnw -B clean install ${{ inputs.maven_opts }}
86+
MAVEN_OPTS="-Xmx4G -Xms2G -DwildcardSuites=$MAVEN_SUITES -XX:+UnlockDiagnosticVMOptions -XX:+ShowMessageBoxOnError -XX:+HeapDumpOnOutOfMemoryError -XX:ErrorFile=./hs_err_pid%p.log" SPARK_HOME=`pwd` ./mvnw -B -Prelease clean install ${{ inputs.maven_opts }}
8587
- name: Upload crash logs
8688
if: failure()
8789
uses: actions/upload-artifact@v4

spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
239239
}
240240
}
241241

242-
test("date_add with scalar overflow") {
242+
// TODO: https://github.com/apache/datafusion-comet/issues/2539
243+
ignore("date_add with scalar overflow") {
243244
Seq(true, false).foreach { dictionaryEnabled =>
244245
withTempDir { dir =>
245246
val path = new Path(dir.toURI.toString, "test.parquet")

0 commit comments

Comments
 (0)