Skip to content

Fix broken CI - #370

Merged
benlovell merged 6 commits into
roidrage:masterfrom
y-yagi:fix-broken-ci
Jun 26, 2023
Merged

benlovell merged 6 commits into
roidrage:masterfrom
y-yagi:fix-broken-ci

Conversation

@y-yagi

@y-yagi y-yagi commented Jun 18, 2023 •

Copy link
Copy Markdown
Contributor

This PR tries to fix the broken CI.

First, disable Gemspec/DependencyVersion cop

Currently, CI is broken because of Gemspec/DevelopmentDependencies cop.
https://github.com/roidrage/lograge/actions/runs/5100966316/jobs/9169550600#step:4:36

Rubocop recommends to write development dependencies in Gemfile.
But this gem has multiple Gemfiles and it might be redundant. So I disable it to pass Rubocop.

Second, bump truffleruby to the latest.
Because truffleruby-21.3 for Ubuntu 22.04 doesn't exist.
https://github.com/ruby/ruby-builder/releases/tag/toolcache

Third, support edge Rails. Since, rails/rails#45796,
ActiveSupport::Notifications.notifier.listeners_for doesn't return all listeners.
Need to use all_listeners_for to get all listeners.

y-yagi added 2 commits June 17, 2023 18:24
Currently, CI is broken because of `Gemspec/DevelopmentDependencies` cop.
https://github.com/roidrage/lograge/actions/runs/5100966316/jobs/9169550600#step:4:36

Rubocop recommends to write development dependencies in Gemfile.
But this gem has multiple Gemfiles and it might be redundant.

So I disable it to pass Rubocop.
y-yagi added 4 commits June 25, 2023 11:34
To avoid `NameError`.
Since, rails/rails#45796,
`ActiveSupport::Notifications.notifier.listeners_for` doesn't return
the all `listeners`.

Need to use `all_listeners_for` to get all `listeners`.
JRuby 9.2.x is compatible with Ruby 2.5.x and we don't run tests
against CRuby 2.5.x now. So I think we can remove it.
@y-yagi

y-yagi commented Jun 25, 2023

Copy link
Copy Markdown
Contributor Author

Sorry after the approval, but I added commits that support edge Rails. I think those allow to all test passed. I confirmed that with my fork y-yagi#2

@benlovell
benlovell merged commit 248de70 into roidrage:master Jun 26, 2023
@y-yagi
y-yagi deleted the fix-broken-ci branch July 23, 2023 03:59
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