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 09d5f86603 [VL][CI] Dump & upload logs for unit test to GitHub
artifact (#9024)
09d5f86603 is described below
commit 09d5f86603d804f75d4c7dbf27ca15a4be83b549
Author: Kent Yao <[email protected]>
AuthorDate: Tue Mar 25 19:13:11 2025 +0800
[VL][CI] Dump & upload logs for unit test to GitHub artifact (#9024)
---
.github/workflows/velox_backend.yml | 107 +++++++++++++++++++++
gluten-arrow/src/test/resources/log4j2.properties | 39 ++++++++
gluten-celeborn/pom.xml | 3 +
gluten-core/src/test/resources/log4j2.properties | 39 ++++++++
gluten-delta/pom.xml | 4 +
.../src-delta/test/resources/log4j2.properties | 39 ++++++++
gluten-hudi/pom.xml | 4 +
.../src-hudi/test/resources/log4j2.properties | 39 ++++++++
gluten-iceberg/pom.xml | 4 +
.../src-iceberg/test/resources/log4j2.properties | 39 ++++++++
gluten-kafka/pom.xml | 1 +
.../src-kafka/test/resources/log4j2.properties | 39 ++++++++
.../common/src/test/resources/log4j2.properties | 39 ++++++++
.../src/test/resources/log4j2.properties | 39 ++++++++
.../spark32/src/test/resources/log4j2.properties | 39 ++++++++
.../spark33/src/test/resources/log4j2.properties | 39 ++++++++
.../spark34/src/test/resources/log4j2.properties | 39 ++++++++
.../spark35/src/test/resources/log4j2.properties | 39 ++++++++
pom.xml | 4 +
19 files changed, 595 insertions(+)
diff --git a/.github/workflows/velox_backend.yml
b/.github/workflows/velox_backend.yml
index a8bb20f749..5270ec2151 100644
--- a/.github/workflows/velox_backend.yml
+++ b/.github/workflows/velox_backend.yml
@@ -645,6 +645,12 @@ jobs:
with:
name: test-report-spark32
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
- name: Upload golden files
if: failure()
uses: actions/upload-artifact@v4
@@ -679,6 +685,12 @@ jobs:
with:
name: test-report-spark32-slow
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark33:
needs: build-native-lib-centos-7
@@ -716,6 +728,12 @@ jobs:
with:
name: test-report-spark33
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
- name: Upload golden files
if: failure()
uses: actions/upload-artifact@v4
@@ -753,6 +771,12 @@ jobs:
with:
name: test-report-spark33-slow
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark34:
needs: build-native-lib-centos-7
@@ -796,6 +820,12 @@ jobs:
with:
name: test-report-spark34-jdk17
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
- name: Upload golden files
if: failure()
uses: actions/upload-artifact@v4
@@ -842,6 +872,12 @@ jobs:
with:
name: test-report-spark34
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
- name: Upload golden files
if: failure()
uses: actions/upload-artifact@v4
@@ -883,6 +919,12 @@ jobs:
with:
name: test-report-spark34-slow-jdk17
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark34-slow-jdk8:
needs: build-native-lib-centos-7
@@ -915,6 +957,12 @@ jobs:
with:
name: test-report-spark34-slow-jdk8
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark35:
needs: build-native-lib-centos-7
@@ -952,6 +1000,12 @@ jobs:
with:
name: test-report-spark35
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
- name: Upload golden files
if: failure()
uses: actions/upload-artifact@v4
@@ -999,6 +1053,12 @@ jobs:
with:
name: test-report-spark35-jdk17
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
- name: Upload golden files
if: failure()
uses: actions/upload-artifact@v4
@@ -1042,6 +1102,12 @@ jobs:
with:
name: test-report-spark35-scala213
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark35-slow:
needs: build-native-lib-centos-7
@@ -1071,6 +1137,12 @@ jobs:
with:
name: test-report-spark35-slow
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark35-ras:
needs: build-native-lib-centos-7
@@ -1107,6 +1179,12 @@ jobs:
with:
name: test-report-spark35-ras
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark35-slow-ras:
needs: build-native-lib-centos-7
@@ -1135,6 +1213,12 @@ jobs:
with:
name: test-report-spark35-slow-ras
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark35-smj:
needs: build-native-lib-centos-7
@@ -1171,6 +1255,12 @@ jobs:
with:
name: test-report-spark35-smj
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-spark-test-spark35-slow-smj:
needs: build-native-lib-centos-7
@@ -1199,6 +1289,12 @@ jobs:
with:
name: test-report-spark35-slow-smj
path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
run-cpp-test-udf-test:
runs-on: ubuntu-20.04
@@ -1240,3 +1336,14 @@ jobs:
# Depends on --build_example=ON.
$MVN_CMD test -Pspark-3.5 -Pbackends-velox -Piceberg -Pdelta
-DtagsToExclude=None \
-DtagsToInclude=org.apache.gluten.tags.UDFTest
+ - name: Upload test report
+ uses: actions/upload-artifact@v4
+ with:
+ name: test-report-spark35-udf
+ path: '**/surefire-reports/TEST-*.xml'
+ - name: Upload unit tests log files
+ if: ${{ !success() }}
+ uses: actions/upload-artifact@v4
+ with:
+ name: ${{ github.job }}-test-log
+ path: "**/target/*.log"
diff --git a/gluten-arrow/src/test/resources/log4j2.properties
b/gluten-arrow/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-arrow/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-celeborn/pom.xml b/gluten-celeborn/pom.xml
index 6b8d5ea230..ed893cf17b 100755
--- a/gluten-celeborn/pom.xml
+++ b/gluten-celeborn/pom.xml
@@ -14,6 +14,9 @@
<packaging>jar</packaging>
<name>Gluten Celeborn</name>
+ <properties>
+ <log4j.conf>file:src-celeborn/test/resources/log4j2.properties</log4j.conf>
+ </properties>
<dependencies>
<dependency>
<groupId>org.apache.gluten</groupId>
diff --git a/gluten-core/src/test/resources/log4j2.properties
b/gluten-core/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-core/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-delta/pom.xml b/gluten-delta/pom.xml
index 01ea275c89..0f131a791a 100755
--- a/gluten-delta/pom.xml
+++ b/gluten-delta/pom.xml
@@ -14,6 +14,10 @@
<packaging>jar</packaging>
<name>Gluten DeltaLake</name>
+ <properties>
+ <log4j.conf>file:src-delta/test/resources/log4j2.properties</log4j.conf>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.gluten</groupId>
diff --git a/gluten-delta/src-delta/test/resources/log4j2.properties
b/gluten-delta/src-delta/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-delta/src-delta/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-hudi/pom.xml b/gluten-hudi/pom.xml
index 756f10a117..fa31848c7b 100755
--- a/gluten-hudi/pom.xml
+++ b/gluten-hudi/pom.xml
@@ -14,6 +14,10 @@
<packaging>jar</packaging>
<name>Gluten Hudi</name>
+ <properties>
+ <log4j.conf>file:src-hudi/test/resources/log4j2.properties</log4j.conf>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.gluten</groupId>
diff --git a/gluten-hudi/src-hudi/test/resources/log4j2.properties
b/gluten-hudi/src-hudi/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-hudi/src-hudi/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-iceberg/pom.xml b/gluten-iceberg/pom.xml
index 01ec4f914d..099501fa76 100644
--- a/gluten-iceberg/pom.xml
+++ b/gluten-iceberg/pom.xml
@@ -14,6 +14,10 @@
<packaging>jar</packaging>
<name>Gluten Iceberg</name>
+ <properties>
+
<log4j.conf>file:src-iceberg/test/resources/log4j2.properties</log4j.conf>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.apache.gluten</groupId>
diff --git a/gluten-iceberg/src-iceberg/test/resources/log4j2.properties
b/gluten-iceberg/src-iceberg/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-iceberg/src-iceberg/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-kafka/pom.xml b/gluten-kafka/pom.xml
index ff633728a8..a4346663e0 100644
--- a/gluten-kafka/pom.xml
+++ b/gluten-kafka/pom.xml
@@ -16,6 +16,7 @@
<properties>
<resource.dir>${project.basedir}/src/main/resources</resource.dir>
+
<log4j.conf>file:src-kafka/test/resources/log4j2.properties</log4j.conf>
</properties>
<dependencies>
diff --git a/gluten-kafka/src-kafka/test/resources/log4j2.properties
b/gluten-kafka/src-kafka/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-kafka/src-kafka/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-ras/common/src/test/resources/log4j2.properties
b/gluten-ras/common/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-ras/common/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-substrait/src/test/resources/log4j2.properties
b/gluten-substrait/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-substrait/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-ut/spark32/src/test/resources/log4j2.properties
b/gluten-ut/spark32/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-ut/spark32/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-ut/spark33/src/test/resources/log4j2.properties
b/gluten-ut/spark33/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-ut/spark33/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-ut/spark34/src/test/resources/log4j2.properties
b/gluten-ut/spark34/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-ut/spark34/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/gluten-ut/spark35/src/test/resources/log4j2.properties
b/gluten-ut/spark35/src/test/resources/log4j2.properties
new file mode 100644
index 0000000000..fb1cadec5f
--- /dev/null
+++ b/gluten-ut/spark35/src/test/resources/log4j2.properties
@@ -0,0 +1,39 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+rootLogger.level = info
+rootLogger.appenderRef.stdout.ref = STDOUT
+rootLogger.appenderRef.file.ref = File
+
+#Console Appender
+appender.console.type = Console
+appender.console.name = STDOUT
+appender.console.target = SYSTEM_OUT
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{HH:mm:ss.SSS} %p %c:
%maxLen{%m}{512}%n%ex{8}%n
+appender.console.filter.threshold.type = ThresholdFilter
+appender.console.filter.threshold.level = warn
+
+#File Appender
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+appender.file.filter.threshold.type = ThresholdFilter
+appender.file.filter.threshold.level = info
diff --git a/pom.xml b/pom.xml
index 9d58ab30e5..9e99589c2b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -157,6 +157,7 @@
-Djdk.reflect.useDirectMethodHandle=false
-Dio.netty.tryReflectionSetAccessible=true
</extraJavaTestArgs>
+ <log4j.conf>file:src/test/resources/log4j2.properties</log4j.conf>
</properties>
<profiles>
@@ -1371,6 +1372,9 @@
<testFailureIgnore>${maven.test.failure.ignore}</testFailureIgnore>
<junitxml>.</junitxml>
<argLine>${argLine} ${extraJavaTestArgs}</argLine>
+ <systemProperties>
+ <log4j.configurationFile>${log4j.conf}</log4j.configurationFile>
+ </systemProperties>
</configuration>
<executions>
<execution>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]