Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

fix(perf): fail the gate when a measured read command exits non-zero

KageBinary6713cf0a221d
diff --git a/ix-cli/scripts/perf-gate.mjs b/ix-cli/scripts/perf-gate.mjs
index bacc48d7..65cbb787 100644
--- a/ix-cli/scripts/perf-gate.mjs
+++ b/ix-cli/scripts/perf-gate.mjs
@@ -144,7 +144,10 @@ async function main() {
}
sc.prepare?.(co, i);
const r = measure(base, co, sc.args(co), log);
- if (sc.name.startsWith("map") && r.status !== 0) throw new Error(`${sc.name} failed (exit ${r.status}): ${r.stderr}`);
+ // Every command, not only the maps: a read that errors out (a renamed
+ // symbol, a crash) makes fewer requests and fewer bytes, which the
+ // budgets alone would score as an improvement.
+ if (r.status !== 0) throw new Error(`${sc.name} failed (exit ${r.status}): ${r.stderr}`);
runs.push(r);
}
results[sc.name] = {