Since the switch to MySQL for unit tests (T37912) our unit tests on Ubuntu Precise with Zend PHP 5.3 have slowed down from 5 to about 10 minutes.
The HHVM tests went up from 4 to about 5.2 minutes on average. While this is mostly unavoidable, I think in a lot of cases we're using the setup handling in PHP incorrectly or in an inefficient way.
Possible curlpits can be discovered as follows:
- Open https://integration.wikimedia.org/ci/job/mediawiki-phpunit-zend/
- Find a job in the sidebar for master and gate-and-submit. E.g. https://integration.wikimedia.org/ci/job/mediawiki-phpunit-zend/4043/
- Go to "Test Result" (which is a visualisation of the PHPUnit jUnit report).
- Expand the root node and sort by duration to find slow tests.
Since most tests can be fixed with a simple commit once found, I'm not creating this as a tracker bug. So when can this be resolved? Well, let's see if we can find a couple tests to resolve and close this issue when we feel like it.