Skip to content

Commit 7808265

Browse files
Rollup merge of #112787 - oli-obk:gha_tinder_for_problems, r=jyn514
Add gha problem matcher These regexes capture rustfmt errors, panics and regular Rust errors in CI and automatically add messages in the diff view. This should make it simpler to quickly see what went wrong without having to scroll through CI logs. We can fine tune the regexes or add more matchers after having a look at how it actually works in practice The relevant documentation can be found at https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md r? `@jyn514`
2 parents 3171c98 + 13aa0dc commit 7808265

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/ci/github-actions/problem_matchers.json

+40
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,46 @@
1010
"message": 3
1111
}
1212
]
13+
},
14+
{
15+
"owner": "cargo-common",
16+
"pattern": [
17+
{
18+
"regexp": "^(warning|warn|error)(\\[(\\S*)\\])?: (.*)$",
19+
"severity": 1,
20+
"message": 4,
21+
"code": 3
22+
},
23+
{
24+
"regexp": "^\\s+-->\\s(\\S+):(\\d+):(\\d+)$",
25+
"file": 1,
26+
"line": 2,
27+
"column": 3
28+
}
29+
]
30+
},
31+
{
32+
"owner": "compiler-panic",
33+
"pattern": [
34+
{
35+
"regexp": "error: internal compiler error: (.*):(\\d+):(\\d+): (.*)$",
36+
"message": 4,
37+
"file": 1,
38+
"line": 2,
39+
"column": 3
40+
}
41+
]
42+
},
43+
{
44+
"owner": "cargo-fmt",
45+
"pattern": [
46+
{
47+
"regexp": "^(Diff in (\\S+)) at line (\\d+):",
48+
"message": 1,
49+
"file": 2,
50+
"line": 3
51+
}
52+
]
1353
}
1454
]
1555
}

0 commit comments

Comments
 (0)