From cb4ff871c418a7ac95116c02f4b8482d9e514ce4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 9 Jan 2026 15:31:21 +0100 Subject: 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). --- dashboard/app/graphs.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dashboard') 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 -- cgit mrf-deployment