This is an automated email from the ASF dual-hosted git repository.
hongze pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git
The following commit(s) were added to refs/heads/main by this push:
new 1d4596cb17 [GLUTEN-7410][CORE] Add test args to run spark-ut with Java
17 (#7411)
1d4596cb17 is described below
commit 1d4596cb17223b58db3cf312f64e77e1e7928828
Author: Abhinav Koul <[email protected]>
AuthorDate: Fri Oct 11 06:13:17 2024 +0530
[GLUTEN-7410][CORE] Add test args to run spark-ut with Java 17 (#7411)
Closes #7410
---
.gitignore | 1 +
pom.xml | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/.gitignore b/.gitignore
index 224f61bae6..7e82d0e53e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@
# logs
*.log
+**/core$
# cache files
*.cache
diff --git a/pom.xml b/pom.xml
index 841d20c5d7..642c825a5a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -126,6 +126,26 @@
<maven.jar.plugin>3.2.2</maven.jar.plugin>
<scalastyle.version>1.0.0</scalastyle.version>
<scalatest-maven-plugin.version>2.2.0</scalatest-maven-plugin.version>
+ <argLine/> <!-- Required since there is extensive setting of spark home
through argLine-->
+ <extraJavaTestArgs>
+ -XX:+IgnoreUnrecognizedVMOptions <!-- For compatibility with java 8 and
11-->
+ --add-opens=java.base/java.lang=ALL-UNNAMED
+ --add-opens=java.base/java.lang.invoke=ALL-UNNAMED
+ --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
+ --add-opens=java.base/java.io=ALL-UNNAMED
+ --add-opens=java.base/java.net=ALL-UNNAMED
+ --add-opens=java.base/java.nio=ALL-UNNAMED
+ --add-opens=java.base/java.util=ALL-UNNAMED
+ --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
+ --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
+ --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
+ --add-opens=java.base/sun.nio.cs=ALL-UNNAMED
+ --add-opens=java.base/sun.security.action=ALL-UNNAMED
+ --add-opens=java.base/sun.util.calendar=ALL-UNNAMED
+ -Djdk.reflect.useDirectMethodHandle=false
+ -Dio.netty.tryReflectionSetAccessible=true
+ </extraJavaTestArgs>
</properties>
<profiles>
@@ -878,6 +898,7 @@
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<testFailureIgnore>false</testFailureIgnore>
<junitxml>.</junitxml>
+ <argLine>${argLine} ${extraJavaTestArgs}</argLine>
</configuration>
<executions>
<execution>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]