I wanted to Jenkins jobs setup for MediaWikiFarm, but they fail on the dummy change https://gerrit.wikimedia.org/r/#/c/324091/
It uses phpdocumentor which requires the PHP extension xsl, unfortunately it is not available on our Trusty instances and fail the build. We have to add the package php5-xsl
- https://gerrit.wikimedia.org/r/324186 contint: install php5-xsl package
The test MultiversionInstallationTest::testDeploymedVersions3 fails under HHVM though it pass just fine with Zend PHP 5.5:
Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'vstub2' +'vstub' extensions/MediaWikiFarm/tests/phpunit/MultiversionInstallationTest.php:372 tests/phpunit/MediaWikiTestCase.php:399 src/maintenance/doMaintenance.php:111
Resolution:
Bug in HHVM #4797 https://github.com/facebook/hhvm/issues/4797. I "skipped" the test for now, will try to find an acceptable resolution for this. The template library Smarty implemented a workaround, basically copying the PHP file with a random name and including it. https://github.com/smarty-php/smarty/commit/f9d9ca0f67c6b63e033a7a8e0d1623d60fc0d1ba
composer test fails to find phpunit:
> composer unit > sed -i 's/extends MediaWikiTestCase/extends PHPUnit_Framework_TestCase/' tests/phpunit/MediaWikiFarmTestCase.php > sh: 1: phpunit: not found
- https://gerrit.wikimedia.org/r/324197 Add phpunit/phpunit 4.8.x to require-dev
Resolution:
Added PHPUnit 4.8 as require-dev dependency
phpdbg is missing:
Error Output: sh: 1: phpdbg: not found
Resolution:
Fallback to php if phpdbg is not here
Other issues are detailed in the commit message.