Upgrade to Rails 7.2 - #23
Open
tungleduyxyz wants to merge 2 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Upgrades the kenui mountable Rails engine to Rails 7.2 and adjusts Ruby/JRuby compatibility constraints to keep CI and runtime boot stable (notably around i18n + Fiber behavior on JRuby).
Changes:
- Bump the engine’s Rails dependency to
~> 7.2and setrequired_ruby_version >= 3.1.0. - Add an i18n version pin (currently in the Gemfile) to avoid i18n 1.15.x Fiber-related boot failures on older JRuby.
- Update GitHub Actions CI JRuby matrix from
jruby-9.4.2.0tojruby-9.4.15.0.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
kenui.gemspec |
Raises minimum Ruby version and upgrades the engine runtime Rails dependency to 7.2. |
Gemfile |
Pins i18n to 1.14.x and updates the Rails version for development/bundler resolution. |
.github/workflows/ci.yml |
Bumps JRuby used in CI to a version that supports Fiber.current. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
23
to
+26
| s.add_dependency 'killbill-assets-ui' | ||
| s.add_dependency 'killbill-client' | ||
| s.add_dependency 'rails', '~> 7.0' | ||
| s.required_ruby_version = '>= 3.1.0' | ||
| s.add_dependency 'rails', '~> 7.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade the engine to Rails 7.2.
rails ~> 7.2in the gemspecSee killbill/killbill-admin-ui#655 for the corresponding kaui engine upgrade.
JRuby CI fix (i18n / Fiber.current)
CI on
jruby-9.4.2.0failed during boot with:Root cause: i18n 1.15.x switched
I18n.configto fiber-based storage. The original 1.15.0 report (ruby-i18n/i18n#735) covered theFiber[:i18n_config]call breaking CRuby < 3.2; 1.15.1/1.15.2 reworked that butI18n::Config#initializestill callsFiber.current. JRuby 9.4.2.0 doesn't expose a publicFiber.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:
i18nto~> 1.14.0(1.14.x has no fiber code path, and satisfies activesupport 7.2'si18n >= 1.6, < 2) — matching the existing pins in kaui and kaui-standaloneFiber.current) — matching kaui's CI