Re-enable the Rails main CI job with rspec-rails main - #655
Merged
Conversation
tricknotes
force-pushed
the
use-rspec-rails-main
branch
from
September 3, 2026 17:49
e34da7f to
9042499
Compare
The released rspec-rails series mutates internals that Rails main freezes,
failing the suite while loading the specs:
FrozenError:
can't modify frozen Hash: {}
The fixes (e.g. rspec/rspec-rails#2915) are merged on rspec-rails main but
not yet released. Widen the gemspec's rspec-rails constraint to admit the
8.x series — the constraint also applies to the git source, whose current
prerelease is 8.1.0.pre — and test against rspec-rails main when
RAILS_VERSION=main. Released Rails versions now resolve to the released
8.x series.
Re-enable the (4.0, main) matrix entry, marked experimental so the moving
target can break without failing the build.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
tricknotes
force-pushed
the
use-rspec-rails-main
branch
from
September 3, 2026 17:53
9042499 to
156efa7
Compare
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.
Summary
The Rails main CI job was disabled because the released rspec-rails series mutates internals that Rails main freezes, failing the suite while loading the specs (
FrozenError: can't modify frozen Hash). The fixes (e.g. rspec/rspec-rails#2915) are merged on rspec-rails main but not yet released.< 7.0to< 9.0, admitting the 8.x series. The constraint also applies to the git source, whose current prerelease is 8.1.0.pre, so this is what lets the main branch resolve.RAILS_VERSION=main, take rspec-rails from its main branch in the Gemfile, following the existing switch for the rails constraint.(4.0, main, 7.0.0)matrix entry, markedexperimentalwithcontinue-on-errorso the moving target can break without failing the build (the same arrangement as Use rspec-rails main when testing against Rails main ember-cli-rails-assets#36 relies on).Notes
Verification
RAILS_VERSION=main bundle lockresolves, picking up rspec-rails 8.1.0.pre from main against rails mainbundle lockwith the defaultRAILS_VERSIONresolves to rspec-rails 8.0.4spec/libpasses locally against rspec-rails 8.0.4 (79 of 81 examples; the 2 failures are a local environment issue — noember-cliexecutable installed — not related to rspec-rails)build (4.0, main, 7.0.0)job for the Rails main run🤖 Generated with Claude Code