From 9db828b50673b642da7da89eede4348da3aa4987 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 21 Nov 2018 11:43:38 +0100 Subject: dashboard/app: show kernel commit time Show kernel commit time (author) in a hint for all kernel commit hashes. Update #473 --- dashboard/app/bug.html | 3 ++- dashboard/app/main.go | 2 ++ dashboard/app/main.html | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'dashboard') diff --git a/dashboard/app/bug.html b/dashboard/app/bug.html index c3d9a91e6..fa59f14bc 100644 --- a/dashboard/app/bug.html +++ b/dashboard/app/bug.html @@ -56,7 +56,8 @@ Page with details about a single bug. {{$c.Manager}} {{formatTime $c.Time}} {{$c.KernelAlias}} - {{formatShortHash $c.KernelCommit}} + {{formatShortHash $c.KernelCommit}} {{formatShortHash $c.SyzkallerCommit}} {{if $c.KernelConfigLink}}.config{{end}} {{if $c.LogLink}}log{{end}} diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 29114d22c..02dbfb8d9 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -64,6 +64,7 @@ type uiBuild struct { SyzkallerCommit string KernelAlias string KernelCommit string + KernelCommitDate time.Time KernelConfigLink string } @@ -680,6 +681,7 @@ func makeUIBuild(build *Build) *uiBuild { SyzkallerCommit: build.SyzkallerCommit, KernelAlias: kernelRepoInfo(build).Alias, KernelCommit: build.KernelCommit, + KernelCommitDate: build.KernelCommitDate, KernelConfigLink: textLink(textKernelConfig, build.KernelConfig), } } diff --git a/dashboard/app/main.html b/dashboard/app/main.html index 4e166cf92..46a8884a3 100644 --- a/dashboard/app/main.html +++ b/dashboard/app/main.html @@ -51,7 +51,8 @@ Main page. {{formatDuration $mgr.CurrentUpTime}} {{if $mgr.CurrentBuild}} {{formatLateness $.Now $mgr.CurrentBuild.Time}} - {{formatShortHash $mgr.CurrentBuild.KernelCommit}} + {{formatShortHash $mgr.CurrentBuild.KernelCommit}} {{formatShortHash $mgr.CurrentBuild.SyzkallerCommit}} {{else}} -- cgit mrf-deployment