Skip to content

Upgrade to Rails 7.2 - #83

Merged
tungleduyxyz merged 3 commits into
masterfrom
upgrade_rails_7.2
Sep 6, 2026
Merged

tungleduyxyz merged 3 commits into
masterfrom
upgrade_rails_7.2

Conversation

@tungleduyxyz

@tungleduyxyz tungleduyxyz commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Upgrade the engine to Rails 7.2.

  • Require rails ~> 7.2 in the gemspec
  • Require Ruby >= 3.1.0 (minimum Ruby version for Rails 7.2)

See killbill/killbill-admin-ui#655 for the corresponding kaui engine upgrade.

JRuby CI fix (i18n / Fiber.current)

CI on jruby-9.4.2.0 failed during boot with:

NoMethodError: undefined method `current' for Fiber:Class
Did you mean?  __current__
  initialize at i18n-1.15.2/lib/i18n/config.rb:14

Root cause: i18n 1.15.x switched I18n.config to fiber-based storage. The original 1.15.0 report (ruby-i18n/i18n#735) covered the Fiber[:i18n_config] call breaking CRuby < 3.2; 1.15.1/1.15.2 reworked that but I18n::Config#initialize still calls Fiber.current. JRuby 9.4.2.0 doesn't expose a public Fiber.current (only the internal __current__; the public alias was added in a later 9.4.x release), so any i18n >= 1.15.0 fails at boot on that runtime.

This PR therefore also:

  • Locks i18n to ~> 1.14.0 (1.14.x has no fiber code path, and satisfies activesupport 7.2's i18n >= 1.6, < 2) — matching the existing pins in kaui and kaui-standalone
  • Bumps CI JRuby from 9.4.2.0 to 9.4.15.0 (which provides a proper Fiber.current) — matching kaui's CI

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Upgrades the kanaui mountable engine to Rails 7.2 and updates related runtime/CI constraints to match the new framework requirements and JRuby compatibility needs.

Changes:

  • Require Ruby >= 3.1.0 and Rails ~> 7.2 in the gemspec.
  • Pin i18n to ~> 1.14.0 to avoid fiber-based storage incompatibilities on certain runtimes.
  • Bump CI JRuby from 9.4.2.0 to 9.4.15.0.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
kanaui.gemspec Updates engine runtime requirements (Ruby min version) and Rails dependency to 7.2.
Gemfile Adds an i18n version pin intended to avoid known fiber-related breakages.
.github/workflows/ci.yml Updates JRuby version used in CI to a release that exposes Fiber.current.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread kanaui.gemspec
Comment thread Gemfile
Comment thread .github/workflows/ci.yml
Dimension requests trigger a parser bug that mangles CASE...END expressions,
returning 500 errors. Workaround: expand dimension requests to filter-only
requests client-side and stitch results together. Filter-only requests don't
trigger the bug.

Related to Rails 7.2 upgrade with updated MariaDB JDBC drivers.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tungleduyxyz
tungleduyxyz merged commit a1eefc3 into master Sep 6, 2026
9 checks passed
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