diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-19 17:53:36 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-19 17:53:36 -0700 |
| commit | 780826577e805553ccda1668a154ef2a2d2897fe (patch) | |
| tree | dbeda96fad186588b08573f14cc642826bbc6fff | |
| parent | 3171c989ef8f291bed239e19970b16728e2c0711 (diff) | |
| parent | 13aa0dc1c7cf4dd4d0e527d47741f7ace790dcc3 (diff) | |
| download | rust-780826577e805553ccda1668a154ef2a2d2897fe.tar.gz rust-780826577e805553ccda1668a154ef2a2d2897fe.zip | |
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`
| -rw-r--r-- | src/ci/github-actions/problem_matchers.json | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/ci/github-actions/problem_matchers.json b/src/ci/github-actions/problem_matchers.json index 37561924b7d..b6c7ace841e 100644 --- a/src/ci/github-actions/problem_matchers.json +++ b/src/ci/github-actions/problem_matchers.json @@ -10,6 +10,46 @@ "message": 3 } ] + }, + { + "owner": "cargo-common", + "pattern": [ + { + "regexp": "^(warning|warn|error)(\\[(\\S*)\\])?: (.*)$", + "severity": 1, + "message": 4, + "code": 3 + }, + { + "regexp": "^\\s+-->\\s(\\S+):(\\d+):(\\d+)$", + "file": 1, + "line": 2, + "column": 3 + } + ] + }, + { + "owner": "compiler-panic", + "pattern": [ + { + "regexp": "error: internal compiler error: (.*):(\\d+):(\\d+): (.*)$", + "message": 4, + "file": 1, + "line": 2, + "column": 3 + } + ] + }, + { + "owner": "cargo-fmt", + "pattern": [ + { + "regexp": "^(Diff in (\\S+)) at line (\\d+):", + "message": 1, + "file": 2, + "line": 3 + } + ] } ] } |
