Skip to content

ci: per-Ruby Gemfile so modern Rubies run latest libs#2

Merged
svyatov merged 1 commit into
mainfrom
ci/per-ruby-gemfiles
Jun 26, 2026
Merged

ci: per-Ruby Gemfile so modern Rubies run latest libs#2
svyatov merged 1 commit into
mainfrom
ci/per-ruby-gemfiles

Conversation

@svyatov

@svyatov svyatov commented Jun 26, 2026

Copy link
Copy Markdown
Owner

What

Replace the global parallel < 2 pin with a dedicated gemfiles/ruby_3_2.gemfile so each Ruby runs the newest libs it can:

  • Root Gemfile — un-pinned; modern Rubies (3.3 / 3.4 / 4.0 / head) get up-to-date deps (parallel 2.x, …).
  • gemfiles/ruby_3_2.gemfileeval_gemfiles the root and pins only the gems whose latest majors dropped 3.2 (currently just parallel < 2). Has its own lockfile.
  • CI — the 3.2 matrix row uses it via BUNDLE_GEMFILE; every other row uses the root Gemfile.

Why

parallel 2.x (a rubocop dependency) requires Ruby >= 3.3, which broke bundle install on the 3.2 row. The previous fix pinned parallel < 2 globally — correct, but it held every Ruby to the old lib. This keeps 3.2 green without holding modern Rubies back.

Verified locally (Ruby 4.0.5)

  • Root gemfile → parallel 2.1.0; bundle exec rake green (rubocop · rbs · 57 tests).
  • BUNDLE_GEMFILE=gemfiles/ruby_3_2.gemfileparallel 1.28.0; same gate green.
  • Alt lock carries the linux platforms CI needs.

Note

dependabot.yml's bundler updater watches / only, so gemfiles/ruby_3_2.gemfile.lock won't get automatic updates. Can add a second bundler entry for it if wanted.

Replace the global `parallel < 2` pin (which held every Ruby to the old lib)
with a dedicated gemfiles/ruby_3_2.gemfile that eval_gemfiles the root Gemfile
and pins only the gems whose latest majors dropped 3.2. The 3.2 matrix row uses
it via BUNDLE_GEMFILE; every other Ruby uses the root Gemfile with up-to-date
deps (parallel 2.x). Each gemfile keeps its own lockfile.
@svyatov
svyatov merged commit 4cec06c into main Jun 26, 2026
8 checks passed
@svyatov
svyatov deleted the ci/per-ruby-gemfiles branch June 26, 2026 16:23
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bd2fda9) to head (6cb960e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          264       264           
=========================================
  Hits           264       264           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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