Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin rubocop gems to resolve jruby failures #357

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Pin rubocop gems to resolve jruby failures #357

merged 1 commit into from
Jun 20, 2024

Conversation

gavindidrichsen
Copy link
Contributor

@gavindidrichsen gavindidrichsen commented Jun 19, 2024

Summary

Recent rubocop updates broke the resource_api's CI:

  puppet-resource_api git:(main) bundle exec rubocop
Error: Property AutoCorrect of cop FactoryBot/CreateList is supposed to be a boolean and contextual is not.
+ set +x
  puppet-resource_api git:(main) 

Although the fix for other repositories was to upgrade rubocop, an upgrade was not possible on this repo because of the jruby and ruby engine testing. The solution was to pin the rubocop dependencies to the last working nightly versions:

gem 'rubocop', '~> 1.48.1', require: false
gem 'rubocop-rspec', '~> 2.20.0', require: false
gem 'rubocop-performance', '~> 1.17.1', require: false

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@gavindidrichsen gavindidrichsen added the maintenance Maintenance (PDK sync and other maintaining commits) label Jun 19, 2024
Recent rubocop updates broke the resource_api's CI:

```ruby
➜  puppet-resource_api git:(main) bundle exec rubocop
Error: Property AutoCorrect of cop FactoryBot/CreateList is supposed to be a boolean and contextual is not.
+ set +x
➜  puppet-resource_api git:(main)
```

Although the fix for other repositories was to upgrade rubocop, an upgrade was not possible on this repo because of the `jruby` and `ruby` engine testing.  The solution was to pin the rubocop dependencies to the last working nightly versions:

```ruby
gem 'rubocop', '~> 1.48.1', require: false
gem 'rubocop-rspec', '~> 2.20.0', require: false
gem 'rubocop-performance', '~> 1.17.1', require: false
```

Signed-off-by: Gavin Didrichsen <[email protected]>
@gavindidrichsen gavindidrichsen marked this pull request as ready for review June 19, 2024 16:11
@gavindidrichsen gavindidrichsen requested review from a team as code owners June 19, 2024 16:11
@pmcmaw pmcmaw merged commit 29f141c into main Jun 20, 2024
8 checks passed
@pmcmaw pmcmaw deleted the fix_rubocop branch June 20, 2024 08:21
@gavindidrichsen gavindidrichsen changed the title Fix rubocop errors Pin rubocop gems to resolve jruby failures Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance (PDK sync and other maintaining commits)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants