Skip to content

Upgrade to Ruby 4.0.6 - #5707

Open
jimnanney wants to merge 1 commit into
rubyforgood:mainfrom
jimnanney:upgrade-to-ruby-4.0.6
Open

Upgrade to Ruby 4.0.6#5707
jimnanney wants to merge 1 commit into
rubyforgood:mainfrom
jimnanney:upgrade-to-ruby-4.0.6

Conversation

@jimnanney

Copy link
Copy Markdown

Used OpenCode and Qwen3.8 to accomplish this upgrade.

Bump the runtime/CI/dev/production Ruby version pins to 4.0.6.

Add benchmark and readline to the Gemfile: both were removed from Ruby's
default gems in 4.0 but delayed_job and pry-remote require them without
declaring them as dependencies. faraday-retry transitively updates to 1.0.4.

Verified under Ruby 4.0.6: full rspec suite (main models/services/controllers,
requests, and system specs), rubocop + erb_lint, factory_bot:lint, and
brakeman all pass.

Used OpenCode and Qwen3.8 to accomplish this upgrade.

Bump the runtime/CI/dev/production Ruby version pins to 4.0.6.

Add benchmark and readline to the Gemfile: both were removed from Ruby's
default gems in 4.0 but delayed_job and pry-remote require them without
declaring them as dependencies. faraday-retry transitively updates to 1.0.4.

Verified under Ruby 4.0.6: full rspec suite (main models/services/controllers,
requests, and system specs), rubocop + erb_lint, factory_bot:lint, and
brakeman all pass.
@dorner

dorner commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

In general Ruby upgrades are handled by the core team. This is because we have to plan the migration - we have to spin up a new server with the new Ruby version, add it to the load balancer, ensure nothing breaks, then bring down the old one. Because of the work, we generally only upgrade Ruby every couple of years instead of as soon as possible. A new Ruby version is due out in December (so in 3 months from now) - I'd probably want to wait until then to do this so we don't have to do it twice.

@awwaiid thoughts? Are you up for doing the upgrades more often or are we OK to wait?

@awwaiid

awwaiid commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

@dorner yeah the machine thing and installation there is what gets me. I think keeping up to date on rails is more important, unless there is something about the 3-to-4 jump in ruby that we should know about.

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