Skip to content

Restore CI with compatible Rails and JSON versions - #443

Merged
joshbuker merged 1 commit into
mainfrom
fix/ci-json-compatibility
Nov 16, 2026
Merged

joshbuker merged 1 commit into
mainfrom
fix/ci-json-compatibility

Conversation

@willnet

@willnet willnet commented Nov 13, 2026

Copy link
Copy Markdown
Member

JSON 3 now rejects unknown options, including quirks_mode, which ActiveSupport still passes in Rails 7.1 and Rails 8.0.5.2. This causes OAuth response fixtures and signed remember-me cookie serialization to fail, breaking the daily CI runs reported in #442.

Restrict JSON to versions below 3 in the Rails 7.1 and 8.0 Gemfiles. Keeping this restriction in the affected test bundles avoids imposing an unnecessary dependency constraint on applications using Rails versions that already support JSON 3.

Rails 7.2.4 includes the compatibility fix, but the existing ~> 7.2.2.1 requirement prevents Bundler from selecting it. Require at least 7.2.4 while allowing later 7.2 patch releases. A lower minimum lets a fresh dependency resolution select Rails 7.2.3 with minitest 6, leaving the JSON incompatibility in place.

Fixes #442

Please ensure your pull request includes the following:

  • Description of changes
  • Changes have related RSpec tests that ensure functionality does not break

JSON 3 now rejects unknown options, including quirks_mode, which
ActiveSupport still passes in Rails 7.1 and Rails 8.0.5.2. This causes
OAuth response fixtures and signed remember-me cookie serialization
to fail, breaking the daily CI runs reported in #442.

Restrict JSON to versions below 3 in the Rails 7.1 and 8.0 Gemfiles.
Keeping this restriction in the affected test bundles avoids imposing
an unnecessary dependency constraint on applications using Rails
versions that already support JSON 3.

Rails 7.2.4 includes the compatibility fix, but the existing
~> 7.2.2.1 requirement prevents Bundler from selecting it. Require
at least 7.2.4 while allowing later 7.2 patch releases. A lower
minimum lets a fresh dependency resolution select Rails 7.2.3
with minitest 6, leaving the JSON incompatibility in place.

Fixes #442
@willnet
willnet requested review from brendon and joshbuker November 13, 2026 05:05
@joshbuker
joshbuker merged commit 92f2c2c into main Nov 16, 2026
36 checks passed
@willnet
willnet deleted the fix/ci-json-compatibility branch November 16, 2026 08:39
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.

Broken build

2 participants