Merge jammy#545
Conversation
- add Rakefile for gem - update testing to use `rake spec` - dev dependency gems are removed from cache - add rake task to cover --tag shellout_types - remove `logger` gem as it is not used - remove vendored gems as the only gem needed now is `rake`
- remove conditionality for macOS (nee OSX) - add `skip` for tests which are not runnable on macOS - update README
No rubocop gem was present in Gemfile(s)
bosh-stemcell: introduce Gemfile, move deps to gemspec
|
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 |
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@bosh-stemcell/lib/shellout_types/file.rb`:
- Around line 79-101: The final permission check uses the original `mode`
causing an extra/stat and inconsistent snapshot; change the fallback expression
to use the previously-captured `this_mode` instead (i.e., replace the final
`(mode & 0o004) != 0` with `(this_mode & 0o004) != 0`) in the method that uses
`this_mode`, `owned_by?(username)`, `group_entry` and `@chroot.run` so the
function consistently uses the single captured mode value.
In `@bosh-stemcell/spec/bosh/stemcell/build_environment_spec.rb`:
- Around line 23-24: Remove the duplicate test helper by keeping a single
let(:version) declaration and deleting the shadowing one; locate both
occurrences of let(:version) in build_environment_spec (the top-level
let(:version) and the later redeclaration) and remove the latter so the test
uses a single, unambiguous version value (ensure any tests relying on the second
value are updated to use the sole let(:version) or an explicitly named helper if
different values are required).
In `@README.md`:
- Around line 176-179: The README currently instructs to run `bundle install
--local` before `rake spec:shellout_types`, which fails without a local vendor
cache; update the setup steps to use a normal bundle install that fetches gems
(e.g., `bundle install` or `bundle install --path vendor/bundle`) so the `rake
spec:shellout_types` invocation succeeds; specifically change the `bundle
install --local` line in the README to a non-local install command and ensure
any subsequent commands (like `cd /opt/bosh/bosh-stemcell` and `OS_IMAGE=...
bundle exec rake spec:shellout_types`) remain the same.
🪄 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: 8f76fd2e-d7fd-48f7-b333-d39064e4f798
⛔ Files ignored due to path filters (1)
Gemfile.lockis excluded by!**/*.lock
📒 Files selected for processing (119)
.bundle/config.gitattributes.github/workflows/ruby.yml.rubocop.ymlGemfileREADME.mdRakefilebosh-stemcell/.rubocop.ymlbosh-stemcell/Gemfilebosh-stemcell/Rakefilebosh-stemcell/bosh-stemcell.gemspecbosh-stemcell/lib/bosh/core/shell.rbbosh-stemcell/lib/bosh/stemcell/arch.rbbosh-stemcell/lib/bosh/stemcell/archive.rbbosh-stemcell/lib/bosh/stemcell/archive_filename.rbbosh-stemcell/lib/bosh/stemcell/aws/region.rbbosh-stemcell/lib/bosh/stemcell/build_environment.rbbosh-stemcell/lib/bosh/stemcell/builder_options.rbbosh-stemcell/lib/bosh/stemcell/definition.rbbosh-stemcell/lib/bosh/stemcell/disk_image.rbbosh-stemcell/lib/bosh/stemcell/infrastructure.rbbosh-stemcell/lib/bosh/stemcell/operating_system.rbbosh-stemcell/lib/bosh/stemcell/os_image_builder.rbbosh-stemcell/lib/bosh/stemcell/stage_collection.rbbosh-stemcell/lib/bosh/stemcell/stage_runner.rbbosh-stemcell/lib/bosh/stemcell/stemcell_builder.rbbosh-stemcell/lib/bosh/stemcell/stemcell_packager.rbbosh-stemcell/lib/bosh/stemcell/version.rbbosh-stemcell/lib/shellout_types/chroot.rbbosh-stemcell/lib/shellout_types/file.rbbosh-stemcell/lib/shellout_types/group.rbbosh-stemcell/lib/shellout_types/package.rbbosh-stemcell/lib/shellout_types/service.rbbosh-stemcell/lib/shellout_types/user.rbbosh-stemcell/spec/bosh/stemcell/archive_filename_spec.rbbosh-stemcell/spec/bosh/stemcell/archive_handler_spec.rbbosh-stemcell/spec/bosh/stemcell/archive_spec.rbbosh-stemcell/spec/bosh/stemcell/build_environment_spec.rbbosh-stemcell/spec/bosh/stemcell/builder_options_spec.rbbosh-stemcell/spec/bosh/stemcell/definition_spec.rbbosh-stemcell/spec/bosh/stemcell/disk_image_spec.rbbosh-stemcell/spec/bosh/stemcell/helpers_sh_spec.rbbosh-stemcell/spec/bosh/stemcell/infrastructure_spec.rbbosh-stemcell/spec/bosh/stemcell/operating_system_spec.rbbosh-stemcell/spec/bosh/stemcell/os_image_builder_spec.rbbosh-stemcell/spec/bosh/stemcell/stage_collection_spec.rbbosh-stemcell/spec/bosh/stemcell/stage_runner_spec.rbbosh-stemcell/spec/bosh/stemcell/stemcell_builder_spec.rbbosh-stemcell/spec/bosh/stemcell/stemcell_packager_spec.rbbosh-stemcell/spec/bosh/stemcell_spec.rbbosh-stemcell/spec/os_image/ubuntu_spec.rbbosh-stemcell/spec/shellout_types/chroot_spec.rbbosh-stemcell/spec/shellout_types/command_spec.rbbosh-stemcell/spec/shellout_types/file_spec.rbbosh-stemcell/spec/shellout_types/group_spec.rbbosh-stemcell/spec/shellout_types/package_spec.rbbosh-stemcell/spec/shellout_types/service_spec.rbbosh-stemcell/spec/shellout_types/spec_helper.rbbosh-stemcell/spec/shellout_types/user_spec.rbbosh-stemcell/spec/spec_helper.rbbosh-stemcell/spec/stemcells/alicloud_spec.rbbosh-stemcell/spec/stemcells/aws_spec.rbbosh-stemcell/spec/stemcells/azure_spec.rbbosh-stemcell/spec/stemcells/cis_spec.rbbosh-stemcell/spec/stemcells/cloudstack_spec.rbbosh-stemcell/spec/stemcells/fips_spec.rbbosh-stemcell/spec/stemcells/go_agent_spec.rbbosh-stemcell/spec/stemcells/google_spec.rbbosh-stemcell/spec/stemcells/openstack_spec.rbbosh-stemcell/spec/stemcells/stig_spec.rbbosh-stemcell/spec/stemcells/ubuntu_spec.rbbosh-stemcell/spec/stemcells/vsphere_spec.rbbosh-stemcell/spec/stemcells/warden_spec.rbbosh-stemcell/spec/support/be_valid_json_file_matcher.rbbosh-stemcell/spec/support/cis.rbbosh-stemcell/spec/support/os_image.rbbosh-stemcell/spec/support/os_image_chrony_shared_examples.rbbosh-stemcell/spec/support/os_image_linux_kernel_modules_shared_examples.rbbosh-stemcell/spec/support/os_image_linux_kernel_shared_examples.rbbosh-stemcell/spec/support/os_image_shared_examples.rbbosh-stemcell/spec/support/os_image_systemd_shared_examples.rbbosh-stemcell/spec/support/os_image_ubuntu_shared_examples.rbbosh-stemcell/spec/support/os_image_upstart_shared_examples.rbbosh-stemcell/spec/support/shellout_type_assertions.rbbosh-stemcell/spec/support/spec_assets.rbbosh-stemcell/spec/support/spec_ordering.rbbosh-stemcell/spec/support/stemcell_image.rbbosh-stemcell/spec/support/stemcell_shared_examples.rbbosh-stemcell/spec/support/stemcell_tarball.rbbosh-stemcell/spec/support/stig.rbbosh-stemcell/spec/support/udf_module_disabled.rbci/docker/os-image-stemcell-builder/Dockerfileci/tasks/test-unit.shvendor/cache/diff-lcs-1.6.2.gemvendor/cache/fakefs-3.2.1.gemvendor/cache/little-plugger-1.1.4.gemvendor/cache/logging-2.4.0.gemvendor/cache/rake-13.3.1.gemvendor/cache/rspec-3.13.2.gemvendor/cache/rspec-core-3.13.6.gemvendor/cache/rspec-expectations-3.13.5.gemvendor/cache/rspec-instafail-1.0.0.gemvendor/cache/rspec-its-2.0.0.gemvendor/cache/rspec-mocks-3.13.8.gemvendor/cache/rspec-support-3.13.7.gemvendor/cache/timecop-0.9.10.gemvendor/package/diff-lcs-1.6.2.gemvendor/package/fakefs-3.2.1.gemvendor/package/little-plugger-1.1.4.gemvendor/package/logging-2.4.0.gemvendor/package/rake-13.3.1.gemvendor/package/rspec-3.13.2.gemvendor/package/rspec-core-3.13.6.gemvendor/package/rspec-expectations-3.13.5.gemvendor/package/rspec-instafail-1.0.0.gemvendor/package/rspec-its-2.0.0.gemvendor/package/rspec-mocks-3.13.8.gemvendor/package/rspec-support-3.13.7.gemvendor/package/timecop-0.9.10.gem
💤 Files with no reviewable changes (18)
- .bundle/config
- Rakefile
- .gitattributes
- vendor/cache/rspec-its-2.0.0.gem
- bosh-stemcell/spec/support/spec_ordering.rb
- .rubocop.yml
- vendor/cache/little-plugger-1.1.4.gem
- bosh-stemcell/.rubocop.yml
- vendor/cache/rspec-instafail-1.0.0.gem
- vendor/cache/rspec-core-3.13.6.gem
- vendor/cache/diff-lcs-1.6.2.gem
- vendor/cache/timecop-0.9.10.gem
- vendor/cache/logging-2.4.0.gem
- vendor/cache/rspec-expectations-3.13.5.gem
- vendor/cache/rspec-mocks-3.13.8.gem
- vendor/cache/fakefs-3.2.1.gem
- vendor/cache/rspec-3.13.2.gem
- vendor/cache/rspec-support-3.13.7.gem
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
No description provided.