Repository navigation
test(codex): give the native toggle fixture its own service-manager evidence - #6834
Conversation
Codex Review SummaryThis 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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
* docs(devlog): record the #6777 fixture implementation * docs(devlog): record the #6776 fixture implementation * docs(devlog): close the N3 test-infra unit (#6775, #6777, #6776) Moves devlog/_plan/261009_n3_test_infra to devlog/_fin with an Outcome section recording #6835 (7f642e3), #6833 (6d7e5f4) and #6834 (c4baa30), their exact-head CI, the union check, and the scope left as follow-ups. * docs(devlog): say which N3 CI jobs were skipped
Summary
Fixes #6776.
tests/codex-integration/native-codex-toggle.test.ts("the status read follows an off-then-on round trip…") failed with aservice-homeownership refusal on machines that have an opencodex service registered.Enabling Codex runs production admission, which calls
inspectServiceManagerInstallation(src/integrations/native/ownership-preflight.ts). That probe asks the real service manager (launchctl print gui/<uid>/…on macOS,systemctl --user show opencodex-proxyon Linux), and HOME cannot redirect either. The fixture'sservice-state.jsonis read correctly (kind: "valid"), but a live registration the sandbox plist cannot explain makes ownership unprovable, so the write is refused and the status readsabsent. Hosted runners have no registration, which is why CI passed.Test-only change: the fixture stubs
inspectServiceManagerInstallationto{ kind: "absent" }inbeforeEachand restores it inafterEach, and a new case asserts the probe is consulted during enable, so the stub stays on the admission path. The fixture's state file is still validated by the real reader. The production ownership boundary is unchanged.Verification
All local runs started Bun with a fresh temporary
HOME,USERPROFILEandCLAUDE_CONFIG_DIR.state: "absent"). Same simulation with this change: 14 pass / 0 fail.bun test tests/codex-integration/native-codex-toggle.test.ts: 14 pass, 0 fail.bun test tests/ci-workflows/file-size-ratchet.test.ts: pass.bun run typecheck: exit 0.Checklist