Repository navigation
Conversation
The source-identity CLI test runs check.ts fast with CHECK_DIR set, so the nested run takes the PC-wide admission port. Self-hosted runners share one loopback, and lanes waiting for a slot hold that port while they poll. Fast checks sets no CHECK_WAIT_SECONDS, so a moment's overlap refused the nested run before it wrote a report: the test then read the previous report (unchanged: null) or none (ENOENT). Give the nested run a 20 s wait. Holding 127.0.0.1:41745 for 3 s reproduces the ENOENT on the old test; the new one passes under the same hold. Fixes #1225
The two cross-tab regressions waited for their typed barrier through an fs.watch on the temp root with a 5 s limit, and failed on three main pushes in a row on 2026-10-16 with "recorder barrier timed out". The file's own notes say fs.watch can drop a change, and every other barrier here uses waitBytes. Use waitBytes, which reads the recorder's log directly, allows 8 s and shows the bytes it saw when it times out.
The claude case times out intermittently in CI with only "login did not finish". Name whether the fake CLI's receipt was written, whether the pane exited, and what the pane shows, so the next failure tells a CLI that never started from a signal that went unseen. Refs #1260
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
|
@coderabbitai review |
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Change
Three integration and unit tests fail CI intermittently on PRs that do not touch them. This makes one of them reliable (root cause reproduced), hardens another, and makes the third report why it failed. Test code only; production code is untouched, so there is no changelog fragment.
scripts/check.test.ts› "fails closed when source identity is lost after the fast checks" (Fixes CI: check CLI source-identity test fails intermittently in Fast checks #1225). The nestedcheck.ts fastruns withCHECK_DIR, so it takes the PC-wide admission port (41745). The self-hosted runners share one loopback, and lanes waiting for a slot (CHECK_WAIT_SECONDS: 2400) hold that port while they poll. Fast checks sets no wait, so a moment's overlap refused the nested run before it wrote its report. The test then read the previous report (unchanged: null) or found none (ENOENT), which are the two symptoms in the issue. The nested run now getsCHECK_WAIT_SECONDS=20.server/pending-input.contract.test.ts› "two connections share refusal then retry a new attempt once" / "shares a held row's send with its saved copy". The typed barrier was awaited through anfs.watchon the temp root with a 5 s limit. It failed withrecorder barrier timed outon three main pushes in a row on 2026-10-16 (runs 38927859150, 38929423777, 38932829315); no issue was filed. The file's own notes sayfs.watchcan drop a change, and every other barrier in the file useswaitBytes. The barrier now useswaitBytestoo: it reads the recorder log directly, allows 8 s, and prints the bytes it saw on timeout.server/usage-login.contract.test.ts› "starts claude in an isolated credential home" (Refs test: usage-login contract test times out on the claude case in CI (flaky) #1260). The root cause is not found. As the issue suggests, the timeout now says whether the receipt was written, whether the pane exited, and what the pane shows.Not included: the skill-walk ordering failure in Fast checks, which #1251 fixes.
Validation
ENOENT .../.check/report.json(the CI symptom) and the new test passes (6.1 s). It also passes with the port free (2.1 s). Command:HERDR_TEST_MODE=unit bun test --timeout 60000 scripts/check.test.ts -t "fails closed when source identity is lost after the fast checks".bun run check run, all green. So the pending-input change is a hardening whose effect on CI is not yet measured.login did not finish: receipt missing, pane exited; the pane shows: ....bun run check runfor both integration files in full: 80 pass, 0 fail.bun run check fast: exit 0; unit 4,284 pass, 0 fail, 8 skip; typecheck, build and workflow checks pass.