From d798e6c50165de35e0136a56a9dbe205b05fa5d8 Mon Sep 17 00:00:00 2001 From: Medya Ghazizadeh Date: Tue, 9 Jul 2024 15:19:54 -0700 Subject: [PATCH] Update hack/jenkins/test-flake-chart/report_flakes/report_flake.go Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com> --- hack/jenkins/test-flake-chart/report_flakes/report_flake.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/jenkins/test-flake-chart/report_flakes/report_flake.go b/hack/jenkins/test-flake-chart/report_flakes/report_flake.go index 94bdfd452d47..5223dbacfd0f 100644 --- a/hack/jenkins/test-flake-chart/report_flakes/report_flake.go +++ b/hack/jenkins/test-flake-chart/report_flakes/report_flake.go @@ -150,7 +150,8 @@ func generateCommentMessage(summaries map[string]*shortSummary, flakeRates map[s for env, summary := range summaries { failedTestList := []failedTest{} for _, test := range summary.FailedTests { - // if we cannot find the test, we assign the flake rate as -1, meaning N/A + // if we cannot find the test, we assign the flake rate + // as -1, meaning N/A flakerate := unknown if v, ok := flakeRates[env][test]; ok { flakerate = v