summaryrefslogtreecommitdiff
path: root/Magefile.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-22 23:00:03 +0200
committerPaul Buetow <paul@buetow.org>2026-02-22 23:00:03 +0200
commit1666ba49ef9e5b61e14d1a32d2f6e2380064105e (patch)
tree182b5e7b8e3464fefac256c22118312388c41bc9 /Magefile.go
parent86a96020fb63cf15ee6d20ec3058a462b5cacd7e (diff)
Fix event comm attribution and reduce integration log noise
Diffstat (limited to 'Magefile.go')
-rw-r--r--Magefile.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/Magefile.go b/Magefile.go
index 7e88141..86e5958 100644
--- a/Magefile.go
+++ b/Magefile.go
@@ -672,14 +672,43 @@ func envToList(env map[string]string) []string {
}
func shouldPrintTestLog(msg string) bool {
+ // Always keep error/failure lines.
+ if strings.Contains(msg, "--- FAIL:") ||
+ strings.Contains(msg, " FAIL ") ||
+ strings.Contains(msg, "panic:") ||
+ strings.Contains(strings.ToLower(msg), "error") ||
+ strings.Contains(strings.ToLower(msg), "expected event not found") {
+ return true
+ }
+
// Drop high-volume attach/debug noise from ior startup in integration tests.
noisePrefixes := []string{
+ "=== RUN",
+ "___",
+ "|_ _|",
+ "| |",
+ "|___",
+ "v0.0.0",
+ "libbpf:",
"ShouldIAttachTracepoint called with ",
"Attaching tracepoint ",
"Attached prog handle_ ",
"Attached tracepoint",
"Attaching sys_",
"Not attaching sys_",
+ "Collecting flame graph stats",
+ "Starting flamegraph worker",
+ "Waiting for stats to be ready",
+ "Stopping event loop",
+ "Waiting for flamegraph",
+ "Worker ",
+ "Writing ",
+ "Good bye...",
+ "Statistics:",
+ "duration:",
+ "tracepoints:",
+ "syscalls:",
+ "syscalls after filter:",
}
for _, p := range noisePrefixes {
if strings.HasPrefix(msg, p) {