GeezerVison is showing github.com — Ensure the logger gem is loaded in Rails 7.0 by ahukkanen · Pull Request #54264 · rails/rails
Conversation
ahukkanen
commented
Jan 16, 2025
•
edited by fatkodima
Loading
Uh oh!
There was an error while loading. Please reload this page.
Motivation / Background
This Pull Request has been created because the concurrent-ruby gem's version 1.3.5 no longer loads the logger gem which breaks the internal logic of the ActiveSupport::LoggerThreadSafeLevel module.
This relates to the following commit in the concurrent-ruby gem included in version 1.3.5: ruby-concurrency/concurrent-ruby@d7ce956
Detail
This Pull Request changes the assumption that concurrent-ruby loads the logger gem.
Additional information
Fixes #54260
Fixes #54263
Checklist
Before submitting the PR make sure the following are checked:
- This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
- Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex:
[Fix #issue-number]
- Tests are added or updated if you fix a bug or add a feature. - Not sure how to test this as tests would need to be added for different versions of
concurrent-ruby
- CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included. - I believe this is minor?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ansonhoyt and sidorchukandrew reacted with heart emoji
|
Dearest Rails core team, I know how annoying this is, but can this commit be released on RubyGems? It's breaking all test suites that rely on a working Rails 7.0...
|
rhysb27, Fryguy, agrare, benjaminwil, ttstarck, twohlix, spaghetticode, menporulporiayalan, tim-gq, iainbeeston, and 11 more reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Dearest Rails core team, I know how annoying this is, but can this commit be released on RubyGems? It's breaking all test suites that rely on a working Rails 7.0...
You can point to the 7-0-stable branch. Rails 7.0 isn't supported anymore for bug fixes, so a release including that change is very unlikely https://rubyonrails.org/maintenance
|
Fryguy, ttstarck, twohlix, tekniklr, QuirkQ, wensiyuanseven, klnkt, jrafanie, agrare, zp34, and 9 more reacted with thumbs down emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
skipkayhil
commented
Jan 16, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
You can also:
- pin
concurrent-ruby in the Gemfile: gem "concurrent-ruby", "< 1.3.5"
add logger to your Gemfile so it gets required by Bundler.require
require "logger" manually in your application
etc.
edit: Bundler.require actually happens too late, but the other two suggestions should still work
|
eregon, menporulporiayalan, wensiyuanseven, iagopuccini, PeterNotFound114, the-spectator, kanejamison, alvarez-antonio, mason-lynass, tbowzz, and ArisNance reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Fryguy
added a commit
to Fryguy/manageiq
that referenced
this pull request
Jan 16, 2025
Temporary pin down as concurrent-ruby 1.3.5 breaks Rails 7.0, and rails-core doesn't
plan to ship a new 7.0 to fix it. See rails/rails#54264
pelargir
added a commit
to CandleScience/solidus_reviews
that referenced
this pull request
Jan 16, 2025
v1.3.5 no longer loads the logger gem. This breaks ActiveSupport.
See rails/rails#54264
tombye
added a commit
to alphagov/tech-docs-gem
that referenced
this pull request
Jan 17, 2025
texpert
added a commit
to texpert/camaleon-cms
that referenced
this pull request
Jan 19, 2025
…m which breaks the internal logic of the ActiveSupport::LoggerThreadSafeLevel module, so require `logger` as early as possible. See rails/rails#54264 (comment)
This was referenced Jan 30, 2025
This was referenced Feb 23, 2025
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|