From 6b7e906bb1dbb3bd49f58b79b00ea928ade236ba Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 17 May 2023 18:18:03 +0200 Subject: dashboard: send per-label notifications If the label is not user-set and the config specifies a message for it, send a bug notification. If the label is related to bug origin testing, attach the list of tested trees. --- dashboard/app/app_test.go | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'dashboard/app/app_test.go') diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index 3ffe322ea..537f653b4 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -510,6 +510,45 @@ var testConfig = &GlobalConfig{ }, }, }, + "tree-tests": { + AccessLevel: AccessPublic, + Key: "treeteststreeteststreeteststreeteststreeteststreetests", + Clients: map[string]string{ + clientTreeTests: keyTreeTests, + }, + Repos: []KernelRepo{ + { + URL: "git://syzkaller.org/test.git", + Branch: "main", + Alias: "main", + DetectMissingBackports: true, + }, + }, + Reporting: []Reporting{ + { + AccessLevel: AccessUser, + Name: "non-public", + DailyLimit: 1000, + Filter: func(bug *Bug) FilterResult { + return FilterReport + }, + Config: &TestConfig{Index: 1}, + }, + { + AccessLevel: AccessPublic, + Name: "public", + DailyLimit: 1000, + Config: &EmailConfig{ + Email: "bugs@syzkaller.com", + SubjectPrefix: "[syzbot]", + }, + Labels: map[string]string{ + "origin:downstream": "Bug presence analysis results: the bug reproduces only on the downstream tree.", + }, + }, + }, + FindBugOriginTrees: true, + }, }, } @@ -558,6 +597,8 @@ const ( keyMgrDecommission = "keyMgrDecommissionkeyMgrDecommission" clientSubsystemRemind = "client-subystem-reminders" keySubsystemRemind = "keySubsystemRemindkeySubsystemRemind" + clientTreeTests = "clientTreeTestsclientTreeTests" + keyTreeTests = "keyTreeTestskeyTreeTestskeyTreeTests" restrictedManager = "restricted-manager" noFixBisectionManager = "no-fix-bisection-manager" -- cgit mrf-deployment