Commit graph

1799 commits

Author SHA1 Message Date
Ori Livneh 47f0194c2a Avoid calling into PHP from Lua to check if 'current' or 'empty' frames exist
On the Wikimedia cluster, 1.6% of MediaWiki wall-clock time is burnt on
calls from Lua into Scribunto_LuaSandboxCallback::frameExists()[1]. We
can optimize away many of these calls by not calling into PHP to check
if 'empty' or 'current' exist: the engine always reports that the
'empty' frame exists, and 'current' is guaranteed to have been set up
(in LuaEngine::setupCurrentFrames) prior to calling into Lua.

To help validate this, I added debug logging to the current production
branch of Scribunto[2] to see if there are any cases where
Scribunto_LuaSandboxCallback::frameExists('current') is false. As I
write this commit message, the logging code has been active for 24H and
there have not been any occurrences.

  [1]: https://performance.wikimedia.org/arclamp/svgs/daily/2021-03-16.excimer-wall.all.reversed.svgz
  [2]: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/672836

Change-Id: I1902b711c9a442a5a42745a582a6a9ff988a355f
2021-03-17 18:04:09 -07:00
libraryupgrader 869d938889 build: Updating eslint-config-wikimedia to 0.19.0
Change-Id: Ief6731419816a7bbaa124a3d5dce86903600986b
2021-03-14 12:29:50 +00:00
Translation updater bot 62231ec8e7 Localisation updates from https://translatewiki.net.
Change-Id: Ie9305c89a25bdc95102e56a7da6635a15c297e83
2021-03-11 08:38:34 +01:00
libraryupgrader 7f8b0b3fb3 build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: I4101a24cc858fe565f7752424ab6002f3eaba697
2021-03-07 20:24:32 +00:00
Translation updater bot 1707beb2ff Localisation updates from https://translatewiki.net.
Change-Id: Icc261dc92f3b77acc70f99178f39349da3ef8b68
2021-03-02 08:50:34 +01:00
vladshapik 7ee79747e8 Avoid using User::getDefaultOption
Remove using of User::getDefaultOption since this method will be hard-deprecated. Now it is soft-deprecated

Bug: T276035
Change-Id: I34a9ece7ee25c8fa85849c9dc8d6634cde53cfe5
2021-03-01 13:19:04 +02:00
Translation updater bot 76c52cc96c Localisation updates from https://translatewiki.net.
Change-Id: I2af3f9bd52b0742c647a93dadceffd7926fba44c
2021-03-01 08:53:18 +01:00
C. Scott Ananian 96da9fe0e9 Replace use of Parser::$mStripState, deprecated in 1.35
The replacement, Parser::getStripState(), was added to MediaWiki in
1.34.

The extension.json for this extension already requires MW >= 1.35.

Bug: T275160
Change-Id: I062ac8b69756a7ad35d8cc744b4735fd2e70f13e
2021-02-25 03:03:29 +00:00
Translation updater bot eba0e49c71 Localisation updates from https://translatewiki.net.
Change-Id: I8323001c94f1a08b7c892a3c6a857c38b8be0ab6
2021-02-23 08:49:31 +01:00
Translation updater bot f52eb14361 Localisation updates from https://translatewiki.net.
Change-Id: I63d73630714feeea65d66e7d279e61f79532a734
2021-02-22 08:53:35 +01:00
Translation updater bot 16cbaff6e6 Localisation updates from https://translatewiki.net.
Change-Id: I042f366c31635934eca190f61d8c3bf515c2b16d
2021-02-11 08:40:01 +01:00
Translation updater bot 55bd5eedf7 Localisation updates from https://translatewiki.net.
Change-Id: I61c15df838ad49f4e9a611075f1b5a42abf0864f
2021-02-08 08:44:30 +01:00
Umherirrender 764d265623 Remove wrong return type from ScribuntoEngineBase::reportLimitData
Change-Id: Ide01f5c5a497d6ee9553daaacbf2e098826860f6
2021-02-03 22:10:20 +01:00
Translation updater bot a4170f8a00 Localisation updates from https://translatewiki.net.
Change-Id: Id3d81a4088eddb93b0ee2b6ca82b1fe174916637
2021-02-03 08:39:51 +01:00
Translation updater bot f58f72d8cd Localisation updates from https://translatewiki.net.
Change-Id: Ic1c4fa3cd64836e62ac0606afa4e032f04961b9a
2021-02-01 08:48:40 +01:00
libraryupgrader a93a84aed0 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Additional changes:
* Removing manual extensions for eslint.

