Repository navigation
test(claude): inject NSS stat failures across platforms - #8963
Conversation
Throw EACCES for the legacy NSS directory lookup so the trust regression covers a stat failure independently of OS-specific path length errors.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Maintainer integration (lidge-jun, dev-only path in MAINTAINERS.md; dev-fix freeze exception assigned by the coordinator) at head
NOT RUN: full local suite, the lane=all Windows batch (left to the coordinator). |
Summary
lstatSyncspy that throwsEACCESfor the legacy NSS directory. The spy delegates other calls to the real implementation and is restored infinally.unknowntrust state and zero certutil calls across platforms. The Windows shard in CI run 44559432373 reported the long path as absent. This PR changes one test file.Verification
bun test tests/claude-integration/claude-picker-trust-linux.test.ts tests/claude-integration/claude-picker-trust.test.ts— 46 passed, 0 failed, 0 skipped on macOS with Bun 1.4.4.bun test tests/ci-workflows/file-size-ratchet.test.ts tests/test-layout.test.ts— 11 passed, 0 failed, 0 skipped. The test file is 807 lines, below the 2,000-line threshold.bun run typecheck— passed across 2,666 files.bun run privacy:scanandgit diff --check— passed. The committed diff also passedgit diff --check HEAD^ HEAD.EACCESas absence instatIfPresent. The targeted test exited 1, expectingunknownand receivinguntrusted. Restored the original production bytes before running the two picker suites.Checklist
Summary by CodeRabbit