You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by ma...@apache.org on 2025/11/23 16:17:45 UTC
(incubator-seata) branch 2.x updated: optimize: highlight pmd-check log (#7781)
This is an automated email from the ASF dual-hosted git repository.
maple pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/incubator-seata.git
The following commit(s) were added to refs/heads/2.x by this push:
new 30de1705c4 optimize: highlight pmd-check log (#7781)
30de1705c4 is described below
commit 30de1705c4b4ba79c9e7009dc1ff8734c8022aa0
Author: lokidundun <lo...@qq.com>
AuthorDate: Mon Nov 24 00:17:41 2025 +0800
optimize: highlight pmd-check log (#7781)
---
.github/workflows/build.yml | 10 +++++++++-
changes/en-us/2.x.md | 1 +
changes/zh-cn/2.x.md | 1 +
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8897d61146..1fff81adee 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -84,7 +84,15 @@ jobs:
-Dpmd.skip=false -Dlicense.skip=false -DredisCaseEnabled=true -DnacosCaseEnabled=true \
-e -B \
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
- -Dorg.slf4j.simpleLogger.log.net.sourceforge.pmd=error;
+ -Dorg.slf4j.simpleLogger.log.net.sourceforge.pmd=info \
+ 2>&1 | tee build.log | while read line; do
+ echo "$line"
+ if [[ "$line" == *"PMD Failure"* ]]; then
+ echo "::error::PMD Violations Detected! Check Details Above!"
+ fi
+ done
+ exit_code=${PIPESTATUS[0]}
+ exit $exit_code
# step 6.2
- name: "Test with Maven and Java${{ matrix.java }}"
if: matrix.java != '8'
diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md
index 2fed9bd76d..fe02ec7d40 100644
--- a/changes/en-us/2.x.md
+++ b/changes/en-us/2.x.md
@@ -77,6 +77,7 @@ Add changes here for all PR submitted to the 2.x branch.
- [[#7741](https://github.com/apache/incubator-seata/pull/7741)] supports publishing image based on JDK 25
- [[#7743](https://github.com/seata/seata/pull/7743)] upgrade Apache Tomcat dependency from 9.0.108 to 9.0.109
- [[#7740](https://github.com/apache/incubator-seata/pull/7740)] enhance HttpClient to support h2c
+- [[#7781](https://github.com/apache/incubator-seata/pull/7781)] highlight pmd-check log
diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md
index 6c0efa0a80..3d6289812e 100644
--- a/changes/zh-cn/2.x.md
+++ b/changes/zh-cn/2.x.md
@@ -76,6 +76,7 @@
- [[#7741](https://github.com/apache/incubator-seata/pull/7741)] 支持发布基于JDK 25的镜像
- [[#7743](https://github.com/seata/seata/pull/7743)] 将 Apache Tomcat 依赖项从 9.0.108 升级到 9.0.109
- [[#7740](https://github.com/apache/incubator-seata/pull/7740)] 优化http工具类使之支持h2c协议
+- [[#7781](https://github.com/apache/incubator-seata/pull/7781)] 高亮 pmd 检查日志信息
### security:
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org