Skip to content

Commit 023dcd7

Browse files
committed
test(scripts): release-rehearsal-clone's C2 green line is stable
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
1 parent 52d5a52 commit 023dcd7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/pm/release-rehearsal-clone.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,11 @@ function selfTest() {
667667
const healthyMs = Date.now() - startedAt;
668668
t('C2 full clone → exit 0 (fit)', healthyRun.status === 0, `exit=${healthyRun.status}\n${healthyRun.stdout}${healthyRun.stderr}`);
669669
t('C2 fit verdict is stated, not implied', / FIT/.test(healthyRun.stdout), healthyRun.stdout);
670-
t(`C2 a healthy tree is not slowed (${healthyMs} ms < 10000)`, healthyMs < 10_000);
670+
// The measured figure prints in the FAILURE sink, never in the label: a green
671+
// line carrying a wall-clock reading differs from run to run, so the
672+
// `green lines are byte-identical` comparison this script is rehearsed with
673+
// could never pass unnormalised. A red run still names the timing.
674+
t('C2 a healthy tree is not slowed (< 10000 ms)', healthyMs < 10_000, `measured ${healthyMs} ms`);
671675

672676
// ── C3: a SHALLOW clone whose changesets sit after the boundary is fit.
673677
// This is the no-crying-wolf half: `--is-shallow-repository` is true here.

0 commit comments

Comments
 (0)