Skip to content

chore: Upgrade ruby to 3.4.4#2219

Merged
olleolleolle merged 7 commits into
codebar:masterfrom
mroderick:upgrade-ruby
Aug 4, 2025
Merged

chore: Upgrade ruby to 3.4.4#2219
olleolleolle merged 7 commits into
codebar:masterfrom
mroderick:upgrade-ruby

Conversation

@mroderick
Copy link
Copy Markdown
Collaborator

@mroderick mroderick commented Jul 12, 2025

This PR breaks on my local machine when using bin/dup.

Posting it as a draft to get some 👀 eyes on it from an expert.

I tried following the example from the previous ruby upgrade, and think I've done the same things, but this branc is failing when running bin/dup.

rake aborted!
LoadError: libruby.so.3.2: cannot open shared object file: No such file or directory - /usr/local/bundle/gems/msgpack-1.7.5/lib/msgpack/msgpack.so (LoadError)
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
/usr/local/bundle/gems/msgpack-1.7.5/lib/msgpack.rb:7:in '<top (required)>'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/store.rb:5:in 'block in <top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/explicit_require.rb:50:in 'Bootsnap::ExplicitRequire.with_gems'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/store.rb:5:in '<top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache.rb:77:in 'Kernel#require_relative'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache.rb:77:in '<top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap.rb:5:in 'Kernel#require_relative'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap.rb:5:in '<top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/setup.rb:3:in 'Kernel#require_relative'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/setup.rb:3:in '<top (required)>'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
/planner/config/boot.rb:5:in '<top (required)>'
/planner/config/application.rb:1:in 'Kernel#require_relative'
/planner/config/application.rb:1:in '<top (required)>'
/planner/rakefile:4:in 'Kernel#require_relative'
/planner/rakefile:4:in '<top (required)>'

Caused by:
LoadError: libruby.so.3.2: cannot open shared object file: No such file or directory - /usr/local/bundle/gems/msgpack-1.7.5/lib/msgpack/msgpack.so (LoadError)
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
/usr/local/bundle/gems/msgpack-1.7.5/lib/msgpack.rb:7:in '<top (required)>'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/store.rb:5:in 'block in <top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/explicit_require.rb:47:in 'Bootsnap::ExplicitRequire.with_gems'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/store.rb:5:in '<top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache.rb:77:in 'Kernel#require_relative'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache.rb:77:in '<top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap.rb:5:in 'Kernel#require_relative'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap.rb:5:in '<top (required)>'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/setup.rb:3:in 'Kernel#require_relative'
/usr/local/bundle/gems/bootsnap-1.18.4/lib/bootsnap/setup.rb:3:in '<top (required)>'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
<internal:/usr/local/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:37:in 'Kernel#require'
/planner/config/boot.rb:5:in '<top (required)>'
/planner/config/application.rb:1:in 'Kernel#require_relative'
/planner/config/application.rb:1:in '<top (required)>'
/planner/rakefile:4:in 'Kernel#require_relative'
/planner/rakefile:4:in '<top (required)>'
(See full trace by running task with --trace)

@mroderick
Copy link
Copy Markdown
Collaborator Author

Ping @olleolleolle. Can you advise on how I might complete this Ruby upgrade?

mroderick and others added 7 commits August 4, 2025 17:32
  LoadError: cannot load such file -- bigdecimal (LoadError)
warning: mutex_m was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
You can add mutex_m to your Gemfile or gemspec to silence this warning."

This came from activesupport 7.0.
@mroderick mroderick marked this pull request as ready for review August 4, 2025 16:08
Comment thread Gemfile.lock
dotenv-rails (3.1.0)
dotenv (= 3.1.0)
railties (>= 6.1)
double-bag-ftps (0.1.4)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Q: will this be required when we ditch carrierwave for FTP?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Said in another way: now that we are upgraded away from that carrierwave extra gem, does a bundle install remove this from the gemfile.lock?

Copy link
Copy Markdown
Collaborator

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Looks good!

I noted a tiny detail about perhaps getting rid of an ftp-related mocking (?) library. If it were that we are not using it. Not a blocker to merging!

@olleolleolle olleolleolle merged commit b6d82b2 into codebar:master Aug 4, 2025
1 check passed
@mroderick mroderick deleted the upgrade-ruby branch February 15, 2026 12: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.

2 participants