fix: replace files dropped in merge forward#644
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
|
@Ivaylogi98 or @neddp would one of you mind weighing in on whether this is the right fix for the errors in CI from my recent merge forward Jammy => Noble? Thanks! |
There was a problem hiding this comment.
Pull request overview
This PR aims to restore AWS stemcell agent configuration that was lost during a merge-forward, fixing failing AWS stemcell RSpec expectations around NVMe instance storage patterns by ensuring /var/vcap/bosh/agent.json includes the required keys.
Changes:
- Replace the previously shipped
agent.jsonasset with anapply.shheredoc that writes/var/vcap/bosh/agent.jsonduring thebosh_aws_agent_settingsstage. - Add AWS NVMe instance storage patterns (
InstanceStorageDevicePattern,InstanceStorageManagedVolumePattern) to the generated agent config. - Introduce
stemcell_builder/lib/prelude_agent.bashto provide a helper used when generating the JSON.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| stemcell_builder/stages/bosh_aws_agent_settings/assets/agent.json | Removed static AWS agent config asset (now generated during apply). |
| stemcell_builder/stages/bosh_aws_agent_settings/apply.sh | Now generates /var/vcap/bosh/agent.json via heredoc and adds NVMe patterns. |
| stemcell_builder/lib/prelude_agent.bash | New helper providing a JSON snippet for the partitioner type. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hi @aramprice, Thanks for looking into this. I noticed that the same applies for all providers and I think we should do the same for the other provider's agent.sh files on noble to keep it consistent in the future. |
|
@neddp - I switched (back) to the Would you mind taking a look to validate that the AWS Feel free to merge if it looks good. I'm OOO until 2026-06-16 Thanks! |
mkocher
left a comment
There was a problem hiding this comment.
This is breaking the Resolute build too, and the fix looks good to me. I'll go ahead and merge this.
|
Opened a PR that matches the noble structure on jammy - #646 |
Fixes:
^ https://bosh.ci.cloudfoundry.org/teams/stemcell/pipelines/ubuntu-noble-builder/jobs/build-aws-xen-hvm/builds/631#L6a2a20e2:15435:15451