fix(codex): pin Darwin process utility path - #1362
Conversation
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughDarwin process enumeration and process start-time queries now invoke ChangesDarwin process command resolution
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
|
Please rebase this PR onto the latest |
880b372 to
e0f1388
Compare
|
|
🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
repo="lidge-jun/opencodex"
pr="1362"
required_dev_sha="e8ce2b93dd3ef8074d96dee407704c5dc06e2699"
echo "== Pull request metadata =="
gh pr view "$pr" --repo "$repo" \
--json number,state,isDraft,headRefName,headRefOid,baseRefName,baseRefOid,mergeStateStatus,statusCheckRollup \
--jq '{
number,
state,
isDraft,
headRefName,
headRefOid,
baseRefName,
baseRefOid,
mergeStateStatus,
checks: [.statusCheckRollup[] | {name, status, conclusion, detailsUrl}]
}'
echo
echo "== Exact-head check runs =="
head_sha="$(gh pr view "$pr" --repo "$repo" --json headRefOid --jq .headRefOid)"
gh api "repos/${repo}/commits/${head_sha}/check-runs?per_page=100" \
--jq '.check_runs[] | {name, status, conclusion, details_url}'
echo
echo "== Required dev commit ancestry =="
git cat-file -e "${required_dev_sha}^{commit}"
git cat-file -e "${head_sha}^{commit}"
if git merge-base --is-ancestor "$required_dev_sha" "$head_sha"; then
printf 'PASS: %s is an ancestor of %s\n' "$required_dev_sha" "$head_sha"
else
printf 'FAIL: %s is not an ancestor of %s\n' "$required_dev_sha" "$head_sha"
exit 1
fiLength of output: 12945
I will review the current PR head.
|
|
Thanks @luvs01 — nice focused hardening here. Pinning the Darwin process probes to |
Summary
/bin/psbinary instead of resolvingpsthroughPATH.execFileSync("ps", ...)invocation.This prevents a modified local
PATHfrom substituting another executable during Codex app-server synchronization and staleness checks.Verification
bun test tests/codex-app-server-processes.test.ts— 31 passed, 0 failed on Bun 1.3.14.bun run typecheckbun run privacy:scangit diff --checkChecklist
Review readiness checklist
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
Bug Fixes
Tests