Ruby on Rails: Concurrency Bugs and Test Hygiene
Today's activity centers on fixing hard-to-reproduce concurrency bugs in database transactions and thread safety, alongside a cleanup pass on test environment leaks and Ractor compatibility.
Duration: PT2M39S
Episode overview
This episode is a short developer briefing from Ruby on Rails.
It explains recent repository work in plain language.
- Show: Ruby on Rails
- Published: 2026-09-19T13:12:54Z
- Audio duration: PT2M39S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
It's September 19th, 2026, and this is your Ruby on Rails briefing.
The clearest thread running through today's work is concurrency correctness — Rails is closing gaps that only show up under real production load.
Start with PR 58733 from kwestein, which fixes a deadlock in `find_or_create_by` under MySQL. When two threads race to create the same record, the loser ends up holding a lock the other one needs, and both stall out. This has been live since Rails 8's switch to `create_or_find_by`, and the fix avoids that lock…
The second theme is Ractor safety, which continues to get incremental hardening. Gannon McGibbon's PR 58822 makes the params wrapper options in Action Controller safe to share across Ractors by freezing them deeply and clearing an internal mutex. Jean Boussier merged byroot's PR 58812, updating Active Model's Ractor…
Third, a run of test infrastructure cleanup from Yasuo Honda: PRs 58820 and 58792 both stop environment variable leaks — one around RACK_ENV in the database console test, the other around RAILS_ENV when the test app builder runs twice. Both were caught by the recently added leak checker tool, which is clearly doing…
Worth a mention: Joel Hawksley's PR…
Nearby episodes from Ruby on Rails
- Association Scopes Get an Honesty Check
- Quietly Fixing Data Correctness Bugs
- Performance Cleanup Across the Stack
- Quiet Correctness Fixes and Ractor Readiness
- Locking Down the Edges
- Weekly Recap - Ractor Safety and Boot Reliability
- Boot Failures and a Stored XSS Fix
- Ractors, Vips, and the Performance Push