Commit graph

33 commits

Author SHA1 Message Date
Kosta Harlan
4999d5d4ef DevelopmentSettings: Move wgPasswordAttemptThrottle to correct section
This was intended as a setting override to faciliate testing, not as
something that is experimental and may later become default.

Follows-Up: Ief9e724c84755248a6fccfd04abdd4b03e331a8e

Bug: T298735
Change-Id: I56e98926c7d857c0c221d3ffd9b3be0b4267b6ae
2022-01-25 12:54:27 +01:00
Kosta Harlan
b5ded1dafe DevelopmentSettings: Lift PasswordAttemptThrottle limits
Seems to be needed to be able to run api-testing (and possibly also some
browser tests) in parallel in CI / locally.

Bug: T298735
Change-Id: Ief9e724c84755248a6fccfd04abdd4b03e331a8e
2022-01-12 09:03:39 -05:00
Amir Sarabadani
54fb283a0a Set $wgIncludejQueryMigrate to false as default
Bug: T280944
Change-Id: I02a3e4f4a2b596ff2741436884b2ef9a4b2b9177
2021-08-29 02:09:35 +02:00
Amir Sarabadani
15a48357c2 Set $wgIncludejQueryMigrate to false in CI/dev
Bug: T280944
Change-Id: Iaf786cd0f1d870cbcf0b968b7adce616c82df3d8
2021-07-14 20:17:42 +02:00
Petr Pchelko
686976b750 DevelopmentSettings: Don't disable rate limits but use very high ones
Switching rate limits completely off make tests bypass
an important code path. Instead, set all limits to almost
infinity - the code will still be executed, but with no
real chance that a test will exceed the limits.

Bug: T284804
Change-Id: Ic1d011f251159990fd54cb706608793d1b0a5acf
2021-06-14 15:27:22 +00:00
Amir Sarabadani
99d4ad5995 resourceloader: Remove support for $wgLegacyJavaScriptGlobals
Bug: T72470
Change-Id: I321a3bf5a85e2b4069ef003db65ac93b69692c83
2021-04-19 22:54:43 +00:00
Adam Wight
b28a3f9fe9 Ensure that the legacy wikitext editor is preferred by default
Any change to the extension's defaults would disrupt tests, so we
repeat the default here.

Bug: T270240
Change-Id: I84791ecf8c35f60b7d2cc337d67572bb422f0ea5
2021-01-12 12:30:02 +01:00
Adam Wight
68c3154cb9 Enable VisualEditor newwikitext mode in CI
This allows browser tests to access the "new wikitext" mode, but
should not affect any tests which don't explicitly enable the
associated beta preference.

Bug: T270240
Change-Id: I2ba889e1a5dd03549d8d7cb00678a30882ff03fe
2021-01-11 12:44:10 +00:00
Reedy
7535a26594 DevelopmentSettings: Make sure all currently used global have a global call
Bug: T263475
Change-Id: I8a09a58d7ef2ed56eb26832e0899a4d2e15e5b72
2020-09-21 17:08:48 +01:00
Adam Wight
0d455c6346 FileImporter browser tests require uploads enabled
Once this is merged, we can revert I8c20e4c4482f43191264490da7769dea7786ff0f

Bug: T190829
Change-Id: I6eccad9b54c6b2c895e6aaaa1d783011aee64358
2020-09-18 08:23:59 +00:00
Brennen Bearnes
c9efaadd00 mediawiki-docker: Add a jobrunner container
- Uses new stretch-php72-jobrunner from dev-images

  - Removes TimedMediaHandler-specific resource limits from general
    DevelopmentSettings.php, as we're putting these in the container
    PlatformSettings.php from docker entrypoints.

Bug: T246935
Bug: T246942
Depends-On: I505366b287f75581a5dd8016abbedfe61f53cb13
Change-Id: I4b4061d9cd877af34606c914942cfe0be028fff8
2020-06-17 13:34:55 +00:00
Kosta Harlan
8112f4be07 DevelopmentSettings: Disable resource limits
Useful for developing with TimedMediaHandler.

