diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-06-05 11:05:14 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-05 12:23:19 +0200 |
| commit | 1de720878f0e4b66bdabfc77f720bf3215016094 (patch) | |
| tree | 8e95b22c9157a2a47113f507afdcb5caa1cf5ab7 /.github | |
| parent | 7c84a90501094cc1d7f76c4957c59f53a8e5baa1 (diff) | |
.github/workflows: support errors from golangci-lint
If there are compilation errors in tests, golangci-lint
produces then in the following format:
level=warning msg="[runner] Can't run linter unused: buildssa: analysis skipped: errors in package: [/syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/mab_reward_test.go:26:35: cannot use rawCov (variable of type []float64) as float64 value in argument to status.Reward.RawAllTasks.Update /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/mab_reward_test.go:26:43: cannot use rawTime (variable of type []float64) as float64 value in argument to status.Reward.RawAllTasks.Update /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/mab_reward_test.go:27:38: cannot use totalReward (variable of type []float64) as float64 value in argument to status.Reward.RewardAllTasks.Update /syzkaller/gopath/src/github.com/google/syzkaller/syz-fuzzer/mab_reward_test.go:33:2: reward declared but not used]"
Transform this to github format.
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/workflows/run.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/run.sh b/.github/workflows/run.sh index 0d0a6bbef..5087fd364 100755 --- a/.github/workflows/run.sh +++ b/.github/workflows/run.sh @@ -8,4 +8,5 @@ set -o pipefail # Run the specified command in syz-env and convert error messages to github format: # https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message gopath/src/github.com/google/syzkaller/tools/$1 "${@:2}" | \ + sed -E "s#/syzkaller/gopath/src/github.com/google/syzkaller/#\n#g" | \ sed -E 's#\s*([a-zA-Z0-9._/-]+):([0-9]+):(([0-9]+):)? (.+)#\0\n::error file=\1,line=\2,col=0\4::\5#' |
