add cpi log directory to allowed volumes, refactor bpm.yml#2762
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis change refactors ChangesRelated PRs: None found Suggested labels: director, bpm, refactor Suggested reviewers: cloudfoundry/bosh-director-maintainers 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
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 `@jobs/director/templates/bpm.yml`:
- Around line 66-68: The worker loop still duplicates the construction of the
"env" and "unsafe" fields in bpm.yml, so extract that shared logic into a small
helper and reuse it from both worker loops. Use the existing worker hash
assembly around the worker["env"] and worker["unsafe"] assignments to centralize
the merge of worker_thread_env with QUEUE and the conditional
unrestricted_volumes handling, keeping both loops consistent and reducing
duplication.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 490049f7-848a-4bf9-a4f0-1c7ea287ee04
📒 Files selected for processing (1)
jobs/director/templates/bpm.yml
The warden CPI was failing because it could not write logs. Fix should work for all CPIs. Also cleaned up some duplication in bpm.yml.
9bfb104 to
0cc823c
Compare
The warden CPI was failing because it could not write logs. Fix should work for all CPIs.
Also cleaned up some duplication in bpm.yml.