Page MenuHomePhabricator

Make webdriverIO tests in CI run amount of parallel tests depending on number of CPUs
Closed, ResolvedPublic

Description

Today we have hardcoded the amount of parallel tests in CI. We have a workers in CI that has 16 vCPUs (the rest have 8) and both will run with the same amount of tests in parallel. Let's make our code look at number of CPUs the machine have and try to utilize more of them if they are available.

If we run more tests in parallel we make more use of that worker that have more CPU so we give it a better chance to show us different runtimes.

Acceptance Criteria:

  • Make sure tests that runs in CI try to use more tests in parallel if we have more CPUs

Event Timeline

T420070 will help us to see that it really works

Change #1253416 had a related patch set uploaded (by Phedenskog; author: Phedenskog):

[mediawiki/core@master] selenium: Set the max number of parallel jobs to 75% of availible cpus

https://gerrit.wikimedia.org/r/1253416

Change #1253416 merged by jenkins-bot:

[mediawiki/core@master] selenium: Set Max number of parallel jobs to 75% of available cpus in CI

https://gerrit.wikimedia.org/r/1253416