Adopt running-process 4.6.0 daemon environment policy#1169
Conversation
📝 WalkthroughWalkthroughThe CLI now constructs a baseline user environment for spawned daemons, clears inherited variables, applies that baseline, and maps environment construction failures to ChangesDaemon Environment Baseline
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/fbuild-cli/src/daemon_client.rs`:
- Around line 937-942: Update the command environment setup near
cmd.env_clear().envs(baseline) to explicitly preserve the caller’s
FBUILD_DAEMON_PORT override after clearing inherited variables, while retaining
the baseline environment and existing VIRTUAL_ENV handling.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 3b6abc54-cb24-414c-bfb2-9744f2a04fad
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (2)
Cargo.tomlcrates/fbuild-cli/src/daemon_client.rs
|
Review follow-up after this PR auto-merged: #1170 preserves FBUILD_DAEMON_PORT and the full documented FBUILD_* daemon-control namespace while retaining lineage isolation. |
Summary
Validation
The check passed with one existing unrelated GUID_DEVCLASS_USB unused-import warning.
Depends on zackees/running-process#653 and running-process 4.6.0: https://github.com/zackees/running-process/releases/tag/4.6.0
Summary by CodeRabbit