Repository navigation
QUAL-2625: Modernize CI with Rails and Mongoid matrix - #11
Merged
Merged
Conversation
Ruby 3.0/3.1/3.3 x ActiveSupport 6.1/7.0 x Mongoid 7.4/8.1 via gemfiles/, mongo:7.0, current actions. Mongoid 8.1 legs are non-blocking until QUAL-2685. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
errors[field] << is a no-op on Rails 7.0; use errors.add. Specs updated likewise. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
roloand
commented
Oct 30, 2026
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
CI now runs on a Ruby 3.0/3.1/3.3 matrix against ActiveSupport 6.1 and 7.0 with Mongoid 7.4 (required), plus Mongoid 8.1 (experimental, non-blocking). Replaces the retired ubuntu-18.04 / Ruby 2.5 / mongo:3.6 setup with ubuntu-latest, mongo:7.0 and
ruby/setup-ruby.Also fixes
forbid_iftransition errors on ActiveSupport 7 (errors[field] <<no longer works; nowerrors.add) and bumps the version to 0.1.2. Gemspec dev deps are loosened to allow Mongoid 8 and any bundler.Why
QUAL-2625 — validate stateful against the Rails 7 / Mongoid 8.1 upgrade path.
Decision
Mongoid 8.1 jobs are
continue-on-errorbecause after-save dirty tracking differs there; the fix is tracked in QUAL-2685.Verification
Added a spec asserting the default transition error message is added to the state field. CI matrix on this PR is the verification.
🤖 Generated with Claude Code