Allow s3 calls to disable multipart upload#2738
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 (4)
WalkthroughThis PR adds S3 multipart upload configuration to BOSH Director. A new property Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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: 2
🤖 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 `@src/bosh-director/lib/bosh/director/blobstore/s3cli_blobstore_client.rb`:
- Line 51: The code uses the wrong options key — it reads
`@options`[:multipart_upload_enabled] but the template sets multipart_upload, so
the value becomes nil and the property is dropped; update the blobstore client
to read the correct key (use `@options`[:multipart_upload]) or ensure the template
writes the _enabled key consistently (i.e., make the code in
src/bosh-director/lib/bosh/director/blobstore/s3cli_blobstore_client.rb
reference `@options`[:multipart_upload] where multipart_upload is assigned) so the
multipart_upload setting is preserved end-to-end.
In
`@src/bosh-director/spec/unit/bosh/director/blobstore/s3cli_blobstore_client_spec.rb`:
- Around line 153-163: The test is passing the wrong option key
(`multipart_upload_enabled`) to described_class.new; change the test to pass
`multipart_upload: false` via the options hash so it matches the director
template contract and the code that writes the config; then keep the assertion
on stored_config_file/JSON parse as-is (expect config['multipart_upload'] to
eq(false)) so the spec verifies the real wiring between the client initializer
(described_class.new) and the stored config.
🪄 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: 957a756f-8558-4b6d-821c-fe5d326ae50c
📒 Files selected for processing (4)
jobs/director/specjobs/director/templates/director.yml.erbsrc/bosh-director/lib/bosh/director/blobstore/s3cli_blobstore_client.rbsrc/bosh-director/spec/unit/bosh/director/blobstore/s3cli_blobstore_client_spec.rb
Following on to #2726 ai-assisted=yes [TNZ-105379]
c8902fc to
c2ada63
Compare
Following on to #2726