Bug: T246942
Change-Id: I3c3ab8ae44f04cfb32fb276b580b3ee8366828fb
2020-03-29 21:11:12 +02:00
jenkins-bot
17185fb70d Merge "DevelopmentSettings: Set cache dir to system temp + wiki ID" 2020-03-25 17:31:15 +00:00
Bill Pirkle
6b772fee0b Add config variable $wgRestAPIAdditionalRouteFiles
New configuration variable $wgRestAPIAdditionalRouteFiles
allows specifying additional Core REST API route files to
include. The initial use is to include development routes
from new file coreDevelopmentRoutes.json only on testing
wikis, but not on production wikis.

Bug: T247997
Change-Id: Iff8a9b7f4cafb29162e9b10f3d32e2a85f6f58df
2020-03-23 10:22:58 -05:00
Kosta Harlan
47529ed4f0 DevelopmentSettings: Set cache dir to system temp + wiki ID
Otherwise, require DevelopmentSettings.php in LocalSettings.php leads to an
error because LCStoreStaticArray attemps to write to the root directory.

Bug: T246547
Change-Id: I4b466cea2c830aed85e9df9f4ddd01b6997e1c45
2020-03-17 15:49:18 +00:00
jenkins-bot
3fb7e265eb Merge "DevelopmentSettings: Set EnableJavaScriptTest to true" 2020-03-12 22:40:17 +00:00
Kosta Harlan
880938593e DevelopmentSettings: Set EnableJavaScriptTest to true
Bug: T247285
Change-Id: Id973426b31eb1c98bff49ea135d0d64de09fcbbe
2020-03-12 22:26:10 +00:00
Timo Tijhof
14a8713e93 exception,deferred: Standardise on 'exception' for uncaughts and fatals
Bug: T247113
Change-Id: Id72cae0672169e8d2622bbc67c3c0b59e7c8ad54
2020-03-06 20:16:22 +00:00
Timo Tijhof
d06b2918c7 DevelopmentSettings: Enable 'fatal' and 'DeferredUpdates' error channels
These used to be in the 'exception' channel but were separated out
to better categorise them in Logstash, but this meant we regressed
in terms of CI enforcement because they weren't enabled (they only
went to the debug file), and thus Jenkins didn't fail the build
if they were non-empty.

To avoid having to keep this in sync with the Jenkins job config,
standardise on a single file (mw-error.log), which the job already
asserts as having to be empty/non-existent.

Change-Id: I432682c082f77d9a6ec2ea07539c2a3e41ea1340
2020-02-15 19:18:25 +00:00
Adam Wight
23a390e700 Enable Book Referencing for development and tests
Sets a feature flag to allow browser tests to use an experimental feature.

Bug: T236255
Change-Id: I1528c09bb2ae13c1a73f30432bdf3ec97d525860
2019-10-24 15:36:07 +02:00
Amir Sarabadani
3936ddb4be Set l18n cache to array in DevelopmentSettings.php
Bug: T218207
Change-Id: Ib52d766436f487570b26fde54abfb1ff780c3647
2019-09-17 22:52:59 +02:00
Timo Tijhof
853de300a3 DevelopmentSettings: Clarify grouping of settings and purpose
Change-Id: Ia0fc063eb2679b466e19e6dabaf1f4bea7d6bb20
2019-08-07 14:23:58 +00:00
James D. Forrester
9c0dd23b96 Follow-up ffd802a386: Actually disable legacy JS globals
Bug: T72470
Change-Id: I2703420afd260c1c9d0cdc17baceed12dc28f758
2019-07-21 19:07:42 +00:00
James D. Forrester
ffd802a386 DevelopmentSettings: Disable legacy javascript globals in CI and for devs
Bug: T72470
Change-Id: Iedd3a9c8e541bc4cc657753e6ae3389f0393ed64
2019-07-19 13:53:57 -07:00
Timo Tijhof
098463b77a DevelopmentSettings: Document why wgRateLimits is disabled
Follows-up 9c52f982d8.

