Auto-determine most efficient parallelization factor for test runs
Problem to solve
Building on https://gitlab.com/gitlab-org/gitlab-ee/issues/1519 (or maybe even without it), we can take things a step further by supporting an
auto value for the maximum setting, which would tell GitLab to find the most efficient ratio of tests to parallel jobs. Other products like Semaphore CI do this, but I'm not sure what calculation they use to determine the optimal balance.
Sasha (Software Developer)
We should ensure this setting is the default, or create a follow up issue to make it the default later if not possible.
Support a new max: value for the parallel keyword:
test: script: rspec parallel: max: auto booster: rspec
This would create the optimal number of jobs x, each running
rspec_booster --job n/x (where n is the job index)
Permissions and Security
No security changes