mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
DEV: rebalance parallel tests (take 2)
This commit is contained in:
parent
0861ca7764
commit
60b6c67c1c
|
@ -135,9 +135,8 @@ task 'docker:test' do
|
|||
|
||||
spec_partials = Dir["spec/**/*_spec.rb"].sort.in_groups(total, false)
|
||||
# quick and dirty load balancing
|
||||
spec_partials.each_index do |i|
|
||||
next if i == 0
|
||||
spec_partials[i - 1].concat(spec_partials[i].shift(15))
|
||||
if (spec_partials.count > 3)
|
||||
spec_partials[0].concat(spec_partials[total - 1].shift(60))
|
||||
end
|
||||
|
||||
params << spec_partials[subset].join(' ')
|
||||
|
|
Loading…
Reference in New Issue
Block a user