feat: move cleanup after hardening, to have more extensibility - #701
feat: move cleanup after hardening, to have more extensibility#701h0nIg wants to merge 1 commit into
Conversation
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
WalkthroughThe stage sequences for OpenStack, CloudStack, vSphere/vCloud, AWS, Alicloud, Google, Warden, and Azure now run 🚥 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 |
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 `@bosh-stemcell/lib/bosh/stemcell/stage_collection.rb`:
- Around line 160-161: Update the AWS stage-order expectation in the stage
collection spec to match the new order, asserting :bosh_harden before
:bosh_clean. Keep the remaining expected stage sequence unchanged.
🪄 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 Plus
Run ID: 4c3b10e4-c3e1-4598-9fbf-d4aa9fc5461c
📒 Files selected for processing (1)
bosh-stemcell/lib/bosh/stemcell/stage_collection.rb
511d7a3 to
e877bd7
Compare
Move bosh_harden before bosh_clean to establish a clear ordering:
stages that require network access or install packages must run before bosh_clean zeros out /etc/resolv.conf and removes build-environment artifacts. Stages that follow bosh_clean - such as bosh_clean_ssh and udev_aws_rules - only manipulate static files and do not require DNS resolution.
This ordering makes the boundary explicit: bosh_clean separates network-dependent preparation from network-independent configuration, and any future hardening or customization stage inserted in this window inherits the correct invariant without needing to re-introduce DNS availability manually.