From 34732705db1eb39b789c9bcd19699f41f33fc5a7 Mon Sep 17 00:00:00 2001 From: Jake Alti Date: Mon, 6 Apr 2026 13:21:22 -0700 Subject: [PATCH] kube: remove 4000-rule benchmark case to avoid CI timeout (#65240) --- lib/kube/proxy/fast_matcher_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/kube/proxy/fast_matcher_test.go b/lib/kube/proxy/fast_matcher_test.go index f94133dc048..663c90e1d4a 100644 --- a/lib/kube/proxy/fast_matcher_test.go +++ b/lib/kube/proxy/fast_matcher_test.go @@ -846,7 +846,12 @@ func BenchmarkFilterObj(b *testing.B) { return rf, obj } - for _, ruleCount := range []int{4, 50, 150, 4000} { + // 150 rules is a realistic upper bound for most deployments. + // The theoretical maximum is ~4000 kubernetes_resources entries per role + // (limited by the backend object size), but that case is excluded because + // the default_matcher sub-benchmark takes ~125s per iteration at 4000 rules + // and causes CI timeouts. + for _, ruleCount := range []int{4, 50, 150} { allowed, denied := buildRules(ruleCount) for _, itemCount := range []int{500, 5000} {