diff --git a/pkg/monitortestlibrary/allowedalerts/types.go b/pkg/monitortestlibrary/allowedalerts/types.go index 88a8b8b70425..75fded773fac 100644 --- a/pkg/monitortestlibrary/allowedalerts/types.go +++ b/pkg/monitortestlibrary/allowedalerts/types.go @@ -40,7 +40,8 @@ var AllowedAlertNames = []string{ "Watchdog", "AlertmanagerReceiversNotConfigured", "PrometheusRemoteWriteDesiredShards", - "KubeJobFailingSRE", // https://issues.redhat.com/browse/OCPBUGS-55635 + "KubeJobFailingSRE", // https://issues.redhat.com/browse/OCPBUGS-55635 + "CreateMustGather.*", // https://issues.redhat.com/browse/SREP-4796 // indicates a problem in the external Telemeter service, presently very common, does not impact our ability to e2e test: "TelemeterClientFailures", diff --git a/pkg/monitortests/testframework/legacytestframeworkmonitortests/alerts.go b/pkg/monitortests/testframework/legacytestframeworkmonitortests/alerts.go index 4ffa3af37dc6..d2e2cf50b6dc 100644 --- a/pkg/monitortests/testframework/legacytestframeworkmonitortests/alerts.go +++ b/pkg/monitortests/testframework/legacytestframeworkmonitortests/alerts.go @@ -3,6 +3,7 @@ package legacytestframeworkmonitortests import ( "context" "fmt" + "regexp" "strings" "time" @@ -239,7 +240,7 @@ func runBackstopTest( func isSkippedAlert(alertName string) bool { // Some alerts we always skip over in CI: for _, a := range allowedalerts.AllowedAlertNames { - if a == alertName { + if matched, _ := regexp.MatchString("^"+a+"$", alertName); matched { return true } }