From 3ba98b073d93c50bf808f43b482702184f6da7c5 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 29 Jul 2025 15:56:25 +0200 Subject: pkg/manager: display repro attempts On the syz-manager's html dashboard, dispay the number of repro attempts per each bug. It will help distinguish the bugs where reproduction was attempted and failed from those that have never been reproduced yet. --- pkg/manager/http.go | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'pkg/manager/http.go') diff --git a/pkg/manager/http.go b/pkg/manager/http.go index b8ffbca81..3e7ba6fcf 100644 --- a/pkg/manager/http.go +++ b/pkg/manager/http.go @@ -355,16 +355,17 @@ func makeUICrashType(info *BugInfo, startTime time.Time, repros map[string]bool) triaged := reproStatus(info.HasRepro, info.HasCRepro, repros[info.Title], info.ReproAttempts >= MaxReproAttempts) return UICrashType{ - Description: info.Title, - FirstTime: info.FirstTime, - LastTime: info.LastTime, - New: info.FirstTime.After(startTime), - Active: info.LastTime.After(startTime), - ID: info.ID, - Count: len(info.Crashes), - Triaged: triaged, - Strace: info.StraceFile, - Crashes: crashes, + Description: info.Title, + FirstTime: info.FirstTime, + LastTime: info.LastTime, + New: info.FirstTime.After(startTime), + Active: info.LastTime.After(startTime), + ID: info.ID, + Count: len(info.Crashes), + Triaged: triaged, + Strace: info.StraceFile, + Crashes: crashes, + ReproAttempts: info.ReproAttempts, } } @@ -1028,16 +1029,17 @@ type UICrashPage struct { } type UICrashType struct { - Description string - FirstTime time.Time - LastTime time.Time - New bool // was first found in the current run - Active bool // was found in the current run - ID string - Count int - Triaged string - Strace string - Crashes []UICrash + Description string + FirstTime time.Time + LastTime time.Time + New bool // was first found in the current run + Active bool // was found in the current run + ID string + Count int + Triaged string + Strace string + ReproAttempts int + Crashes []UICrash } type UICrash struct { -- cgit mrf-deployment