From 5078d0768a75f40ee00eaed6e7171e79f42f4b8e Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 27 Apr 2023 12:20:55 +0200 Subject: dashboard: recognize tree origin testing jobs For now let's just keep them in the patch testing requests list and give them a different name. Later we'll group the information in a much more explicit way. --- dashboard/app/main.go | 2 ++ dashboard/app/templates.html | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dashboard/app/main.go b/dashboard/app/main.go index 0e5416eb8..57848c7da 100644 --- a/dashboard/app/main.go +++ b/dashboard/app/main.go @@ -367,6 +367,7 @@ type uiJob struct { Commits []*uiCommit // for inconclusive bisection Crash *uiCrash Reported bool + TreeOrigin bool } type userBugFilter struct { @@ -1942,6 +1943,7 @@ func makeUIJob(c context.Context, job *Job, jobKey *db.Key, bug *Bug, crash *Cra LogLink: textLink(textLog, job.Log), ErrorLink: textLink(textError, job.Error), Reported: job.Reported, + TreeOrigin: job.TreeOrigin, } if !job.Finished.IsZero() { ui.Duration = job.Finished.Sub(job.LastStarted) diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html index f65b1faca..044f0fd42 100644 --- a/dashboard/app/templates.html +++ b/dashboard/app/templates.html @@ -443,7 +443,9 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{if eq $job.Type 0}} - {{if $job.User}}{{$job.User}}{{else}}retest repro{{end}} + {{if $job.User}}{{$job.User}} + {{- else if $job.TreeOrigin}}tree origin + {{- else}}retest repro{{end}} {{else if eq $job.Type 1}} bisect {{else if eq $job.Type 2}} -- cgit mrf-deployment