Last modified: 2014-02-12 23:35:39 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 T47104, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45104 - Tests fail with ExternalStore config
Tests fail with ExternalStore config
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-17 16:44 UTC by Aude
Modified: 2014-02-12 23:35 UTC (History)
3 users (show)

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


Attachments

Description Aude 2013-02-17 16:44:17 UTC
I get stuff like this when I run phpunit tests with ExternalStore config enabled:

1) Wikibase\Test\EditEntityTest::testHasEditConflict with data set #0 (NULL, NULL, false, false)
DBQueryError: A database error has occurred. Did you forget to run maintenance/update.php after upgrading?  See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: INSERT  INTO `unittest_blobs_cluster25` (blob_id,blob_text) VALUES (NULL,'{\"label\":{\"en\":\"foo\"},\"description\":[],\"aliases\":[],\"claims\":[],\"links\":[],\"entity\":\"q2\"}')
Function: ExternalStoreDB::store
Error: 1146 Table 'testrepo.unittest_blobs_cluster25' doesn't exist 


58) Wikibase\Test\Repo\Api\SetQualifierTest::testRequests
MWException: ExternalStoreDB::store: no insert ID

/var/www/common/php-1.21wmf6/includes/externalstore/ExternalStoreDB.php:67
/var/www/common/php-1.21wmf6/includes/externalstore/ExternalStore.php:148
/var/www/common/php-1.21wmf6/includes/Revision.php:1280
/var/www/common/php-1.21wmf6/includes/WikiPage.php:1855
/var/www/common/php-1.21wmf6/extensions/Wikibase/repo/includes/content/EntityContent.php:477
/var/www/common/php-1.21wmf6/extensions/Wikibase/repo/tests/phpunit/includes/api/SetQualifierTest.php:119
/var/www/common/php-1.21wmf6/tests/phpunit/MediaWikiTestCase.php:116
/var/www/common/php-1.21wmf6/tests/phpunit/MediaWikiPHPUnitCommand.php:63
/var/www/common/php-1.21wmf6/tests/phpunit/MediaWikiPHPUnitCommand.php:47
/var/www/common/php-1.21wmf6/tests/phpunit/phpunit.php:108

Tests pass with flying colors when I remove the external store config.

It would be nice to be able to run tests when I have external store and other real WMF "production"-like settings.

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


Navigation
Links