The Wire · Showcase
RAILS TEST DATABASE CLEANUP FIX LANDS, TAILWIND CSS 4.3.0 ROLLS OUT
By RepoJournal · Filed · About Rails
Rails merges a critical fix for parallel test database leaks that were orphaning per-worker databases across PostgreSQL and MySQL test runs.
The rails/rails team shipped a fix [1] that makes `use_postgresql` and `use_mysql2` test helpers automatically drop temporary databases created inside their blocks, solving a long-standing problem where per-PID and per-worker databases lingered after test runs completed. Without this change, `rails db:drop` couldn't clean up what `ActiveRecord::TestDatabases.create_and_load_schema` created because those databases never made it into `config/database.yml`. The merge [2] updates existing callers to use the new block pattern. On the maintenance side, rails also patched a console subprocess leak in FullStackConsoleTest [3], ensuring spawned processes get cleaned up properly. A separate fix [4] landed for PostgreSQL schema dumping to preserve index opclas from different schemas, closing a gap in migration reliability. In the ecosystem, tailwindcss-rails bumped its dependency [5] from version 4.2.4 to 4.3.0, picking up the latest Tailwind CSS improvements and keeping the rail-managed build chain current.
Action items
- → Update your test suite to use block form of use_postgresql/use_mysql2 if you have parallel tests rails/rails [plan]
- → Pull latest rails main if you run parallel test suites to avoid orphaned test databases rails/rails [monitor]
- → Bump tailwindcss-rails to pick up Tailwind CSS 4.3.0 rails/tailwindcss-rails [monitor]
References
- [1] Drop test databases when use_postgresql / use_mysql2 is given a block ↗ rails/rails
- [2] Merge pull request #57458 from yahonda/yahonda/railties-parallel-test-db-cleanup rails/rails
- [3] Merge pull request #57465 from yahonda/fix-spawn-console-process-leak rails/rails
- [4] Merge pull request #56979 from nicolasva/PostgreSQL_SchemaDumper rails/rails
- [5] build(deps): bump tailwindcss-ruby from 4.2.4 to 4.3.0 ↗ rails/tailwindcss-rails
FAQ
- What changed in Rails on May 26, 2026?
- Rails merges a critical fix for parallel test database leaks that were orphaning per-worker databases across PostgreSQL and MySQL test runs.
- What should Rails teams do about it?
- Update your test suite to use block form of use_postgresql/use_mysql2 if you have parallel tests • Pull latest rails main if you run parallel test suites to avoid orphaned test databases • Bump tailwindcss-rails to pick up Tailwind CSS 4.3.0
- Which Rails repositories shipped on May 26, 2026?
- rails/rails, rails/tailwindcss-rails