Skip to content

chore(DODO-5263): upgrade Ruby from 3.2.1 to 3.4.8#18

Open
fbriand-docto wants to merge 2 commits intomainfrom
chore/upgrade-ruby-3.4
Open

chore(DODO-5263): upgrade Ruby from 3.2.1 to 3.4.8#18
fbriand-docto wants to merge 2 commits intomainfrom
chore/upgrade-ruby-3.4

Conversation

@fbriand-docto
Copy link
Copy Markdown
Member

@fbriand-docto fbriand-docto commented Apr 2, 2026

Why

Ruby 3.2 reached end-of-life in March 2026. This upgrades pg-index-benchmark to require Ruby >= 3.4.

How

  • Bumped .ruby-version to 3.4.8, required_ruby_version to >= 3.4
  • Updated Dockerfile base image from ruby:3.2.1 to ruby:3.4.8
  • Updated pg_query constraint to >= 4.0, < 7.0: 2.2.1 (last 2.x) fails to compile on Ruby 3.4; there is no 3.x release
  • Updated minitest to 5.27.0: 5.18.0 requires mutex_m removed from Ruby 3.4 stdlib
  • Updated mocha to 2.8.2: 2.0.2 uses removed MiniTest constant, broken by the minitest update
  • Updated google-protobuf as a dependency of pg_query

Note: this repo has no CI workflow. The Dockerfile uses the public ruby:3.4.8 Docker Hub image — flagging as a follow-up if a Doctolib-specific base image is required.

Evidence of Testing

Tested locally: bundle exec rake test → 14 runs, 22 assertions, 0 failures, 0 errors, 0 skips.


This pull request was created with AI assistance.

Bumps Ruby version to 3.4.8 for EOL compliance (Ruby 3.2 EOL March 2026).
Updates Dockerfile base image and gemspec minimum required version accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fbriand-docto fbriand-docto changed the title chore: upgrade Ruby from 3.2.1 to 3.4.8 chore(DODO-5263): upgrade Ruby from 3.2.1 to 3.4.8 Apr 2, 2026
@fbriand-docto fbriand-docto self-assigned this Apr 2, 2026
…bility

- pg_query 2.2.1 fails to compile on Ruby 3.4; bumped constraint to >= 4.0, < 7.0
- minitest 5.18.0 requires mutex_m removed from Ruby 3.4 stdlib; updated to 5.27.0
- mocha 2.0.2 uses removed MiniTest constant; updated to 2.8.2
- google-protobuf updated as a pg_query dependency

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fbriand-docto fbriand-docto marked this pull request as ready for review April 3, 2026 23:34
@fbriand-docto fbriand-docto requested a review from a team April 7, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant