From 86024c3ef18b6bc26cc09eebaeb4a3eb9ce1764d Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Mon, 10 Apr 2023 13:42:45 -0700 Subject: [PATCH] CI: only comment tests with < 50% flake rate --- hack/jenkins/test-flake-chart/report_flakes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/jenkins/test-flake-chart/report_flakes.sh b/hack/jenkins/test-flake-chart/report_flakes.sh index ec2f91e1e2..063933b212 100755 --- a/hack/jenkins/test-flake-chart/report_flakes.sh +++ b/hack/jenkins/test-flake-chart/report_flakes.sh @@ -78,7 +78,7 @@ awk -F, 'NR>1 { # 4) Sort failed test flake rates based on the flakiness of that test - stable tests should be first on the list. # 5) Append to file $TMP_FAILED_RATES. awk -F, 'NR>1 { - printf "%s:%s,%s\n", $1, $2, $3 + if ($3 < 50) printf "%s:%s,%s\n", $1, $2, $3 }' "$TMP_FLAKE_RATES" \ | sort -t, -k1,1 \ | join -t , -j 1 "$TMP_DATA" - \