Skip to content

Conversation

@ohbarye
Copy link
Contributor

@ohbarye ohbarye commented Dec 2, 2025

Change

This adds activerecord 8.1 into the test matrix since activerecord 8.1 was released on October 22, 2025.

ref: https://rubygems.org/gems/activerecord/versions/8.1.0

8.1 still requires Ruby 3.2 or later as like 8.0 does.

Testing

Some tests fail on 8.1. I'll check it later.
https://github.com/ohbarye/activerecord-debug_errors/actions/runs/19865227719/job/56925996094

@ohbarye ohbarye marked this pull request as draft December 3, 2025 00:40
@ohbarye ohbarye force-pushed the support-activerecord-8_1-explicitly branch 3 times, most recently from 1ae38e6 to 07b512c Compare December 14, 2025 12:07
In ActiveRecord 8.1+, replica connections cannot execute lock queries,
so it raises ActiveRecord::ReadOnlyError instead of ActiveRecord::Deadlocked.
@ohbarye ohbarye force-pushed the support-activerecord-8_1-explicitly branch from 07b512c to 72fd341 Compare December 14, 2025 12:15
}.to raise_error(ActiveRecord::Deadlocked)
expect(log.string).to include("Failed to execute")
# In ActiveRecord 8.1+, replica connections cannot execute lock queries,
# so it raises ActiveRecord::ReadOnlyError instead of ActiveRecord::Deadlocked.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I understand why this test fails since 8.1.,0 but I'm not sure how this test should be. Although the current approach passes tests, it looks like a workaround.

@ohbarye ohbarye marked this pull request as ready for review December 19, 2025 14:07
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.

1 participant