From 6dbf8aae488f9351a40ec994059a4d5b4ec87c97 Mon Sep 17 00:00:00 2001 From: ruv Date: Sun, 4 Oct 2026 21:21:45 -0400 Subject: [PATCH] =?UTF-8?q?fix(ci):=20MetaHarness=20parse=20bench=20ceilin?= =?UTF-8?q?g=2030us=20on=20the=20median=20=E2=80=94=20the=20CI=20runner's?= =?UTF-8?q?=20p50=20is=206us=20for=20the=205-finding=20payload?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 5us ceiling failed smoke-all on speed alone (artifact: rich p50 6.051us, mean 6.93us). Co-Authored-By: RuFlo --- plugins/ruflo-metaharness/scripts/smoke.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ruflo-metaharness/scripts/smoke.sh b/plugins/ruflo-metaharness/scripts/smoke.sh index ddda208fb5..bacebdb908 100755 --- a/plugins/ruflo-metaharness/scripts/smoke.sh +++ b/plugins/ruflo-metaharness/scripts/smoke.sh @@ -1066,11 +1066,11 @@ done grep -q "from './_harness.mjs'" "$F" 2>/dev/null || miss="$miss not-using-production-parser" # Gate flag exposed grep -q -- "--max-mean-us" "$F" 2>/dev/null || miss="$miss no-gate-flag" -# Runtime: bench produces sub-5μs results across all categories +# Runtime: the parse bench stays an order of magnitude inside its regression ceiling. 30us on the MEDIAN: the CI runner measured p50 6.05us for the 5-finding payload (local 1us), so the old 5us ceiling failed there on speed alone; 30us is 5x the CI median and still trips on a 10x regression. # The median, not the mean: a scheduler pause on a loaded CI runner moves the mean and flaked this step in the fleet smoke. grep -q -- "--gate-stat" "$F" 2>/dev/null || miss="$miss no-gate-stat-flag" # On failure keep the bench's own output on stderr (the fleet JSON report captures stderrTail): the reason was invisible in CI before. -bench_out=$(node "$F" --iters 10000 --max-mean-us 5 --gate-stat p50 2>&1) || { miss="$miss runtime-fails-or-perf-blew-5us"; printf '%s\n' "$bench_out" | tail -15 >&2; } +bench_out=$(node "$F" --iters 10000 --max-mean-us 30 --gate-stat p50 2>&1) || { miss="$miss runtime-fails-or-perf-blew-30us"; printf '%s\n' "$bench_out" | tail -15 >&2; } # Runtime: gate trips on absurd ceiling if node "$F" --iters 10000 --max-mean-us 0.0001 --gate-stat p50 >/dev/null 2>&1; then miss="$miss gate-failed-to-trip"