Page MenuHomePhabricator

Create separate debug log streams for PHPUnit parallel runs
Closed, ResolvedPublic

Description

During PHPUnit parallel runs, the parallel-running test suites simultaneously log to the same error / debug logs. This makes it harder to debug certain test failures.

Introduce a process-dependent environment variable to the phpunit:parallel: commands, and use that variable in includes/DevelopmentSettings.php to create split-group-specific logs for test runs.

Event Timeline

Change #1076161 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/core@master] Tests: Split log files by parallel grouping

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

kostajh subscribed.

Change #1078628 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[integration/config@master] Match `split-group` log files when checking for mediawiki errors

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

Change #1078628 merged by jenkins-bot:

[integration/config@master] Match `split-group` log files when checking for mediawiki errors

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

Change #1076161 merged by jenkins-bot:

[mediawiki/core@master] Tests: Split log files by parallel grouping

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