Page MenuHomePhabricator

Configure PHPUnit Parallel split group count from environment variable
Closed, ResolvedPublic2 Estimated Story Points

Description

In support of testing more powerful / faster CI configurations (T383254), make it possible to configure the split group count via an environment variable.

The current setting (8 groups) is hard-coded in core/includes/composer/ComposerLaunchParallel.php:

	private const SPLIT_GROUP_COUNT = 8;

It should be as simple as processing an environment variable here (QUIBBLE_PHPUNIT_PARALLEL_GROUP_COUNT ?), and ensuring there is a default value of 8 (and that the value is never less than 2).

Event Timeline

thcipriani set the point value for this task to 2.

Change #1112099 had a related patch set uploaded (by Brennen Bearnes; author: Brennen Bearnes):

[mediawiki/core@master] ComposerLaunchParallel: Configure split group count from environment

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

Change #1112099 merged by jenkins-bot:

[mediawiki/core@master] ComposerLaunchParallel: Configure split group count from environment

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

Change #1112260 had a related patch set uploaded (by Brennen Bearnes; author: Brennen Bearnes):

[mediawiki/core@master] ComposerLaunchParallel: remove QUIBBLE_ from env variable

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

Change #1112260 merged by jenkins-bot:

[mediawiki/core@master] ComposerLaunchParallel: remove QUIBBLE_ from env variable

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

thcipriani subscribed.

We are now able to split jobs into PHPUNIT_PARALLEL_GROUP_COUNT groups, next up: enabling this in CI!