Last modified: 2014-08-19 23:49:16 UTC
I did http://paste.debian.net/111811/ and got the following, fixed by labs-vagrant disable-role globalcssjs. Probably the role should imply centralauth role but doesn't. $ php5 --version PHP 5.5.9-1ubuntu4.3 (cli) (built: Jul 7 2014 16:36:58) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans vagrant@nemobis:/srv/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php [...] PHPUnit 3.7.37 by Sebastian Bergmann. Configuration read from /srv/vagrant/mediawiki/tests/phpunit/suite.xml [774ee431] [no req] Exception from line 79 of /srv/vagrant/mediawiki/includes/db/CloneDatabase.php: Cannot clone shared table objectcache. Backtrace: #0 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(544): CloneDatabase->cloneTableStructure() #1 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(115): MediaWikiTestCase::setupTestDB(DatabaseMysqli, string) #2 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(779): MediaWikiTestCase->run(PHPUnit_Framework_TestResult) #3 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(749): PHPUnit_Framework_TestSuite->runTest(ArrayUtilsTest, PHPUnit_Framework_TestResult) #4 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #5 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #6 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #7 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php(350): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #8 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php(176): PHPUnit_TextUI_TestRunner->doRun(PHPUnit_Framework_TestSuite, array) #9 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php(42): PHPUnit_TextUI_Command->run(array, boolean) #10 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php(160): MediaWikiPHPUnitCommand::main() #11 {main}
What happens if you use the CentralAuth role instead of just including the extension?
(In reply to Kunal Mehta (Legoktm) from comment #1) > What happens if you use the CentralAuth role instead of just including the > extension? "Just including the extension" is not something I did. Are you asking me to enable both the centralauth and globalcssjs roles together?
(In reply to Nemo from comment #2) > "Just including the extension" is not something I did. Correction: as legoktm noted, by mistake I had forgotten to remove the CentralAuth.php inclusion. > Are you asking me to > enable both the centralauth and globalcssjs roles together? Will retest later
Created attachment 16052 [details] Installed stuff Nope, I get the error nevertheless. vagrant@nemobis:/vagrant/mediawiki/tests/phpunit$ php5 phpunit.php includes PHPUnit 3.7.37 by Sebastian Bergmann. Configuration read from /srv/vagrant/mediawiki/tests/phpunit/suite.xml [8923b28c] [no req] Exception from line 79 of /srv/vagrant/mediawiki/includes/db/CloneDatabase.php: Cannot clone shared table objectcache. Backtrace: #0 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(544): CloneDatabase->cloneTableStructure() #1 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php(115): MediaWikiTestCase::setupTestDB(DatabaseMysqli, string) #2 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(779): MediaWikiTestCase->run(PHPUnit_Framework_TestResult) #3 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(749): PHPUnit_Framework_TestSuite->runTest(ArrayUtilsTest, PHPUnit_Framework_TestResult) #4 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #5 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php(709): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #6 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php(350): PHPUnit_Framework_TestSuite->run(PHPUnit_Framework_TestResult, boolean, array, array, boolean) #7 /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php(176): PHPUnit_TextUI_TestRunner->doRun(PHPUnit_Framework_TestSuite, array) #8 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php(42): PHPUnit_TextUI_Command->run(array, boolean) #9 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php(160): MediaWikiPHPUnitCommand::main() #10 {main}
Ok, I believe this is due to the CentralAuth role adding an objectcache table, which can't be cloned when running tests. What happens if you disable the globalcssjs role and enable the centralauth one? I think you should get the same error.
Tentatively moved here.
So, this is actually a vagrant bug in the fact that CentralAuth no longer needs an objectcache table. The creation of the table is going to be removed as part of https://gerrit.wikimedia.org/r/#/c/146440/, but for now you can just drop the table manually.
The centralauth role no longer creates and configured the shared table. Kunal pointed out that our redis cache eliminated the need for it.