Skip to content

Pin json below 3 for Active Record 8.0 test runs - #602

Merged
nertzy merged 1 commit into
masterfrom
pin-json-active-record-8-0
Oct 16, 2026
Merged

nertzy merged 1 commit into
masterfrom
pin-json-active-record-8-0

Conversation

@nertzy

@nertzy nertzy commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Active Record 8.0.5.1 calls JSON.generate with quirks_mode, and json 3 rejects that option with unknown keyword: quirks_mode. As a result, every Active Record 8.0 job on master fails in the two specs that save a JSON attribute.

8-0-stable already stopped passing the option in rails/rails@2786de2, but no 8.0 release includes that fix yet. This pins json below 3 only when ACTIVE_RECORD_VERSION allows 8.0.5.1, so Active Record 8.1 jobs keep testing json 3. The pin can be dropped once an 8.0 release ships the fix.

Active Record 8.0.5.1 calls JSON.generate with quirks_mode, which json 3
rejects with "unknown keyword: quirks_mode". Every Active Record 8.0 CI
job fails on the specs that save a JSON attribute.

8-0-stable already dropped the option in rails/rails@2786de2, but no 8.0
release includes it yet. Constrain json only when the requested Active
Record version allows 8.0.5.1, so Active Record 8.1 runs keep testing
json 3.
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The targeted constraint addresses the affected test configuration without restricting Active Record 8.1 jobs.

0 open findings

What changed in this PR

Adds a targeted dependency workaround for Active Record 8.0 test failures caused by json 3 rejecting quirks_mode.

Changes:

  • Pins json below 3 when ACTIVE_RECORD_VERSION permits 8.0.5.1, leaving 8.1 jobs unrestricted.
  • Documents when the temporary pin can be removed.
File Description
Gemfile Adds the conditional json constraint and explanatory comments.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nertzy
nertzy merged commit 25db9ff into master Oct 16, 2026
14 checks passed
@nertzy
nertzy deleted the pin-json-active-record-8-0 branch October 16, 2026 21:09
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.

2 participants