@@ -201,6 +201,7 @@ func (w *auditLogAnalyzer) EvaluateTestsFromConstructedIntervals(ctx context.Con
201201 flakes := []string {}
202202 for username , numberOfApplies := range usersToApplies {
203203 if numberOfApplies > 200 {
204+ errorMessage := fmt .Sprintf ("user %v had %d applies, check the audit log and operator log to figure out why" , username , numberOfApplies )
204205 switch username {
205206 case "system:serviceaccount:openshift-infra:serviceaccount-pull-secrets-controller" ,
206207 "system:serviceaccount:openshift-network-operator:cluster-network-operator" ,
@@ -210,9 +211,9 @@ func (w *auditLogAnalyzer) EvaluateTestsFromConstructedIntervals(ctx context.Con
210211
211212 // These usernames are already creating more than 200 applies, so flake instead of fail.
212213 // We really want to find a way to track namespaces created by the payload versus everything else.
213- flakes = append (flakes , fmt . Sprintf ( "user %v had %d applies, check the audit log and operator log to figure out why" , username , numberOfApplies ) )
214+ flakes = append (flakes , errorMessage )
214215 default :
215- failures = append (failures , fmt . Sprintf ( "user %v had %d applies, check the audit log and operator log to figure out why" , username , numberOfApplies ) )
216+ failures = append (failures , errorMessage )
216217 }
217218 }
218219 }
@@ -234,7 +235,7 @@ func (w *auditLogAnalyzer) EvaluateTestsFromConstructedIntervals(ctx context.Con
234235 & junitapi.JUnitTestCase {
235236 Name : testName ,
236237 FailureOutput : & junitapi.FailureOutput {
237- Message : strings .Join (failures , "\n " ),
238+ Message : strings .Join (flakes , "\n " ),
238239 Output : "details in audit log" ,
239240 },
240241 },
0 commit comments