352
// selectTopFlakyTests selects the top-N flakiest tests that meet minimum signal thresholds.
353
// allRuns is the full set of test runs. Returns normalized test names sorted by failure rate desc.
355
>
type testStats struct {
356
>
fails int
357
>
total int
358
>
}
359
>
stats := make(map[string]*testStats)
360
>
for _, run := range allRuns {
361
>
if run.Skipped {
363
}
364
name := normalizeTestName(run.Name)