Hello,
I have added a job in Jenkins which runs the Mediawiki core PHPUnit test suite using the Facebook HipHop virtual machine.
The job is now being run along other testing jobs. It is slightly slower (4 min 30s) than the other jobs so that would delay the reporting back to Gerrit by roughly a minute. I have made the job to timeout after 8 minutes to avoid unnecessarily blocking changes.
hhmv is installed on some labs instance and is using the version in our apt repository (thought not automatically upgraded 'ensure => present').
The job page: https://integration.wikimedia.org/ci/job/mediawiki-core-phpunit-hhvm/
It is very experimental, one of the build segfaulted: https://integration.wikimedia.org/ci/job/mediawiki-core-phpunit-hhvm/2/
Another one has one failing test: https://integration.wikimedia.org/ci/job/mediawiki-core-phpunit-hhvm/3/testR...
DjVuTest::testPageCount Object of class UnregisteredLocalFile could not be converted to string
That one probably need some code to be fixed.
Culprit: the install.php and update.php scripts are still using php.
Reference: ---------- Bug 62278 "write a jenkins job to use hhvm for mwcore https://bugzilla.wikimedia.org/show_bug.cgi?id=62278
On Thu, Mar 6, 2014 at 8:12 AM, Antoine Musso hashar+wmf@free.fr wrote:
The job is now being run along other testing jobs. It is slightly slower (4 min 30s) than the other jobs so that would delay the reporting I back to Gerrit by roughly a minute. I have made the job to timeout after 8 minutes to avoid unnecessarily blocking changes.
I took a quick glance at the patch, it looks like the tests are being run in the default interpreter mode with the JIT disabled. I submitted a patch that turns on the JIT[1]. I can't promise its faster but probably worth testing.
Erik B
Le 06/03/2014 18:26, Erik Bernhardson a écrit :
I took a quick glance at the patch, it looks like the tests are being run in the default interpreter mode with the JIT disabled. I submitted a patch that turns on the JIT[1]. I can't promise its faster but probably worth testing.
Erik B
Merged earlier today. A nice side effect is that the tests are now passing! They previously were segfaulint/dieing with some class not found errors.
I also pointed the sqlite op cache to point to the workspace (Repo.Central.Path), I guess we want to delete it before running hhvm?
wikitech-l@lists.wikimedia.org