Last modified: 2014-04-15 13:55:12 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 T65407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63407 - Wikibase phpunit tests exiting at 97%
Wikibase phpunit tests exiting at 97%
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
master
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=QA p=3 s=2014-04-01
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-02 09:27 UTC by Aude
Modified: 2014-04-15 13:55 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-04-02 09:27:23 UTC
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.
Comment 1 Aude 2014-04-04 02:11:37 UTC
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
Comment 2 Gerrit Notification Bot 2014-04-04 02:17:22 UTC
Change 123826 had a related patch set uploaded by Aude:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/123826
Comment 3 Gerrit Notification Bot 2014-04-04 15:30:48 UTC
Change 123826 merged by Jeroen De Dauw:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/123826
Comment 4 Gerrit Notification Bot 2014-04-07 11:34:16 UTC
Change 124309 had a related patch set uploaded by Aude:
Use SimpleSiteLink (for now) in UpdateRepo

https://gerrit.wikimedia.org/r/124309
Comment 5 Gerrit Notification Bot 2014-04-07 13:38:45 UTC
Change 124309 merged by jenkins-bot:
Use SimpleSiteLink (for now) in UpdateRepo

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

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


Navigation
Links