Change-Id: I0708a8d34353bf9e71290dc0c7ace8bef5dc9664
2021-01-30 10:41:13 +00:00
Umherirrender f129988d82 Improve function and property documentation in tests
Change-Id: I81e957035175f9fe0dad9494c92ab342283df983
2021-01-29 08:06:12 +00:00
Translation updater bot 383369c309 Localisation updates from https://translatewiki.net.
Change-Id: I5a35d836aee3fe895e1f623a1b13e5b9ba5d23c9
2021-01-29 08:38:38 +01:00
Translation updater bot 87399db8aa Localisation updates from https://translatewiki.net.
Change-Id: I4ed65490ac7ba50f67d717eca8a44702c9f91057
2021-01-25 08:54:42 +01:00
Translation updater bot e6b52280c6 Localisation updates from https://translatewiki.net.
Change-Id: Id59ece9a8e87e65a2cc84892e1672c76915dbaa3
2021-01-18 08:39:37 +01:00
Martin Urbanec ee42f562b7 Translate namespaces into alt
Bug: T271981
Change-Id: Iffe4cea0fde9d6a5873d5fb6650b2f3abbe74afd
2021-01-13 21:43:06 +01:00
Translation updater bot 88cd95e338 Localisation updates from https://translatewiki.net.
Change-Id: Iebbfd79882016503f5273b54a07e8b12f1fd0159
2021-01-13 08:37:01 +01:00
Ed Sanders 999ec38d90 Add line link anchors
Bug: T29531
Change-Id: I312169142fa901bb4bd0a359089b90e7b8dc35c5
2021-01-11 19:06:04 +00:00
Translation updater bot 6345a7064b Localisation updates from https://translatewiki.net.
Change-Id: I4263f900b0297967be296f083198fe142523bbcb
2021-01-04 08:44:36 +01:00
Ed Sanders 68191f337c Show line numbers on Module pages
Bug: T270991
Depends-On: Ic5d5c341687e965804cb33da07dda23913718ff5
Change-Id: Ifdc2f1527435140caec86dbda68dc73e392a18a9
2021-01-01 19:41:00 +00:00
Ed Sanders 16f2db8987 Use strict equality when comparing namespaces
Change-Id: I15288a83d1ddb3744653077daddd7ebb7e8bba73
2021-01-01 16:44:40 +00:00
libraryupgrader 5610142a87 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I4d39bb3cd56dcbf00f27e4a8fc556d2c0adc3be9
2020-12-31 02:47:45 +00:00
libraryupgrader 7e49f2396e build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: I400be95d82c6cc5d0473eaba932b34146526eff8
2020-12-30 14:30:00 +00:00
Translation updater bot 9cb282efd9 Localisation updates from https://translatewiki.net.
Change-Id: Ic6984b752739c1e7505b7b0402ff3341b6f31321
2020-12-30 10:14:49 +01:00
Translation updater bot fa35ffa52a Localisation updates from https://translatewiki.net.
Change-Id: I9ae9b7e20646670aad7a0f35c92a572d56b9cd5e
2020-12-28 10:39:50 +01:00
C. Scott Ananian 93662aabf1 TitleLibraryTest: Don't use deprecated InterwikiLoadPrefix hook
Use $wgInterwikiCache to setup interwiki prefixes for testing instead
of the deprecated InterwikiLoadPrefix hook.  This simplifies the test
setup quite a bit as well.

