From f6fa1daab75270b0961d370d008dd33ebd303af2 Mon Sep 17 00:00:00 2001 From: Ivan Valdes Date: Wed, 1 May 2024 11:24:41 -0700 Subject: [PATCH] tools/testgrid-analysis: fix var-naming warnings Signed-off-by: Ivan Valdes --- tools/testgrid-analysis/cmd/data.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testgrid-analysis/cmd/data.go b/tools/testgrid-analysis/cmd/data.go index 899523aa2..1b18ca593 100644 --- a/tools/testgrid-analysis/cmd/data.go +++ b/tools/testgrid-analysis/cmd/data.go @@ -110,9 +110,9 @@ func processRow(dashboard, tab string, row *apipb.ListRowsResponse_Row, allTests t.FailureLogs = logs t.FailureRate = float32(failed) / float32(total) if t.FailedRuns > 0 { - dashboardUrl := fmt.Sprintf("[%s](https://testgrid.k8s.io/%s#%s)", tab, dashboard, tab) + dashboardURL := fmt.Sprintf("[%s](https://testgrid.k8s.io/%s#%s)", tab, dashboard, tab) t.IssueBody = fmt.Sprintf("## %s Test: %s \nTest failed %.1f%% (%d/%d) of the time\n\nfailure logs are:\n| commit | started | log |\n| --- | --- | --- |\n%s\n", - dashboardUrl, t.FullName, t.FailureRate*100, t.FailedRuns, t.TotalRuns, strings.Join(t.FailureLogs, "\n")) + dashboardURL, t.FullName, t.FailureRate*100, t.FailedRuns, t.TotalRuns, strings.Join(t.FailureLogs, "\n")) t.IssueBody += "\nPlease follow the [instructions in the contributing guide](https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#check-for-flaky-tests) to reproduce the issue.\n" fmt.Printf("%s failed %.1f%% (%d/%d) of the time\n", t.FullName, t.FailureRate*100, t.FailedRuns, t.TotalRuns) }