aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-04-11 11:05:18 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-04-13 13:39:53 +0200
commit3cfcaa1bed770dce1e4d55a41c168a9a56f931a5 (patch)
treed62e3c6e4a94fb8b8a69ad76b574f6777099c894 /tools
parent82d5e53ec0af57823952183e2e2603ce2462fb66 (diff)
pkg/subsystem: optionally disable monthly reports
For some subsystems (e.g. `kernel`) such reports just don't make much sense, since there are too many incorrectly classified bugs in there. Make it possible to exclude such subsystems from periodic reminders.
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-query-subsystems/generator.go13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/syz-query-subsystems/generator.go b/tools/syz-query-subsystems/generator.go
index 9b93a8151..d738be0f0 100644
--- a/tools/syz-query-subsystems/generator.go
+++ b/tools/syz-query-subsystems/generator.go
@@ -45,10 +45,11 @@ func generateSubsystemsFile(name string, list []*subsystem.Subsystem, commitInfo
}
sort.Strings(parents)
subsystem := &templateSubsystem{
- VarName: varName,
- Name: serializer.WriteString(entry.Name),
- PathRules: serializer.WriteString(entry.PathRules),
- Parents: parents,
+ VarName: varName,
+ Name: serializer.WriteString(entry.Name),
+ PathRules: serializer.WriteString(entry.PathRules),
+ Parents: parents,
+ NoReminders: entry.NoReminders,
}
// Some of the records are mostly empty.
if len(entry.Maintainers) > 0 {
@@ -118,6 +119,7 @@ type templateSubsystem struct {
Lists string
Maintainers string
Parents []string
+ NoReminders bool
}
type templateVars struct {
@@ -167,6 +169,9 @@ var {{range $i, $item := .List}}
Parents: []*Subsystem{ {{range .Parents}} &{{.}}, {{end}} },
{{- end}}
PathRules: {{.PathRules}},
+{{- if .NoReminders}}
+ NoReminders: true,
+{{- end}}
}
{{end}}