Bug: T270444
Change-Id: Icb772fcee07103a06548011ddd653487477ebfcc
2020-12-22 20:41:24 +00:00
Translation updater bot 0a1f6d74a8 Localisation updates from https://translatewiki.net.
Change-Id: Id1e25e0cb591755b88a36697922f37aa811acdc0
2020-12-22 08:32:39 +01:00
Umherirrender cb39fead91 Add missing @var and improve documentation
Change-Id: Idb7ff848ba702eac2cde31c6198a70311e3bdb69
2020-12-22 01:15:00 +00:00
shubham656 11244fed16 Add length attribute in TitleLibrary.php
Bug: T209679
Change-Id: Ieb7aac0c4131b76ae872151d6f5b815ce9ca3e0a
2020-12-21 09:15:55 +00:00
Translation updater bot 65519df8ef Localisation updates from https://translatewiki.net.
Change-Id: I1c776a017337b0ddd28c7307077aa80d45650e79
2020-12-21 08:40:00 +01:00
Translation updater bot 23929f88c1 Localisation updates from https://translatewiki.net.
Change-Id: I84722145602c37048839be1a764c78c5830e97ec
2020-12-14 08:43:17 +01:00
libraryupgrader 66e8b6a46f build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.10.4 → 0.10.5

npm:
* ini: 1.3.5 → 1.3.7
  * https://npmjs.com/advisories/1589

Change-Id: I334074a31e68cdd8fb4f278fe279d6e1e11d78d6
2020-12-11 16:24:46 +00:00
Translation updater bot f8944e897f Localisation updates from https://translatewiki.net.
Change-Id: Ie4d056604ea0dbb7bf29cd0fbab72d9f744bf28c
2020-12-11 08:36:26 +01:00
Translation updater bot 2c68c838de Localisation updates from https://translatewiki.net.
Change-Id: Ie1dba1a059006db0261c9f1a3e584cbfe3340c68
2020-12-07 08:47:09 +01:00
libraryupgrader dfe8e85257 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: I290f2fd5a57db27ea63a978a3430f60585d5454d
2020-12-07 00:52:53 +00:00
Derk-Jan Hartman d65c61e49b Error message for formatNum should not refer to formatDate
These new error messages were referring to formatDate instead of
formatNum.

Change-Id: Ic20a5a5515ee55d46087449627138cc779909ec3
Follow-up: Ib7706ad40f7ee2da6ab7c6b2dab6ae8d129dab52
Bug: T268758
2020-11-26 14:12:15 +01:00
DannyS712 d3e3124652 Fix a typo: emtpy -> empty
Bug: T201491
Change-Id: I447b318a7d898a083fc4f9129efbf4cac5517972
2020-11-22 14:22:33 +00:00
libraryupgrader 764eccceb2 build: Updating npm dependencies
* grunt-stylelint: 0.15.0 → 0.16.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3

Change-Id: I30406b457a9b5c53570471e98ed2ef93e19b68a2
2020-11-22 09:37:29 +00:00
libraryupgrader 14046a6414 build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Additionally, unbreak master build after core change T10327.

Change-Id: I8fb240c9b8291d907b857f17d6f4960a24de2ef7
2020-11-20 17:01:25 +00:00
C. Scott Ananian 078253bd06 library: Lua formatNum should check that the value is not infinity or NaN
The core formatNum method only works on strings which pass `is_numeric`,
not NaN and +/- infinity.

Bug: T267587
Change-Id: Ib7706ad40f7ee2da6ab7c6b2dab6ae8d129dab52
2020-11-16 17:44:17 +00:00
Translation updater bot f0c3975e43 Localisation updates from https://translatewiki.net.
Change-Id: I451ddf1510e9552595fba533870afac60776a06c
2020-11-16 08:37:55 +01:00
Translation updater bot 9eedc707b1 Localisation updates from https://translatewiki.net.
Change-Id: I3fb9ffdde5fffb145bc6bdf3b36ec011026a9da4
2020-11-12 08:22:35 +01:00
Tim Starling eb01c6ad22 Fix invalid UTF-8 in LuaSandbox profiler data
Bug: T228746
Change-Id: Idf5cd4ed230a40f6894ed7b435c28c9ec2764b9b
2020-11-10 15:13:27 +00:00
Translation updater bot 8f09186a99 Localisation updates from https://translatewiki.net.
Change-Id: I9052766d8c17cdbf864db01bfb19ab607b3e8167
2020-11-09 08:35:43 +01:00
Translation updater bot bfd128f734 Localisation updates from https://translatewiki.net.
Change-Id: I38a2ff2569399558726ad93b886a9eff4c9b84f0
2020-11-06 08:34:36 +01:00