From 023dcd71de0ebe7e1e3e136bee870416b4f2d47c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Sep 2026 15:18:23 +0000 Subject: [PATCH] test(scripts): release-rehearsal-clone's C2 green line is stable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The C2 case interpolated the measured wall-clock figure into its label, so the `✓` line carried a value that differs from run to run and the "green lines byte-identical" comparison could never pass unnormalised. The figure now prints through the failure sink `t()`/`report()` already carry, so a red run still names the timing while the green line is stable. Condition, threshold, roster, floor and registration are unchanged. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk --- scripts/pm/release-rehearsal-clone.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/pm/release-rehearsal-clone.mjs b/scripts/pm/release-rehearsal-clone.mjs index d338bdc15a..ef88cbcec9 100755 --- a/scripts/pm/release-rehearsal-clone.mjs +++ b/scripts/pm/release-rehearsal-clone.mjs @@ -667,7 +667,11 @@ function selfTest() { const healthyMs = Date.now() - startedAt; t('C2 full clone → exit 0 (fit)', healthyRun.status === 0, `exit=${healthyRun.status}\n${healthyRun.stdout}${healthyRun.stderr}`); t('C2 fit verdict is stated, not implied', /✓ FIT/.test(healthyRun.stdout), healthyRun.stdout); - t(`C2 a healthy tree is not slowed (${healthyMs} ms < 10000)`, healthyMs < 10_000); + // The measured figure prints in the FAILURE sink, never in the label: a green + // line carrying a wall-clock reading differs from run to run, so the + // `green lines are byte-identical` comparison this script is rehearsed with + // could never pass unnormalised. A red run still names the timing. + t('C2 a healthy tree is not slowed (< 10000 ms)', healthyMs < 10_000, `measured ${healthyMs} ms`); // ── C3: a SHALLOW clone whose changesets sit after the boundary is fit. // This is the no-crying-wolf half: `--is-shallow-repository` is true here.