https://bugzilla.wikimedia.org/show_bug.cgi?id=45104

       Web browser: ---
            Bug ID: 45104
           Summary: Tests fail with ExternalStore config
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Unit tests
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to