aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/bug.html
diff options
context:
space:
mode:
authorZubin Mithra <zsm@chromium.org>2019-07-30 10:58:08 -0700
committerDmitry Vyukov <dvyukov@google.com>2019-08-01 13:43:22 +0200
commit835dffe7e5d185154a9b147476a17b6301ee139e (patch)
tree463910ecb9f9a7e54053961b3a402f53176d2261 /dashboard/app/bug.html
parentc692b5bdabba075211571ae6dfe3453a8193591a (diff)
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.
Diffstat (limited to 'dashboard/app/bug.html')
-rw-r--r--dashboard/app/bug.html35
1 files changed, 35 insertions, 0 deletions
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"}}<br>
{{end}}
+ {{with $bisect := .BisectFix}}<br>
+ {{if $bisect.ErrorLink}}
+ <b>Bisection: {{link $bisect.ErrorLink "error"}}
+ ({{link $bisect.LogLink "bisect log"}})</b><br>
+ {{else if $bisect.Commit}}{{with $com := $bisect.Commit}}
+ <b>Bisection: fixed by
+ ({{link $bisect.LogLink "bisect log"}}):</b><br>
+ <br><span class="mono">
+ commit {{$com.Hash}}<br>
+ Author: {{$com.Author}}<br>
+ Date: {{formatKernelTime $com.Date}}<br>
+ <br>
+ &nbsp;&nbsp;{{$com.Title}}<br>
+ </span><br>
+ {{end}}{{else if $bisect.Commits}}{{with $bisect.Commits}}
+ <b>Bisection: the fix commit could be any of
+ ({{link $bisect.LogLink "bisect log"}}):</b><br>
+ <br><span class="mono">
+ {{range $com := $bisect.Commits}}
+ &nbsp;&nbsp;{{formatTagHash $com.Hash}} {{$com.Title}}<br>
+ {{end}}
+ </span><br>
+ {{end}}{{else}}
+ <b>Bisection: the bug occurs on the newest tested release
+ ({{link $bisect.LogLink "bisect log"}})</b><br>
+ {{end}}
+ Tree: <span title="{{$bisect.Manager}}">{{$bisect.KernelAlias}}</span><br>
+ {{if $bisect.CrashLogLink}}
+ Crash: {{link $bisect.CrashReportLink $bisect.CrashTitle}} ({{link $bisect.CrashLogLink "log"}})<br>
+ {{end}}
+ Repro: {{optlink $bisect.Crash.ReproCLink "C"}}
+ {{optlink $bisect.Crash.ReproSyzLink "syz"}}
+ {{optlink $bisect.Crash.KernelConfigLink ".config"}}<br>
+ {{end}}
+
{{template "bug_list" .DupOf}}
{{template "bug_list" .Dups}}
{{template "bug_list" .Similar}}