From 54afeecfb04a1cb6a0bb8723fec248dee0fe6410 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sat, 5 Sep 2026 15:14:31 -0700 Subject: [PATCH] bench: require an explicit CLI framing baseline --- config/scripts/benchmark-cli-response-framing.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/scripts/benchmark-cli-response-framing.mjs b/config/scripts/benchmark-cli-response-framing.mjs index 8e330d0ad62..40aab8d08f7 100644 --- a/config/scripts/benchmark-cli-response-framing.mjs +++ b/config/scripts/benchmark-cli-response-framing.mjs @@ -7,9 +7,10 @@ import { dirname, resolve } from 'node:path' import { performance } from 'node:perf_hooks' import { build } from 'esbuild' -// Run from the worktree root: node config/scripts/benchmark-cli-response-framing.mjs [base-ref] +// Run from the worktree root: node config/scripts/benchmark-cli-response-framing.mjs const sourcePath = 'src/cli/runtime/transport.ts' -const baselineRef = process.argv[2] ?? 'HEAD' +const baselineRef = process.argv[2] +assert.ok(baselineRef, 'Pass the pre-change transport revision as base-ref.') const beforeSource = execFileSync('git', ['show', `${baselineRef}:${sourcePath}`], { encoding: 'utf8' })