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

CA-401 Lock rubocop_rspec below v2.28.x #128

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

genericsteele
Copy link
Contributor

@genericsteele genericsteele commented Apr 2, 2024

What did we change?

This locks the rubocop_rspec gem below v2.28 to temporarily fix a regression caused by that issue.

Why are we doing this?

Slack

rubocop_rspec v2.28.0 was released with a regression that is causing our gems to throw "Ambiguous cop name RSpec/Rails/HttpStatus" errors:

Screenshot 2024-04-02 at 12 44 30 PM

This temporary fix should unblock ezcater gem releases until a more permanent solution is available

How was it tested?

  • Specs
  • Locally

@genericsteele genericsteele marked this pull request as ready for review April 2, 2024 16:46
@genericsteele genericsteele requested review from a team as code owners April 2, 2024 16:46
@genericsteele genericsteele requested review from mikowitz and jbeard6 and removed request for a team April 2, 2024 16:46
Copy link

@jbeard6 jbeard6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the patched version v2.28.2, I'm not sure this is necessary anymore. I haven't tested it, yet, but, if it works, would you have any objections to closing this in favor of the updated dependency?

@genericsteele
Copy link
Contributor Author

@jbeard6 The patched version is in a separate gem (rubocop-rspec_rails), so that would involve pulling in another dependency, and ensuring they are loaded correctly. I'd recommend rolling this change out first so we can unblock any gem releases, then following up with a more permanent fix.

@mikowitz
Copy link
Contributor

mikowitz commented Apr 2, 2024

Do we have links to a couple of our workflows that show

  • the original error
  • that this solution works

@genericsteele
Copy link
Contributor Author

genericsteele commented Apr 2, 2024

Here's a link to a failing PR: https://github.com/ezcater/ezcater_accounting/actions/runs/8525581203/job/23354000587?pr=56
I'm working on a PR that will pass. Our CI isn't a huge fan of unpublished private gems.

@genericsteele
Copy link
Contributor Author

@mikowitz Here's a passing fork of that failing PR with just the version of rubocop-rspec locked below v2.28: https://github.com/ezcater/ezcater_accounting/pull/57/checks

Copy link
Contributor

@mikowitz mikowitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Hopefully they'll fix this upstream and we can stop having to do this, but for now, let's get ourselves unblocked!

:shipit:

@genericsteele
Copy link
Contributor Author

@mikowitz I just bumped the version and updated CHANGELOG.md.

@genericsteele genericsteele merged commit 96a5a51 into main Apr 3, 2024
4 checks passed
@genericsteele genericsteele deleted the ca-401-lock-rubocop-rspec-at-v2-27 branch April 3, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants