From c5b473a3f12ac1a940e2e3e9bbc9a36443cba8e9 Mon Sep 17 00:00:00 2001 From: Rahul Krishna Date: Sat, 5 Sep 2026 20:56:14 -0400 Subject: [PATCH] test: lift scaling guards above runner noise floor The 10k/2k small measurements landed near CI's noise floor (~12ms), so ordinary scheduler/GC jitter on the large run could trip the ratio bound and abort a release. Raise the sizes so the small measurement clears ~50ms on a typical runner while keeping the same ratio bounds, best-of-3, and absolute ceiling. --- internal/dialects/helm/templates_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/dialects/helm/templates_test.go b/internal/dialects/helm/templates_test.go index 053cf3b..e10c212 100644 --- a/internal/dialects/helm/templates_test.go +++ b/internal/dialects/helm/templates_test.go @@ -586,10 +586,10 @@ func TestTemplateParsingScalesNearLinearly(t *testing.T) { return duration } - small := measure(10_000) - large := measure(40_000) + small := measure(22_000) + large := measure(88_000) if limit := small*8 + 25*time.Millisecond; large > limit { - t.Fatalf("40k actions took %s after 10k took %s; want <= %s", large, small, limit) + t.Fatalf("88k actions took %s after 22k took %s; want <= %s", large, small, limit) } } @@ -612,13 +612,13 @@ func TestTemplateDenseSingleLineParsingScalesNearLinearly(t *testing.T) { return best } - small := measure(2_000) - large := measure(8_000) + small := measure(24_000) + large := measure(96_000) if limit := small*9 + 50*time.Millisecond; large > limit { - t.Fatalf("8k dense same-line actions took %s after 2k took %s; want <= %s", large, small, limit) + t.Fatalf("96k dense same-line actions took %s after 24k took %s; want <= %s", large, small, limit) } if large > 5*time.Second { - t.Fatalf("8k dense same-line actions took %s; want <= 5s", large) + t.Fatalf("96k dense same-line actions took %s; want <= 5s", large) } }