diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-09 15:31:21 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-09 16:00:26 +0000 |
| commit | cb4ff871c418a7ac95116c02f4b8482d9e514ce4 (patch) | |
| tree | 53e7dc1a2826ba13977c59299690637d7d55bd06 /dashboard | |
| parent | 7e3683309afa0aa757daa056f2c47d2a8f6bf994 (diff) | |
pkg/report: move TitleToCrashType to crash package
TitleToCrashType is a simple function with no heavy dependencies
that is used by the dashboard app.
Currnetly we have to import pkg/report into dashboard/app,
and this package has lots of heavy deps (symbolizer, demangler,
coverage report generation, etc).
Move TitleToCrashType to pkg/report/crash (where it arguably belongs anyway).
Diffstat (limited to 'dashboard')
| -rw-r--r-- | dashboard/app/graphs.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dashboard/app/graphs.go b/dashboard/app/graphs.go index 77dcaf13a..69fd9b894 100644 --- a/dashboard/app/graphs.go +++ b/dashboard/app/graphs.go @@ -13,7 +13,6 @@ import ( "strconv" "time" - "github.com/google/syzkaller/pkg/report" "github.com/google/syzkaller/pkg/report/crash" db "google.golang.org/appengine/v2/datastore" ) @@ -370,7 +369,7 @@ func createFoundBugs(c context.Context, bugs []*Bug) *uiGraph { months := make(map[time.Time]map[string]int) for _, bug := range bugs { for _, typ := range types { - if !typ.pred(report.TitleToCrashType(bug.Title)) { + if !typ.pred(crash.TitleToType(bug.Title)) { continue } t := bug.FirstTime |
