From 835dffe7e5d185154a9b147476a17b6301ee139e Mon Sep 17 00:00:00 2001 From: Zubin Mithra Date: Tue, 30 Jul 2019 10:58:08 -0700 Subject: dashboard/app: allow fix bisection results to be visible on web UI * Modify the dashboard/app/bug.html template to show fix bisection results. * Modify handleBug() to fetch and create a uiJob for fix bisection results. * Modify loadBisectJob() to fetch jobs based on a specified jobType. Change all callers to pass in jobType info into loadBisectJob(). * Add TestBugBisectionResults() to ensure bisection results show up as expected. --- dashboard/app/bug.html | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'dashboard/app/bug.html') diff --git a/dashboard/app/bug.html b/dashboard/app/bug.html index 6bbf30fc7..2efb75a8c 100644 --- a/dashboard/app/bug.html +++ b/dashboard/app/bug.html @@ -60,6 +60,41 @@ Page with details about a single bug. {{optlink $bisect.Crash.KernelConfigLink ".config"}}
{{end}} + {{with $bisect := .BisectFix}}
+ {{if $bisect.ErrorLink}} + Bisection: {{link $bisect.ErrorLink "error"}} + ({{link $bisect.LogLink "bisect log"}})
+ {{else if $bisect.Commit}}{{with $com := $bisect.Commit}} + Bisection: fixed by + ({{link $bisect.LogLink "bisect log"}}):
+
+ commit {{$com.Hash}}
+ Author: {{$com.Author}}
+ Date: {{formatKernelTime $com.Date}}
+
+   {{$com.Title}}
+

+ {{end}}{{else if $bisect.Commits}}{{with $bisect.Commits}} + Bisection: the fix commit could be any of + ({{link $bisect.LogLink "bisect log"}}):
+
+ {{range $com := $bisect.Commits}} +   {{formatTagHash $com.Hash}} {{$com.Title}}
+ {{end}} +

+ {{end}}{{else}} + Bisection: the bug occurs on the newest tested release + ({{link $bisect.LogLink "bisect log"}})
+ {{end}} + Tree: {{$bisect.KernelAlias}}
+ {{if $bisect.CrashLogLink}} + Crash: {{link $bisect.CrashReportLink $bisect.CrashTitle}} ({{link $bisect.CrashLogLink "log"}})
+ {{end}} + Repro: {{optlink $bisect.Crash.ReproCLink "C"}} + {{optlink $bisect.Crash.ReproSyzLink "syz"}} + {{optlink $bisect.Crash.KernelConfigLink ".config"}}
+ {{end}} + {{template "bug_list" .DupOf}} {{template "bug_list" .Dups}} {{template "bug_list" .Similar}} -- cgit mrf-deployment