Page MenuHomePhabricator

Wikibase phpunit tests exiting at 97%
Closed, ResolvedPublic

Description

phpunit tests for the build on jenkins are exiting at 97%

https://integration.wikimedia.org/ci/job/mwext-Wikidata-testextensions-master/333/console

I have been able to reproduce same/similar issue locally when running core + extension tests.

From my debugging (and consistent when this issue started to happen), I believe the issue is with https://gerrit.wikimedia.org/r/#/c/119306/ but not yet tracked down the specific problem.


Version: master
Severity: normal
Whiteboard: u=dev c=QA p=3 s=2014-04-01

Details

Reference
bz63407

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:06 AM
bzimport set Reference to bz63407.
bzimport added a subscriber: Unknown Object (MLST).

somehow error reporting is off (!?) at this point of running phpunit tests, but in the suspected test file, I added:

error_reporting( E_ALL );
ini_set( 'display_errors', 1 );

to get the tests to produce some information about the problem.

here is a stack trace:

Fatal error: Cannot use Wikibase\DataModel\SiteLink as SiteLink because the name is already in use in /Library/WebServer/Documents/php-master/extensions/Wikibase/client/includes/UpdateRepo.php on line 11

Call Stack:

  4.1686     672272   1. {main}() /Library/WebServer/Documents/php-master/tests/phpunit/phpunit.php:0
  4.8376   18009816   2. MediaWikiPHPUnitCommand::main(???) /Library/WebServer/Documents/php-master/tests/phpunit/phpunit.php:116
  4.8378   18022488   3. MediaWikiPHPUnitCommand->run(???, ???) /Library/WebServer/Documents/php-master/tests/phpunit/MediaWikiPHPUnitCommand.php:64
  4.8379   18022536   4. PHPUnit_TextUI_Command->run(???, ???) /Library/WebServer/Documents/php-master/tests/phpunit/MediaWikiPHPUnitCommand.php:80
 99.6439  326771912   5. PHPUnit_TextUI_TestRunner->doRun(???, ???) /opt/local/lib/php/pear/PHPUnit/TextUI/Command.php:176
 99.6538  327275448   6. PHPUnit_Framework_TestSuite->run(???, ???, ???, ???, ???) /opt/local/lib/php/pear/PHPUnit/TextUI/TestRunner.php:349
100.3130  327276432   7. PHPUnit_Framework_TestSuite->run(???, ???, ???, ???, ???) /opt/local/lib/php/pear/PHPUnit/Framework/TestSuite.php:705
100.3143  327277352   8. PHPUnit_Framework_TestSuite->run(???, ???, ???, ???, ???) /opt/local/lib/php/pear/PHPUnit/Framework/TestSuite.php:705
263.7098  538192504   9. PHPUnit_Framework_TestSuite->run(???, ???, ???, ???, ???) /opt/local/lib/php/pear/PHPUnit/Framework/TestSuite.php:705
263.7104  538194064  10. PHPUnit_Framework_TestSuite->runTest(???, ???) /opt/local/lib/php/pear/PHPUnit/Framework/TestSuite.php:745
263.7104  538194064  11. MediaWikiTestCase->run(???) /opt/local/lib/php/pear/PHPUnit/Framework/TestSuite.php:775
263.7106  538194272  12. PHPUnit_Framework_TestCase->run(???) /Library/WebServer/Documents/php-master/tests/phpunit/MediaWikiTestCase.php:134
263.7110  538194272  13. PHPUnit_Framework_TestResult->run(???) /opt/local/lib/php/pear/PHPUnit/Framework/TestCase.php:783
263.7113  538195288  14. PHPUnit_Framework_TestCase->runBare() /opt/local/lib/php/pear/PHPUnit/Framework/TestResult.php:648
263.7121  538236992  15. PHPUnit_Framework_TestCase->runTest() /opt/local/lib/php/pear/PHPUnit/Framework/TestCase.php:838
263.7121  538238456  16. ReflectionMethod->invokeArgs(???, ???) /opt/local/lib/php/pear/PHPUnit/Framework/TestCase.php:983
263.7122  538238488  17. Wikibase\Test\UpdateRepoOnMoveTest->testUserIsValidOnRepo() /opt/local/lib/php/pear/PHPUnit/Framework/TestCase.php:983
263.7122  538238488  18. Wikibase\Test\UpdateRepoOnMoveTest->getNewLocal() /Library/WebServer/Documents/php-master/extensions/Wikibase/client/tests/phpunit/includes/UpdateRepoOnMoveTest.php:95
263.7276  538325104  19. Composer\Autoload\ClassLoader->loadClass(???) /Library/WebServer/Documents/php-master/extensions/Wikibase/client/tests/phpunit/includes/UpdateRepoOnMoveTest.php:0
263.7277  538325104  20. Composer\Autoload\includeFile(???) /Library/WebServer/Documents/php-master/extensions/Wikibase/vendor/composer/ClassLoader.php:269
263.7279  538339888  21. include('/Library/WebServer/Documents/php-master/extensions/Wikibase/client/includes/UpdateRepoOnMove.php') /Library/WebServer/Documents/php-master/extensions/Wikibase/vendor/composer/ClassLoader.php:377
263.7279  538340248  22. Composer\Autoload\ClassLoader->loadClass(???) /Library/WebServer/Documents/php-master/extensions/Wikibase/vendor/composer/ClassLoader.php:0
263.7279  538340248  23. Composer\Autoload\includeFile(???) /Library/WebServer/Documents/php-master/extensions/Wikibase/vendor/composer/ClassLoader.php:269

Change 123826 had a related patch set uploaded by Aude:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/123826

Change 123826 merged by Jeroen De Dauw:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/123826

Change 124309 had a related patch set uploaded by Aude:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/124309

Change 124309 merged by jenkins-bot:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/124309