From bad3cce26cf7f426903060995fd9fde0532ff2af Mon Sep 17 00:00:00 2001 From: Zubin Mithra Date: Thu, 8 Aug 2019 12:35:23 -0700 Subject: dashboard/app: allow reporting of BisectFix results * Modify mail_bisect_result.txt to allow for sending fix bisection results. * Modify BisectResult to have a Fix field; introduce selectBisect for use within the template for choosing between BisectCause/BisectFix fields. * Modify bisectFromJob() to return BisectResult with Fix field set if relevant. * Modify the tests inside bisect_test.go to account for bisect fix related reporting emails. * Modify incomingMail() to ignore any emails from syzbot itself. --- pkg/html/html.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/html') diff --git a/pkg/html/html.go b/pkg/html/html.go index 9a43b0dba..1199c5ab0 100644 --- a/pkg/html/html.go +++ b/pkg/html/html.go @@ -51,6 +51,14 @@ var Funcs = template.FuncMap{ "formatTagHash": formatTagHash, "formatCommitTableTitle": formatCommitTableTitle, "formatList": formatStringList, + "selectBisect": selectBisect, +} + +func selectBisect(rep *dashapi.BugReport) *dashapi.BisectResult { + if rep.BisectFix != nil { + return rep.BisectFix + } + return rep.BisectCause } func link(url, text string) template.HTML { -- cgit mrf-deployment