jenkins-bot has submitted this change and it was merged. Change subject: tests: stop updating the search engine ......................................................................
tests: stop updating the search engine While running includes/api tests, profiling reports tests are doing hundred of inserts followed by hundred of matching deletes. That is due to the search engine updates. For almost all tests, there is no need to update the search engine, that is a waste of I/O and CPU cycles. Speed up the run by using 'SearchEngineDummy'. Our search tests still pass since they take care of setting up a search engine. Change-Id: Ic10e989e27fd3901ea215f544a0490baef57f0a4 --- M tests/common/TestSetup.php 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Smalyshev: Looks good to me, but someone else must approve MaxSem: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/common/TestSetup.php b/tests/common/TestSetup.php index 6c3ad07..53e724b 100644 --- a/tests/common/TestSetup.php +++ b/tests/common/TestSetup.php @@ -15,6 +15,7 @@ global $wgMainStash; global $wgLanguageConverterCacheType, $wgUseDatabaseMessages; global $wgLocaltimezone, $wgLocalisationCacheConf; + global $wgSearchType; global $wgDevelopmentWarnings; global $wgSessionProviders, $wgSessionPbkdf2Iterations; global $wgJobTypeConf; @@ -50,6 +51,9 @@ $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull'; + // Do not bother updating search tables + $wgSearchType = 'SearchEngineDummy'; + // Generic MediaWiki\Session\SessionManager configuration for tests // We use CookieSessionProvider because things might be expecting // cookies to show up in a FauxRequest somewhere. -- To view, visit https://gerrit.wikimedia.org/r/247560 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic10e989e27fd3901ea215f544a0490baef57f0a4 Gerrit-PatchSet: 8 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Hashar <has...@free.fr> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: Daniel Kinzler <daniel.kinz...@wikimedia.de> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: JanZerebecki <jan.wikime...@zerebecki.de> Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Smalyshev <smalys...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits