Last modified: 2014-07-14 23:13:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50217, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48217 - Jenkins: Merge seperate mediawiki-core-phpunit-{group} jobs and use parallel-phpunit
Jenkins: Merge seperate mediawiki-core-phpunit-{group} jobs and use parallel-...
Status: NEW
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-07 16:52 UTC by Krinkle
Modified: 2014-07-14 23:13 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2013-05-07 16:52:03 UTC
For consideration. Though concurrency is nice, separate jobs also comes at a set up cost:
* wipe workspace
* git-fetch
* git-checkout
* install mediawiki
* init phpunit
* occupying one of 10 jenkins executors
etc.

Since phpunit tests already are running in the same build (each phpunit-group contains various different subgroups and test suites). The separation we use now is mostly arbitrary from the tests point of view, it should be fine to run them in the same build.

I think it would be faster to run them concurrently within one job. Also keeps the statistics and jUnit report card more complete by not being spread over three build histories.
Comment 2 Antoine "hashar" Musso (WMF) 2013-10-10 19:29:45 UTC
Gist from Sebastian Bergmann, PHPUnit creator:

partition-testsuite.php

Script that (making way too many assumptions) generates an Apache Ant build script to run a PHPUnit test suite in parallel.

https://gist.github.com/sebastianbergmann/4405417


Then assemble the generated JUnit XML files using:

merge-phpunit-xml.php

Script that merges multiple PHPUnit XML logfiles (JUnit XML) into one PHPUnit XML logfile.

https://gist.github.com/sebastianbergmann/4405658

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links