Last modified: 2014-03-13 15:25:27 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 T64278, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62278 - Write a jenkins job to use hhvm for mwcore unit tests
Write a jenkins job to use hhvm for mwcore unit tests
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: hhvm
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-05 21:50 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-03-13 15:25 UTC (History)
5 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2014-03-05 21:50:25 UTC
hhvm has been installed on the CI slaves on labs (integration-slave{02,03}.pmtpa.wmflabs).  They have the label 'hasHhvm'.

We need a wrapper script to run hhvm and load the proper phpunit version. Also need to make sure log are compressed with a trap EXIT.

Example is in integration/jenkins.git  bin/mw-run-phpunit.php

It has some nasty logic to run different group, that can be dropped entirely since hhvm is probably fast enough to run the whole suite in a few minutes.


Command line example is in mw/core travis file: https://github.com/wikimedia/mediawiki-core/blob/master/.travis.yml#L54


Might poke that next week.
Comment 1 Antoine "hashar" Musso (WMF) 2014-03-05 21:51:00 UTC
And the compression I am referring to is a trick:


LOG_DIR="$WORKSPACE/log"
mkdir -p "$LOG_DIR"

# Make sure to compress MediaWiki log dir after phpunit has ran
function compress_log_dir() {
    echo "Compressing logs under $LOG_DIR"
	gzip --verbose --force --best "$LOG_DIR"/*.log || :
}
trap compress_log_dir EXIT
Comment 2 Gerrit Notification Bot 2014-03-06 14:40:23 UTC
Change 117185 had a related patch set uploaded by Hashar:
mw-run-phpunit-hhvm: mw tests with HHVM!

https://gerrit.wikimedia.org/r/117185
Comment 3 Gerrit Notification Bot 2014-03-06 14:40:44 UTC
Change 117185 merged by jenkins-bot:
mw-run-phpunit-hhvm: mw tests with HHVM!

https://gerrit.wikimedia.org/r/117185
Comment 4 Gerrit Notification Bot 2014-03-06 14:48:20 UTC
Change 117187 had a related patch set uploaded by Hashar:
MediaWiki phpunit under HHVM!

https://gerrit.wikimedia.org/r/117187
Comment 5 Gerrit Notification Bot 2014-03-06 15:50:46 UTC
Change 117187 merged by jenkins-bot:
MediaWiki phpunit under HHVM!

https://gerrit.wikimedia.org/r/117187
Comment 6 Antoine "hashar" Musso (WMF) 2014-03-06 15:51:20 UTC
The Gerrit change #117187 to jenkins creates the mediawiki-core-phpunit-hhvm job which runs the phpunit test suite using hhvm as provided by the debian package.

It fails with a segfault though:

https://integration.wikimedia.org/ci/job/mediawiki-core-phpunit-hhvm/2/console


Will need to install/update mediawiki using hhvm as well.
Comment 7 Gerrit Notification Bot 2014-03-06 15:53:29 UTC
Change 117205 had a related patch set uploaded by Hashar:
Trigger mediawiki-core-phpunit-hhvm

https://gerrit.wikimedia.org/r/117205
Comment 8 Gerrit Notification Bot 2014-03-06 15:57:00 UTC
Change 117205 merged by jenkins-bot:
Trigger mediawiki-core-phpunit-hhvm

https://gerrit.wikimedia.org/r/117205
Comment 9 Antoine "hashar" Musso (WMF) 2014-03-06 16:13:20 UTC
Still have to adjust the job to run the maintenance scripts install.php and update.php with hhvm instead of PHP.
Comment 10 Gerrit Notification Bot 2014-03-07 11:00:23 UTC
Change 117226 had a related patch set uploaded by Hashar:
Enable JIT for unit tests in HHVM

https://gerrit.wikimedia.org/r/117226
Comment 11 Gerrit Notification Bot 2014-03-07 11:28:22 UTC
Change 117226 merged by jenkins-bot:
Enable JIT for unit tests in HHVM

https://gerrit.wikimedia.org/r/117226
Comment 12 Gerrit Notification Bot 2014-03-07 11:44:04 UTC
Change 117405 had a related patch set uploaded by Hashar:
HHVM opcache in workspace

https://gerrit.wikimedia.org/r/117405
Comment 13 Gerrit Notification Bot 2014-03-07 11:44:34 UTC
Change 117405 merged by jenkins-bot:
HHVM opcache in workspace

https://gerrit.wikimedia.org/r/117405
Comment 14 Antoine "hashar" Musso (WMF) 2014-03-13 15:25:27 UTC
A job is triggered now and runs the whole MediaWiki unit test suite. https://integration.wikimedia.org/ci/job/mediawiki-core-phpunit-hhvm/

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


Navigation
Links