Last modified: 2014-09-10 07:22:21 UTC
Shouldn't be bug 67605 because here I had actually disabled CirrusSearch, see bug 67295; but its absence made other tests fail, it seems. 2) SolrTTMServerTest::testSearchableTTMServer Search backend error during sending 1 documents to the content index after 5867. Operation timed out [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97] /srv/vagrant/mediawiki/includes/debug/MWDebug.php:303 /srv/vagrant/mediawiki/includes/debug/MWDebug.php:157 /srv/vagrant/mediawiki/includes/GlobalFunctions.php:1202 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php:97 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:277 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:206 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:67 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/LinksUpdate.php:48 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/Job.php:55 /srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:176 /srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:36 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160 3) SolrTTMServerTest::testMediaWikiTestCaseParentSetupCalled Search backend error during sending 1 documents to the content index after 1. No enabled connection [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97] /srv/vagrant/mediawiki/includes/debug/MWDebug.php:303 /srv/vagrant/mediawiki/includes/debug/MWDebug.php:157 /srv/vagrant/mediawiki/includes/GlobalFunctions.php:1202 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php:97 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:277 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:206 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:67 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/LinksUpdate.php:48 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/Job.php:55 /srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:176 /srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/SolrTTMServerTest.php:36 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160 5) MessageGroupStatesUpdaterJobTest::testHooks Search backend error during sending 1 documents to the content index after 78. No enabled connection [Called from CirrusSearch\ElasticsearchIntermediary::failure in /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php at line 97] /srv/vagrant/mediawiki/includes/debug/MWDebug.php:303 /srv/vagrant/mediawiki/includes/debug/MWDebug.php:157 /srv/vagrant/mediawiki/includes/GlobalFunctions.php:1202 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/ElasticsearchIntermediary.php:97 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:277 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:206 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Updater.php:67 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/LinksUpdate.php:48 /srv/vagrant/mediawiki/extensions/CirrusSearch/includes/Job/Job.php:55 /srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php:180 /srv/vagrant/mediawiki/extensions/Translate/tests/phpunit/MessageGroupStatesUpdaterJobTest.php:125 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133 /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42 /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
Somewhere I wrote that there should be a way for external services like TTMServer or CirrusSearch disable themselves or provide testing instance while running unit tests. We can work around this issue by setting $wgTranslateTranslationServices to empty array in this test, but there are likely other tests where we accidentally hit the production ttmserver index.
Change 156272 had a related patch set uploaded by Nemo bis: Consistently declare $wgTranslateTranslationServices empty in tests https://gerrit.wikimedia.org/r/156272
Change 156272 abandoned by Nemo bis: Consistently declare $wgTranslateTranslationServices empty in tests Reason: No path provided for amending https://gerrit.wikimedia.org/r/156272