Update hack/jenkins/test-flake-chart/report_flakes/report_flake.go

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
pull/19217/head
Medya Ghazizadeh 2024-07-09 15:19:26 -07:00
parent ab3d58913f
commit 1d4d5d5b0f
1 changed files with 3 additions and 2 deletions

View File

@ -174,8 +174,9 @@ func generateCommentMessage(summaries map[string]*shortSummary, flakeRates map[s
// title of the table // title of the table
{"Environment", "Test Name", "Flake Rate"}, {"Environment", "Test Name", "Flake Rate"},
} }
// if an env has too much failures we will just skip it and print a message in the end // if an env has too many failures we will just skip it and print a
// if the failed tests have high flake rates(over 50% for all), it will also be skipped in the table // message in the end if the failed tests have high flake rates (over
// 50% for all), it will also be skipped in the table
foldedFailures := []string{} foldedFailures := []string{}
for env, list := range envFailedTestList { for env, list := range envFailedTestList {
if len(list) > maxItemEnv { if len(list) > maxItemEnv {