Bug: T225796
Change-Id: I6f7a75d58c61712233134a9d480ce68719d6cb6a
2019-06-18 00:02:24 +00:00
Leszek Manicki
9c52f982d8 Disable rate limiting in Development Settings
Bug: T225796
Change-Id: I2475a04066d4aaefeba372bd223ef68548a8cf18
2019-06-17 11:11:39 +02:00
Timo Tijhof
35fc6499f7 DevelopmentSettings: Remove redundant CacheType overrides
Follows-up 5a090c2982. This is no longer needed as of
7e0fb4fff6, which will add this to the generated LocalSettings.php
file automatically.

The installer now sets MainCacheType for CLI installs, the same
way as the web installer did already.

The secondary cache types have as default CACHE_ANYTHING (not
CACHE_NONE) and will automatically inherit from MainCacheType.

This commit unbreaks situations where developers have MainCache
set to something (e.g. Redis, or Memc) which after 5a090c2982
caused other types to go to APC instead of Memc.

Bug: T225496
Change-Id: Ib2824a6d316912daf09672de748726b91e4de449
2019-06-13 15:12:20 +01:00
Amir Sarabadani
5a090c2982 Set cache types to APC/APCu/WinCache in DevelopmentSettings.php
Bug: T225496
Change-Id: I14dd3fea9795a501e29383a3cae2b3e9a0077e69
2019-06-11 13:25:43 +02:00
Derick Alangi
2dc9ea3f32 DevelopmentSettings: Remove unused globals & declare $wgSQLMode
Some globals where declared but not used and $wgSQLMode was not declared
at all. Removed the unsed vars.

Change-Id: I44e6b8b6173674089271a172cf7bda6e320c53d8
2019-04-13 17:54:30 +00:00
Antoine Musso
45919c5869 tests: enable MariaDB/MySQL strict mode
Pass sql_mode=TRADITIONAL to the SQL connection which would raise an
error instead of warning, for example when a field is truncated.

This change will most probably cause some extensions test to start
magically failling.

Bug: T119371
Change-Id: I2051952090e48876f629690981e25603eff79f67
2019-04-01 21:54:30 +00:00
Bill Pirkle
807125abdb Deprecate $wgShowSQLErrors and $wgShowDBErrorBacktrace and make nonfunctional
Clarify and simplify exception output by deprecating
$wgShowSQLErrors and wgShowDBErrorBacktrace.
$wgShowExceptionDetails will now control most related output.
$wgShowHostnames will now solely control output of
MWExceptionRenderer::reportOutageHTML.

Bug: T165768
Change-Id: Idead2c11c499463dfa6293c3d4b33be3bde92e1a
2018-07-25 10:38:19 -05:00
Timo Tijhof
6ced693ee7 tests: Remove verbose logging settings from DevelopmentSettings.php
Follows-up fdb7d36903. It seems these make unit tests on Travis CI
fail, per T187581. And when we briefly enabled DevelopmentSettings.php
in our Jenkins setup, the PHPUnit tests also failed.

Remove these from DevelopmentSettings.php to confirm that the
tests pass that way. Then, once our own Jenkins setup has switched
back to using DevelopmentSettings.php, we can re-consider adding
these in a way that is verified by Gerrit/Jenkins before merging.

Bug: T187581
Change-Id: Ib81c5909849598bdad02955f6414d68c038742c5
2018-02-19 22:19:15 +00:00
Timo Tijhof
fdb7d36903 tests: Commit initial version of DevelopmentSettings.php
* Store in the includes/ directory.
* Use by default in Travis CI builds.
* Add command-line option to phpunit.php to use it.
* See commit ## for use by Jenkins jobs, which will load it directly
  from LocalSettings.php (instead of via phpunit) so that it applies
  to web entry points and other maintenance scripts as well.

Bug: T177669
Change-Id: I6e5dc5f0dddc1960761980552ed2bb31e6ae9fd9
2017-12-27 22:13:24 +00:00