Skip to content

Upgrade to Rails 8.1 and dual boot with Rails main - #385

Merged
etagwerker merged 5 commits into
mainfrom
upgrade-rails-8.1-dual-boot-main
Nov 30, 2026
Merged

etagwerker merged 5 commits into
mainfrom
upgrade-rails-8.1-dual-boot-main

Conversation

@etagwerker

Copy link
Copy Markdown
Member

Jira Ticket

N/A

Motivation / Context

  • Default Gemfile now uses Rails ~> 8.1.0 (8.1.4.1)
  • Gemfile.next now tracks rails/rails main (8.2.0.alpha)
  • Use rspec-rails main under Gemfile.next, since rspec-rails 6.x fails to load against Rails main (FrozenError in feature_example_group)
  • Make mutex_m unconditional, it was only required on the 8.1 branch

QA / Testing Instructions

Smoke test public page and admin page

Screenshots:

N/A


✅ I will abide by the code of conduct.

etagwerker and others added 5 commits November 29, 2026 20:57
- Default Gemfile now uses Rails ~> 8.1.0 (8.1.4.1)
- Gemfile.next now tracks rails/rails main (8.2.0.alpha)
- Use rspec-rails main under Gemfile.next, since rspec-rails 6.x fails
  to load against Rails main (FrozenError in feature_example_group)
- Make mutex_m unconditional, it was only required on the 8.1 branch

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rspec-rails 6.1.x raised a FrozenError at load time against Rails main.
The stable 8.1.0 release loads on both, so there is no need to track
rspec-rails from GitHub.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Conservative update, no other gems changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The dual-boot lockfile still had sprockets 3.7.5, which does not support
the link_directory entries in app/assets/config/manifest.js. Every view
rendering the layout raised AssetNotPrecompiledError on CI. The default
lockfile already uses sprockets 4.2.2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rails main no longer ships rails-ujs in actionview, but application.js
still requires it. Sprockets could not resolve it, which surfaced on CI
as AssetNotPrecompiledError for application.css in every view that
renders the layout.

This is a copy of actionview 8.1.4.1's rails-ujs.js, so behavior on
Rails 8.1 is unchanged. Remove it once the app moves off rails-ujs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@etagwerker
etagwerker marked this pull request as ready for review November 30, 2026 19:42
@etagwerker
etagwerker merged commit f99ecf0 into main Nov 30, 2026
2 checks passed
@etagwerker
etagwerker deleted the upgrade-rails-8.1-dual-boot-main branch November 30, 2026 20:03
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.

1 participant