aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-03-29 11:14:10 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-03-29 11:14:10 +0100
commit9028d21e525f47597cf41d85ca617b588b03e4cd (patch)
tree1b541064c0466e3b662375211057075fb731dc7a
parentfaba132374ae8b0913ea43bdeed00616c851893a (diff)
syz-ci: put build error reason into report
We inline Report in bug reports, so put the build error reason there. Should produce much handier reports.
-rw-r--r--syz-ci/manager.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/syz-ci/manager.go b/syz-ci/manager.go
index 237643b10..267221097 100644
--- a/syz-ci/manager.go
+++ b/syz-ci/manager.go
@@ -293,10 +293,11 @@ func (mgr *Manager) build(kernelCommit *vcs.Commit) error {
if err := build.Image(mgr.managercfg.TargetOS, mgr.managercfg.TargetVMArch, mgr.managercfg.Type,
mgr.kernelDir, tmpDir, mgr.mgrcfg.Compiler, mgr.mgrcfg.Userspace,
mgr.mgrcfg.KernelCmdline, mgr.mgrcfg.KernelSysctl, mgr.configData); err != nil {
- if _, ok := err.(build.KernelBuildError); ok {
+ if buildErr, ok := err.(build.KernelBuildError); ok {
rep := &report.Report{
Title: fmt.Sprintf("%v build error", mgr.mgrcfg.RepoAlias),
- Output: []byte(err.Error()),
+ Report: []byte(buildErr.Title),
+ Output: buildErr.Output,
}
if err := mgr.reportBuildError(rep, info, tmpDir); err != nil {
mgr.Errorf("failed to report image error: %v", err)