DEV: rebalance parallel tests (take 2)

This commit is contained in:
Penar Musaraj 2019-03-19 09:59:03 -04:00
parent 0861ca7764
commit 60b6c67c1c

View File

@ -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(' ')