From e68b530733373b0ff90ba2e7826c2a87f8b24d8e Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Fri, 10 Dec 2021 22:19:28 -0800 Subject: [PATCH] tests: Lowers the number of pods returned by estimateMaximumPods The Conformance test "should orphan pods created by rc if delete options say so" is spawning 80% of the Cluster's Pod Availability (on a 2 node setup, with 30 Pods capacity each, it spawns 48 pods). Because of this, tests that are running in parallel with this test has a higher chance to flake, causing them to timeout because they didn't get to spawn the necessary Pods within the expected 1 minute time. Lowering the percentage should reduce the ammount of flakes we see. --- test/e2e/apimachinery/garbage_collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/apimachinery/garbage_collector.go b/test/e2e/apimachinery/garbage_collector.go index c608878a92b..c6cf2440a5c 100644 --- a/test/e2e/apimachinery/garbage_collector.go +++ b/test/e2e/apimachinery/garbage_collector.go @@ -68,7 +68,7 @@ func estimateMaximumPods(c clientset.Interface, min, max int32) int32 { availablePods += 10 } //avoid creating exactly max pods - availablePods = int32(float32(availablePods) * 0.8) + availablePods = int32(float32(availablePods) * 0.5) // bound the top and bottom if availablePods > max { availablePods = max