From 9028d21e525f47597cf41d85ca617b588b03e4cd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 29 Mar 2019 11:14:10 +0100 Subject: 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. --- syz-ci/manager.go | 5 +++-- 1 file 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) -- cgit mrf-deployment