Skip to content

parallelize test runner broken in 7.1.0.alpha #48547

Description

@matthutchinson

Steps to reproduce

  • Create a new app with Rails 7.1.0.alpha (edge)
  • Add any test (controller or model)
  • Run any tests in parallel with parallelize. I.e. to force this use the PARALLEL_WORKERS env var
# In a new Rails  7.1.0.alpha (edge) app
bundle install
rails generate scaffold HighScore game:string score:integer
rails db:migrate
# run any test with 2 (or more) parallel workers
PARALLEL_WORKERS=2 rails test test/controllers/high_scores_controller_test.rb 

Example App: a simple bare bones app with a few generated models/controllers

Expected behavior

Tests should run in parallel and pass

Actual behavior

Tests all fail with missing db table errors; E.g.

DRb::DRbRemoteError: SQLite3::SQLException: no such table: ar_internal_metadata (ActiveRecord::StatementInvalid)

Or

DRb::DRbRemoteError: Could not find table 'high_scores' (ActiveRecord::StatementInvalid)

System configuration

Rails version: 7.1.0.alpha
Ruby version: 3.1.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions