Page MenuHomePhabricator

Wikibase travis CI is failing, no such table: unittest_wbt_type foir sqlite
Closed, ResolvedPublic

Description

Fist failure appears to have been https://travis-ci.org/github/wikimedia/mediawiki-extensions-Wikibase/builds/700121067

Wikimedia\Rdbms\DBQueryError from line 1679 of /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? 
Query: DELETE FROM unittest_wbt_type
Function: Wikimedia\Rdbms\Database::truncate
Error: 1 no such table: unittest_wbt_type
#0 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/Database.php(1663): Wikimedia\Rdbms\Database->getQueryException('no such table: ...', 1, 'DELETE FROM uni...', 'Wikimedia\\Rdbms...')
#1 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/Database.php(1640): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('no such table: ...', 1, 'DELETE FROM uni...', 'Wikimedia\\Rdbms...')
#2 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/Database.php(1215): Wikimedia\Rdbms\Database->reportQueryError('no such table: ...', 1, 'DELETE FROM uni...', 'Wikimedia\\Rdbms...', false)
#3 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/DatabaseSqlite.php(1120): Wikimedia\Rdbms\Database->query('DELETE FROM uni...', 'Wikimedia\\Rdbms...', 264)
#4 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/Database.php(5095): Wikimedia\Rdbms\DatabaseSqlite->doTruncate(Array, 'Wikimedia\\Rdbms...')
#5 /home/travis/build/wikimedia/phase3/extensions/Wikibase/lib/tests/phpunit/Store/Sql/Terms/DatabaseInnerTermStoreCleanerTest.php(36): Wikimedia\Rdbms\Database->truncate(Array)
#6 /home/travis/build/wikimedia/phase3/tests/phpunit/MediaWikiIntegrationTestCase.php(433): Wikibase\Lib\Tests\Store\Sql\Terms\DatabaseInnerTermStoreCleanerTest->addDBData()
#7 /home/travis/build/wikimedia/phase3/vendor/phpunit/phpunit/src/Framework/TestSuite.php(597): MediaWikiIntegrationTestCase->run(Object(PHPUnit\Framework\TestResult))
#8 /home/travis/build/wikimedia/phase3/vendor/phpunit/phpunit/src/Framework/TestSuite.php(597): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#9 /home/travis/build/wikimedia/phase3/vendor/phpunit/phpunit/src/Framework/TestSuite.php(597): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#10 /home/travis/build/wikimedia/phase3/vendor/phpunit/phpunit/src/Framework/TestSuite.php(597): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#11 /home/travis/build/wikimedia/phase3/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(627): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#12 /home/travis/build/wikimedia/phase3/vendor/phpunit/phpunit/src/TextUI/Command.php(204): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, Array, true)
#13 /home/travis/build/wikimedia/phase3/tests/phpunit/phpunit.php(75): PHPUnit\TextUI\Command->run(Array, true)
#14 /home/travis/build/wikimedia/phase3/maintenance/doMaintenance.php(105): PHPUnitMaintClass->execute()
#15 /home/travis/build/wikimedia/phase3/tests/phpunit/phpunit.php(134): require('/home/travis/bu...')
#16 {main}
[10e893852da71ac0929f9610] [no req]   Wikimedia\Rdbms\DBTransactionError from line 1503 of /home/travis/build/wikimedia/phase3/includes/libs/rdbms/database/Database.php: Explicit transaction still active. A caller may have caught an error. Open transactions: Wikimedia\Rdbms\Database::truncate
Backtrace:
#0 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1642): Wikimedia\Rdbms\Database->assertNoOpenTransactions()
#1 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2150): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\DatabaseSqlite)
#2 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1661): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection(Closure)
#3 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/lbfactory/LBFactory.php(244): Wikimedia\Rdbms\LoadBalancer->approveMasterChanges(array, string, integer)
#4 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/lbfactory/LBFactorySimple.php(133): Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\LoadBalancer, string, array)
#5 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/lbfactory/LBFactory.php(246): Wikimedia\Rdbms\LBFactorySimple->forEachLB(Closure, array)
#6 /home/travis/build/wikimedia/phase3/includes/libs/rdbms/lbfactory/LBFactory.php(305): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod(string, array)
#7 /home/travis/build/wikimedia/phase3/maintenance/doMaintenance.php(133): Wikimedia\Rdbms\LBFactory->commitMasterChanges(string)
#8 /home/travis/build/wikimedia/phase3/tests/phpunit/phpunit.php(134): require(string)
#9 {main}

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptJun 22 2020, 12:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Restricted Application added a project: User-Michael. · View Herald TranscriptJun 23 2020, 11:18 AM

Change 607266 had a related patch set uploaded (by Michael Große; owner: Michael Große):
[mediawiki/extensions/Wikibase@master] Fix travis error about missing test database

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

Change 607266 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Fix travis error about missing test database

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