Last modified: 2014-02-12 23:35:39 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.