This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git
The following commit(s) were added to refs/heads/main by this push:
new 9c17e5b28 fix(ci): checkstyle CI error output (#3796)
9c17e5b28 is described below
commit 9c17e5b28bfcc39cb99df0ae055c93efc60ed18d
Author: Steven Schlansker <[email protected]>
AuthorDate: Sun Jun 28 19:32:14 2026 -0700
fix(ci): checkstyle CI error output (#3796)
## Why?
CI currently can fail with an `Error:` with no further message, which is
unhelpful
## What does this PR do?
Attempt to improve CI reporting by matching checkstyle warning lines to
CI build output.
Small GitHub runner configuration changes.
## AI Contribution Checklist
- [x] Substantial AI assistance was used in this PR: `yes` / `no`
I verified this by hand - introduce Checkstyle failure, shows up in
"Annotations" on runner results page.
## Does this PR introduce any user-facing change?
No
Co-authored-by: Claude (on behalf of Steven Schlansker)
<[email protected]>
---
.github/maven-style-matcher.json | 17 +++++++++++++++++
.github/workflows/ci.yml | 2 ++
2 files changed, 19 insertions(+)
diff --git a/.github/maven-style-matcher.json b/.github/maven-style-matcher.json
new file mode 100644
index 000000000..41735617d
--- /dev/null
+++ b/.github/maven-style-matcher.json
@@ -0,0 +1,17 @@
+{
+ "problemMatcher": [
+ {
+ "owner": "maven-checkstyle",
+ "severity": "error",
+ "pattern": [
+ {
+ "regexp":
"^\\[WARN\\]\\s+(\\S.*\\.java):(\\d+):(?:(\\d+):)?\\s+(.+)$",
+ "file": 1,
+ "line": 2,
+ "column": 3,
+ "message": 4
+ }
+ ]
+ }
+ ]
+}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c46905dc2..5c770366e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1882,6 +1882,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
+ - name: Register Checkstyle problem matcher
+ run: echo "::add-matcher::.github/maven-style-matcher.json"
- name: Check code style
run: python ./ci/run_ci.py format
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]