diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-07 16:20:16 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-16 11:29:36 +0100 |
| commit | 2f0f5f6d638c8a24c1b8b04ebc9e303d330644cc (patch) | |
| tree | e577540c32b8f5f45a0b7b5bbf286a180fcab82f /dashboard/app/app_test.go | |
| parent | 6e13575de15a4d480e4edf604d5f83ca3ee1c64e (diff) | |
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.
Diffstat (limited to 'dashboard/app/app_test.go')
| -rw-r--r-- | dashboard/app/app_test.go | 21 |
1 files changed, 19 insertions, 2 deletions
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": { |
