Repository navigation
Conversation
solnic
marked this pull request as ready for review
November 23, 2026 20:29
…boot Reset the ActiveRecord, Action Cable, route helper, cache and run-once load hook state that each booted test app leaves behind in cleanup!.
…constants Move the global-state resets out of cleanup! into release_global_state, mirroring restore_load_hook_state. Guard every reset on the constant or setter existing so older Rails cells cannot fail every example in cleanup!. The Rails 6.1 and 7.0 cells were not run: they need Rubies that are not installed here (only 3.4 and 4.0 are). Ruby 4.0 / Rails 8.1.3 shows the same 7 pre-existing failures as before. The reviewer's note on the lockfile edit was right: it was an unrelated working-tree change, reverted rather than committed.
ActiveRecord::Base.filter_attributes does not exist on Rails 5.2, so the spec raised NoMethodError on the Ruby 2.7 / Rails 5.2.0 cell. Skip it there, matching the respond_to? guard in release_global_state.
solnic
force-pushed
the
fix/rails-test-suite-activesupport-state-leak
branch
from
November 24, 2026 11:36
081fc7e to
a3f1427
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.
How about we make our test suite runs ~2x faster? 🙃