aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-02 17:03:02 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-03 08:51:28 +0000
commit22d2aa64dae7c92bf2737c001e8a96146b8a693d (patch)
tree6aa239f4d42b14f7d38ba278a205c275dee1655e /pkg/bisect
parent115ceea74e11fcf2b7ad5717ef91980f501cc81b (diff)
pkg/report: split crash.KASAN into parts
We want to prioritize KASAN bugs differently.
Diffstat (limited to 'pkg/bisect')
-rw-r--r--pkg/bisect/bisect_test.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/pkg/bisect/bisect_test.go b/pkg/bisect/bisect_test.go
index d09e6804e..11d14d4fc 100644
--- a/pkg/bisect/bisect_test.go
+++ b/pkg/bisect/bisect_test.go
@@ -918,47 +918,47 @@ func TestMostFrequentReport(t *testing.T) {
{
name: "one infrequent",
reports: []*report.Report{
- {Title: "A", Type: crash.KASAN},
- {Title: "B", Type: crash.KASAN},
+ {Title: "A", Type: crash.KASANOther},
+ {Title: "B", Type: crash.KASANOther},
{Title: "C", Type: crash.Bug},
- {Title: "D", Type: crash.KASAN},
+ {Title: "D", Type: crash.KASANOther},
{Title: "E", Type: crash.Bug},
- {Title: "F", Type: crash.KASAN},
+ {Title: "F", Type: crash.KASANOther},
{Title: "G", Type: crash.LockdepBug},
},
// LockdepBug was too infrequent.
- types: []crash.Type{crash.KASAN, crash.Bug},
+ types: []crash.Type{crash.KASANOther, crash.Bug},
report: "A",
other: true,
},
{
name: "ignore hangs",
reports: []*report.Report{
- {Title: "A", Type: crash.KASAN},
- {Title: "B", Type: crash.KASAN},
+ {Title: "A", Type: crash.KASANOther},
+ {Title: "B", Type: crash.KASANOther},
{Title: "C", Type: crash.Hang},
- {Title: "D", Type: crash.KASAN},
+ {Title: "D", Type: crash.KASANOther},
{Title: "E", Type: crash.Hang},
{Title: "F", Type: crash.Hang},
{Title: "G", Type: crash.Warning},
},
// Hang is not a preferred report type.
- types: []crash.Type{crash.KASAN, crash.Warning},
+ types: []crash.Type{crash.KASANOther, crash.Warning},
report: "A",
other: true,
},
{
name: "take hangs",
reports: []*report.Report{
- {Title: "A", Type: crash.KASAN},
- {Title: "B", Type: crash.KASAN},
+ {Title: "A", Type: crash.KASANOther},
+ {Title: "B", Type: crash.KASANOther},
{Title: "C", Type: crash.Hang},
{Title: "D", Type: crash.Hang},
{Title: "E", Type: crash.Hang},
{Title: "F", Type: crash.Hang},
},
// There are so many Hangs that we can't ignore it.
- types: []crash.Type{crash.Hang, crash.KASAN},
+ types: []crash.Type{crash.Hang, crash.KASANOther},
report: "C",
},
{