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
This commit is contained in:
Jeremy Daer
2025-12-09 15:50:01 -08:00
committed by GitHub
parent fbb0c9d795
commit 85bd5c2df5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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