X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDevelopmentSettings.php;h=d93caa7deaa8ab08276761f0d6471314b9995728;hb=4b7cbbd9980f5ff14a0066ae7992af2793dcabea;hp=d1bbcef80fc217a25eb3149e68462bbf15bf0ccc;hpb=0c8cbf66e707691a2d4ff3659d5f86adb4969375;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DevelopmentSettings.php b/includes/DevelopmentSettings.php index d1bbcef80f..d93caa7dea 100644 --- a/includes/DevelopmentSettings.php +++ b/includes/DevelopmentSettings.php @@ -24,8 +24,9 @@ ini_set( 'display_errors', 1 ); /** * Debugging for MediaWiki */ + global $wgDevelopmentWarnings, $wgShowExceptionDetails, $wgShowHostnames, - $wgDebugRawPage, $wgSQLMode, $wgCommandLineMode, $wgDebugLogFile, + $wgDebugRawPage, $wgCommandLineMode, $wgDebugLogFile, $wgDBerrorLog, $wgDebugLogGroups; // Use of wfWarn() should cause tests to fail @@ -36,9 +37,6 @@ $wgShowExceptionDetails = true; $wgShowHostnames = true; $wgDebugRawPage = true; // T49960 -// Enable MariaDB/MySQL strict mode -$wgSQLMode = 'TRADITIONAL'; - // Enable log files $logDir = getenv( 'MW_LOG_DIR' ); if ( $logDir ) { @@ -54,5 +52,25 @@ if ( $logDir ) { } unset( $logDir ); -// Disable rate-limiting +/** + * Make testing possible (or easier) + */ + +global $wgRateLimits; + +// Disable rate-limiting to allow integration tests to run unthrottled +// in CI and for devs locally (T225796) $wgRateLimits = []; + +/** + * Experimental changes that may later become the default. + * (Must reference a Phabricator ticket) + */ + +global $wgSQLMode, $wgLegacyJavaScriptGlobals; + +// Enable MariaDB/MySQL strict mode (T108255) +$wgSQLMode = 'TRADITIONAL'; + +// Disable legacy javascript globals in CI and for devs (T72470) +$wgLegacyJavaScriptGlobals = false;