From 2f0f5f6d638c8a24c1b8b04ebc9e303d330644cc Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 7 Feb 2023 16:20:16 +0100 Subject: dashboard/app: infer bug subsystems from crashes After each saved crash, invoke the new pkg/subsystem machinery to infer the subsystem list. Use 5 crashes with biggest priority to base the inference on. --- dashboard/app/app_test.go | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'dashboard/app/app_test.go') diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index c14be5d1d..4cc121c32 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -15,7 +15,8 @@ import ( "github.com/google/go-cmp/cmp" "github.com/google/syzkaller/dashboard/dashapi" "github.com/google/syzkaller/pkg/auth" - subsystem "github.com/google/syzkaller/pkg/subsystem/legacy" + "github.com/google/syzkaller/pkg/subsystem" + _ "github.com/google/syzkaller/pkg/subsystem/lists" "github.com/google/syzkaller/sys/targets" "google.golang.org/appengine/v2/user" ) @@ -106,6 +107,22 @@ var testConfig = &GlobalConfig{ }, }, }, + Subsystems: SubsystemsConfig{ + Service: subsystem.MustMakeService([]*subsystem.Subsystem{ + { + Name: "subsystemA", + PathRules: []subsystem.PathRule{{IncludeRegexp: `a\.c`}}, + Lists: []string{"subsystemA@list.com"}, + Maintainers: []string{"subsystemA@person.com"}, + }, + { + Name: "subsystemB", + PathRules: []subsystem.PathRule{{IncludeRegexp: `b\.c`}}, + Lists: []string{"subsystemB@list.com"}, + Maintainers: []string{"subsystemB@person.com"}, + }, + }), + }, }, "test2": { AccessLevel: AccessAdmin, @@ -358,7 +375,7 @@ var testConfig = &GlobalConfig{ }, }, Subsystems: SubsystemsConfig{ - SubsystemCc: subsystem.LinuxGetMaintainers, + Service: subsystem.ListService("linux"), }, }, "test-decommission": { -- cgit mrf-deployment