aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-fillreports/fillreports.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-16 15:42:17 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-17 10:01:32 +0100
commit0f6b41b602586fe3e0417a031bc96d7182f776a3 (patch)
tree69288a5e7051c9acaee0a579bce4cefdea5db6cf /tools/syz-fillreports/fillreports.go
parent44e83a7153403136d80b8f354d1d9deccb54824a (diff)
tools/syz-fillreports: change the bug filtering logic
Allow open and fixed bugs. Skip bugs without Arch or OS.
Diffstat (limited to 'tools/syz-fillreports/fillreports.go')
-rw-r--r--tools/syz-fillreports/fillreports.go9
1 files changed, 7 insertions, 2 deletions
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{