From 85bd5c2df524fa9dc98255874cc28e72305f71ce Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Tue, 9 Dec 2025 15:50:01 -0800 Subject: [PATCH] Rails seeded parallel tests (#2037) Enable work stealing by default for a tiny speedup at the cost of small loss in reproducibility. References https://github.com/rails/rails/pull/56175 --- Gemfile.lock | 2 +- Gemfile.saas.lock | 2 +- test/test_helper.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ea4794b5a..91ce042ce 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,7 +13,7 @@ GIT GIT remote: https://github.com/rails/rails.git - revision: bf81d40a91880c059ce9d0447219385a2c8e4a15 + revision: 554970f3e9b520bc302a339c13aa1d98866be3aa branch: ast-immediate-variants-process-locally specs: actioncable (8.2.0.alpha) diff --git a/Gemfile.saas.lock b/Gemfile.saas.lock index aabe04258..2ab43a2af 100644 --- a/Gemfile.saas.lock +++ b/Gemfile.saas.lock @@ -82,7 +82,7 @@ GIT GIT remote: https://github.com/rails/rails.git - revision: bf81d40a91880c059ce9d0447219385a2c8e4a15 + revision: 554970f3e9b520bc302a339c13aa1d98866be3aa branch: ast-immediate-variants-process-locally specs: actioncable (8.2.0.alpha) diff --git a/test/test_helper.rb b/test/test_helper.rb index d18f4c9c4..12ab491ed 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -38,7 +38,7 @@ end module ActiveSupport class TestCase - parallelize(workers: :number_of_processors) + parallelize workers: :number_of_processors, work_stealing: ENV["WORK_STEALING"] != "false" # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. fixtures :all