From 0f6b41b602586fe3e0417a031bc96d7182f776a3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 16 Feb 2023 15:42:17 +0100 Subject: tools/syz-fillreports: change the bug filtering logic Allow open and fixed bugs. Skip bugs without Arch or OS. --- tools/syz-fillreports/fillreports.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/syz-fillreports/fillreports.go b/tools/syz-fillreports/fillreports.go index 1a730e95c..753724f88 100644 --- a/tools/syz-fillreports/fillreports.go +++ b/tools/syz-fillreports/fillreports.go @@ -46,8 +46,13 @@ func processReport(dash *dashapi.Dashboard, bugReport *dashapi.BugReport, bugID log.Printf("%v: already has guilty files", bugReport.ID) return } - if bugReport.BugStatus != dashapi.BugStatusOpen { - log.Printf("%v: status != BugStatusOpen", bugReport.ID) + if bugReport.BugStatus != dashapi.BugStatusOpen && + bugReport.BugStatus != dashapi.BugStatusFixed { + log.Printf("%v: status is not BugStatusOpen or BugStatusFixed", bugReport.ID) + return + } + if bugReport.OS == "" || bugReport.Arch == "" { + log.Printf("%v: OS or Arch is empty", bugReport.ID) return } cfg := &mgrconfig.Config{ -- cgit mrf-deployment