I maintain an Azure DevOps pipeline template that is used by multiple teams. In this template, I'm exposing a bunch of run options. Most relevant to this issue are "run tests in parallel" (using pabot) and "number of parallel processes" used.
The "number of parallel processes" used option takes a positive integer, auto, or all. I'm currently using the following code to achieve this (simplified and redacted):
Context
I maintain an Azure DevOps pipeline template that is used by multiple teams. In this template, I'm exposing a bunch of run options. Most relevant to this issue are "run tests in parallel" (using pabot) and "number of parallel processes" used.
The "number of parallel processes" used option takes a positive integer,
auto
, orall
. I'm currently using the following code to achieve this (simplified and redacted):The improvement
I would love to be able to call pabot with
--processes auto
. This should behave the same way as calling pabot without the--processes
argument.This small change can make my pipeline template a bunch simpler:
If you're open to this change, please let me know and I'll open a PR ;)