Repository navigation
test(claude): wait for complete fixture readiness URLs - #8576
Conversation
|
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. Hygiene✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Ingwannu
left a comment
There was a problem hiding this comment.
Approved for exact head 8c757d2dbfe7a1add219c15e5166b622aa0d0926 targeting dev.
The complete one-file test-only diff waits for newline-terminated readiness output before returning the URL, and feeds the real fixture stdout through deterministic one-byte chunks. It retains the isolated fake security executable, original child lifecycle and750ms health deadline. The actual hosted run43418315068 executed both portable pending-metadata HTTP cases successfully; the changed real-security-child case is Darwin-only and was skipped on Ubuntu. The author's current-head macOS29-pass receipt is reported separately, not relabeled as my independent native execution. This approval is source review of the fixture fix plus successful selected CI and the declared author platform validation; it is not new native Keychain/Windows certification.
Fresh Ready/head/review/thread state is clear and the branch is within the policy ancestry limit. Other Cargo workloads occupied the shared local host, so local testing was deferred without overlapping/killing that work or raising limits. Hosted execution and author receipts are identified above. No live service/config/native-account change, scan, new cross-platform dispatch, merge or release was performed.
|
Maintainer integration into
Thanks @atinseau. |
Summary
The Darwin HTTP regression carried from #8450 into #8569 accepts a readiness marker before its URL is complete. If stdout splits at that point, the test fetches an empty or partial address and fails before exercising the pending Keychain lookup.
Consume newline-terminated lines before parsing the URL, as the other fixture in the file already does. Feed the real child process's stdout through deterministic one-byte chunks to exercise the split marker and URL without depending on OS buffering or sleeps. The fixture still uses a real server and a fake
securityexecutable isolated by PATH; no native Keychain is accessed.Addresses #8569 (comment). Runtime code, child signaling, and the 750 ms health deadline are unchanged. No user documentation update is needed for this test-only fix.
Co-authored-by: lidge-jun [email protected]
Verification
Current-head validation at
86ff98dc91767a016ec739c53552731ed1805c2eafter mergingdev873ec9b3b8ddf63f06738748d9132d779abefb42:bun test tests/oauth/claude-keychain-read.test.ts tests/claude-integration/claude-keychain-healthz.test.ts: 29 pass, 0 fail across two files, including all three HTTP cases on this Mac and the unchanged 750 ms health deadline.bun run typecheck: no errors in 2,533 files.bun run privacy:scan,bun run structure:checkandgit diff --check --cached origin/dev(before this commit): pass.bun test tests/ci-workflows/file-size-ratchet.test.ts: 9 pass, 0 fail.bun test tests/cli/uninstall.test.ts tests/codex-integration/native-profile-healthz.test.ts— 72 pass, 0 fail across two files. The production profile switch uses a real peer-process lock;/healthzanswers within 750 ms before releasing it, then switch and auth-file assertions pass.1ba8deedand this new base, including the Claude settings GET route, scanner, credential fence, launchd recovery and production native-profile HTTP regression.cfaf752c: one-byte stdout chunks make the old parser fail withERR_INVALID_URL; the complete-line parser passes. That reproduction was not repeated for this base refresh.Checklist
Review readiness checklist
Ready for review based on the scoped local checks above; this does not claim fresh automated review or upstream CI completion.