Skip to content

Say what the pre-pending marker test actually proves - #13

Merged
g4lb merged 1 commit into
mainfrom
docs/abort-test-comment
Sep 15, 2026
Merged

g4lb merged 1 commit into
mainfrom
docs/abort-test-comment

Conversation

@g4lb

@g4lb g4lb commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

The CLI test for an already-pending forced-stop marker carried a comment claiming its 8s test gate turned "noticed late" into an unmissably slow run. It doesn't.

Without the evalOnce entry checkpoint, the poll still fires at ~500ms and the abort listener Runner registers kills the gate subprocess mid-flight — so the same verdict arrives at roughly the same speed by an older route. The 0.2.2 whole-branch review traced this and measured it at ~840ms.

So the test passes with or without the fix it sits next to, and its comment implied the opposite. That's the harmful direction: a reader trusting it would believe the checkpoint was covered there, and delete the unit test in pipeline.test.js that actually discriminates.

Both tests stay. The comments now say which one guards the end-to-end contract and which one guards the fix. The timing ceiling keeps its purpose — an eval that sat through the gate would blow it whichever route noticed the marker — and now says to raise the ceiling rather than trim the gate if windows-latest ever flakes.

Comment-only. No test or source behaviour changes; git diff has no non-comment lines. Test files aren't in the published tarball, so no release is needed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FV5Usy3xLiz4ngEp6zPC5L

The test claimed its 8s gate turned "noticed late" into an unmissably slow
run. It does not. Without the evalOnce entry checkpoint the poll still fires
at ~500ms, and the abort listener Runner registers kills the gate subprocess
mid-flight, so the same verdict arrives at roughly the same speed by an older
route — the whole-branch review traced this and measured it at ~840ms.

So the test passes with or without the fix it sat next to, and its comment
implied otherwise. That is the worse failure: a reader trusting it would
believe the checkpoint was covered here, and delete the unit test in
pipeline.test.js that actually discriminates.

Both stay, and the comments now say which does what. The timing ceiling keeps
its point — an eval that sat through the gate would blow it whichever route
noticed the marker — and says to raise it rather than trim the gate if
windows-latest ever flakes.

Comment-only; no test or source behaviour changes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FV5Usy3xLiz4ngEp6zPC5L
@g4lb
g4lb merged commit 3b24e83 into main Sep 15, 2026
6 checks passed
@g4lb
g4lb deleted the docs/abort-test-comment branch September 15, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant