aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/manager/diff_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-29 12:23:28 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-29 13:34:28 +0000
commitf8f2b4da0e6eaaf0aeed6f6d613d86d599aafcd3 (patch)
tree850f6cb307eac11f415ec978592dfb4343d64519 /pkg/manager/diff_test.go
parentba28e0a86a1747112e1216d1f602ca4254bdf1f7 (diff)
pkg/manager: improve patched crash skip rules
The rules were too generic - there are plenty of functions that have "stall" as substring, yet they do not relate to rcu stall bugs. Improve the rules list and add a unit test.
Diffstat (limited to 'pkg/manager/diff_test.go')
-rw-r--r--pkg/manager/diff_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/manager/diff_test.go b/pkg/manager/diff_test.go
index 9e27dc288..454a92831 100644
--- a/pkg/manager/diff_test.go
+++ b/pkg/manager/diff_test.go
@@ -107,3 +107,16 @@ func TestModifiedSymbols(t *testing.T) {
assert.Equal(t, []string{"function", "function2"}, modifiedSymbols(base, patched))
})
}
+
+func TestSkipDiffRepro(t *testing.T) {
+ for title, skip := range map[string]bool{
+ "no output from test machine": true,
+ "SYZFAIL: read failed": true,
+ "lost connection to test machine": true,
+ "INFO: rcu detected stall in clone": true,
+ "WARNING in arch_install_hw_breakpoint": false,
+ "KASAN: slab-out-of-bounds Write in __bpf_get_stackid": false,
+ } {
+ assert.Equal(t, skip, skipDiffRepro(title), "title=%q", title)
+ }
+}