Commit graph

1969 commits

Author SHA1 Message Date
Translation updater bot f40379a310 Localisation updates from https://translatewiki.net.
Change-Id: I065c696986112ea6843a0bac382c94d021602b24
2022-09-19 08:25:52 +02:00
Subramanya Sastry 23ac31e746 Add Parsoid-specific support for handling preprocessed nowikis
* This patch builds on core functionality provided in
  Ied0295feab06027a8df885b3215435e596f0353b.

* This removes any nowiki wrappers present in unstripped text
  (which there would be for preprocssed nowiki tags) which mimics
  the effect of procssing nowikis in core when generating HTML.

* Updated lua tests to verify the new expectation.

* A previously failing parser test added to test T272507 now passes
  and has been re-enabled.

Bug: T272507
Depends-On: Ied0295feab06027a8df885b3215435e596f0353b
Change-Id: I1613ac7bd60cf3ef4a3308b08ea3705b3cf2dee0
2022-09-08 23:17:46 +00:00
Translation updater bot 55820ed10f Localisation updates from https://translatewiki.net.
Change-Id: I00953a9209306e631cb361a039d9635339157135
2022-09-06 09:39:49 +02:00
Subramanya Sastry 3aa6ad45db Temporarily disable the newly added test in f230419b
* This test fails with a core patch and will only pass in a
  subsequent patch in this repo.

Needed-By: Ied0295feab06027a8df885b3215435e596f0353b
Change-Id: Id6ea611549e98893f53094116a3851e9c42b8dc8
2022-09-01 21:24:25 +00:00
Arlo Breault 7778a6eef3 Revert "Disable Parsoid testing tempoarily"
This reverts commit 2c3a363cdc.

Depends-On: I7c419e1d508c337328db1d5132454fb805bfb1b5
Change-Id: I1770656d450ee0ba0ca115993812c06116eb5928
2022-09-01 21:08:20 +00:00
Translation updater bot 8c6653960a Localisation updates from https://translatewiki.net.
Change-Id: I0dcaf9e9be58b3db5adbed7b82ba2dcf25428453
2022-08-31 09:35:40 +02:00
Subramanya Sastry 7170021941 Update failing language tests
* Ia3cc8f95833cd0e9ae985528f8e72396111c4504 in core changed
  localizations for kaa language

Followup-To: Ia3cc8f95833cd0e9ae985528f8e72396111c4504
Change-Id: Ie1b686b65f008c0cd5f4017102699e51f6960b39
2022-08-29 16:20:59 -05:00
Subramanya Sastry 2c3a363cdc Disable Parsoid testing tempoarily
* Running into a missing module error in CI but cannot reproduce
  locally.

* Let us unbreak CI for other dependent repos and investigate this
  in the followup patch that reverts this.

Bug: T316331
Change-Id: Ic5983e503203f132fff521e422f0c7143f91d779
2022-08-26 14:57:48 +00:00
Subramanya Sastry f230419baf Enable testing with Parsoid + add failing test for T272507
* Turned on wt2html and wt2wt Parsoid modes for all tests with
  aggressive normalization to eliminate the need to add html/parsoid
  sections.

  We expect these modes to pass.

* The failing wt2wt tests is because the input wikitext duplicates
  arguments and Parsoid's wt2html doesn't capture duplicate template
  args which cause the wt2wt output to be normalized.

  This explains the two failing wt2wt tests and the corresponding
  selser "failures".

* The failing wt2html safesubst test might be a real failure and
  something we will have to look into. Will file a phab task for this.

* Added a new test for T272507 that fails with Parsoid right now,
  but will pass in a subsequent patch.

Change-Id: I96fba68dda7524d2fe562eb60ced64e5e0518f65
2022-08-22 13:27:20 -05:00
Tim Starling 6f437487b8 Fix incorrect param type, causing phan error
Change-Id: I3a87b0c58fd897ea83dbb44c51a01d206d1cd024
2022-08-22 17:26:57 +00:00
Alexander Vorwerk 738ca8d72d Bump scribunto-stats cache version
The addition of PSquare::__serialize() in wikimedia/running-stat is
having the same cache implication as the issue this was meant to fix.

The legacy PHP serialized form is not compatible with the stable
serialize form that we're switching to.

Bug: T313341
Change-Id: Iec4c1c958e10560abcbd4184a0ca4e1a0c19183a
2022-08-16 19:09:36 +00:00
Subramanya Sastry 8adcc1668f Update failing language tests
* Core changed these kaa localizations in
  Ie0ce427238412d3badb247d2e2fae9bc9f57fbeb

Followup-To: Ie0ce427238412d3badb247d2e2fae9bc9f57fbeb
Change-Id: I7fc0334bf78222f2d7c1b636a70b3c60f899363c
2022-08-12 17:57:21 +00:00
Translation updater bot fc5e20a651 Localisation updates from https://translatewiki.net.
Change-Id: If14a2d08e9094621344736bf0ad84fbe6e75d40a
2022-08-08 08:59:26 +02:00
Lucas Werkmeister (WMDE) 18d122b60d Revert "Namespace LuaCommon"
This reverts commit 62e1fb0b5f.

Reason for revert: caused several errors:
* unnamespaced HooksTest collides with core’s class of the same name
* Scribunto_LuaError renamed without class alias despite being used in Wikibase

Bug: T314464
Change-Id: I8b151327236bf86945e59823fba155497e4b3fc6
2022-08-03 10:03:12 +00:00
Reedy 62e1fb0b5f Namespace LuaCommon
Change-Id: Ib6e912e71fb797942aca4b4f22eb0ff9e005a662
2022-08-03 06:03:57 +00:00
Reedy c479ad6f86 Namespace LuaStandalone engine
Change-Id: I7d3f77a56c8b74e0481197224006f19ff4c9d108
2022-08-03 06:03:48 +00:00
Reedy dc97acc945 Update mediawiki/mediawiki-phan-config to 0.11.1
Bug: T295285
Change-Id: I65db513703b54b377dfbeacf2956c1ff13a27b99
2022-08-02 01:14:06 +00:00
Translation updater bot 3d52349f1b Localisation updates from https://translatewiki.net.
Change-Id: Id455d8b53dabffcd5241b823a3bf588de0c6dcaf
2022-08-01 08:23:24 +02:00
Reedy 1628cfa367 Namespace LuaSandbox engine
Change-Id: I485401c202057ae0fea7226ab21e68ce1c7d40c8
2022-07-30 22:51:42 +01:00
Reedy 492966dc12 composer.json: Bump mediawiki/lua-sandbox to 4.0.2
Bug: T314233
Change-Id: I2a749a3bf43731a19d9e6a8c7baa092a0e971f90
2022-07-30 22:14:53 +01:00
Reedy 0eaa8edfb0 Fix MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
Change-Id: Ia2148daf26cb167cbe71a0ab419473a31d97a506
2022-07-30 18:56:55 +00:00
Timo Tijhof e9988b8473 Hooks: Minor clean up, remove redundant PSquare check
PSquare is part of wikimedia/running-stat which is bundled with
MediaWiki core. There is no valid way to install a wiki without
the vendor libraries present.

The check was introduced in 2015 with I0d39920733fe7 when the class
was newly added to the package and deployment was happening
concurrently to the extension change.

Bug: T313341
Change-Id: I6717151c39b589f2e5b5e87da6896f62252cb5d8
2022-07-19 14:58:17 -05:00
Timo Tijhof e5362f639e Hooks: Bump scribunto-stats cache version
The Wikimedia\PSquare class has changed such that its serialization
is incompatible with its prior version. We should probably refactor
this to use an actually supported serialization format, possibly
by enhancing PSquare with some kind of getter method that provides
a plain array that its constructor can accept again instead of relying
on internal PHP serialisation format, but for now we can bump the
cache version.

The side-effect of this will be that the performance stats captured
by Scribunto for visualiation in Grafana, will briefly split its
sampling logic between two versions instead of being global across
all wikis until the train is fully deployed. This does not have any
effect on its business logic or runtime behaviour, and is presumably
by design as that's the only way to bump the cache version, which was
a pre-existing factor in its cache key.

Basically, this means that during the deployment days on weeks where
this is bumped, we will briefly capture fewer samples as there are then
two separate counters trying to reach 1000 before flushing a median
to Graphite. We can remedy that by backporting and deploying to both.

While at it, I'm changing the cache key to conform to our conventions
and make it an explicit, greppable, lowercase and descriptive name
(scribuntu-stats) instead of the implicit __METHOD__ which expanded
to "Scribunto\Hooks::reportTiming". I note that this means the split
brain sampling actually happened at least once before during the week
where the namespace was introduced as that will have implicily changed
the cache-key. Another reason not to use __METHOD__ in a cache key.

Bug: T313341
Change-Id: Ic9dad0f55cba18ec03272b87366a091a396beb74
2022-07-19 14:53:53 -05:00
Translation updater bot 2dbc3c359e Localisation updates from https://translatewiki.net.
Change-Id: I8b4e6f3b78be8c6c155191ab4e1aecb89e6035b4
2022-07-14 08:48:45 +02:00
Mark A. Hershberger 2c121b4543 Add type hints for iterator implementations
Bug: T289879
Change-Id: I0733655b8519099094551bb73b376d2676c255ea
2022-07-12 14:46:18 +00:00
Mark A. Hershberger 9803facc01 UstringLibraryNormalizationTestProvider: Fix 'destory' typo for 'destroy'
Change-Id: Ieb4a0c6c68f0641b45982f3349aa3e99fe7eb07d
2022-07-12 14:44:38 +00:00
Ferran Tufan 674e58b87a Replace usage of Linker with LinkRenderer service
Bug: T279335
Change-Id: I778e86cf3fad2cf333031aca95aeba65a88405ce
2022-07-11 20:24:35 +00:00
Translation updater bot 9d0c742fb3 Localisation updates from https://translatewiki.net.
Change-Id: I28fddf42a0333b0ab457774bbed612bb87c8bd76
2022-07-11 09:50:30 +02:00
Thiemo Kreuz 8654dfc466 Use new ContentHandler::supportsPreloadContent() feature
Bug: T300644
Depends-On: Ia5c491cd856ca395fb431bcefd63026084b01a99
Change-Id: I301cbb6b2d547e622ee695fd20a910f8553788c5
2022-07-06 22:39:44 +00:00
Tim Starling a0a0c3ee7e In ScribuntoContentHandler use the new ParserFactory::getInstance()
To avoid an exception when the parser is re-entered.

Bug: T310948
Depends-On: I762b191e978c2d1bbc9f332c9cfa047888ce2e67
Change-Id: I5013ed2a2958c3ff422778f9146f663aff0f5939
2022-07-05 04:31:52 +00:00
Translation updater bot 04f0866a88 Localisation updates from https://translatewiki.net.
Change-Id: Ic17083bfe81267bc6767383e6588f491b6f667c0
2022-07-01 08:53:33 +02:00
Bartosz Dziewoński ca57230318 Update parser test
Test output changed in I3fac0f34d134d8eec46c7eefa3ad2b67abb957da.

Depends-On: I3fac0f34d134d8eec46c7eefa3ad2b67abb957da
Change-Id: I8797ab1adbd44b2766ec803d9b6fe646b3a5a116
2022-06-22 18:37:34 +00:00
Translation updater bot 906f6bb294 Localisation updates from https://translatewiki.net.
Change-Id: I535d0a74a70fa2c896ebb79f0cd0b2347073abb6
2022-06-16 09:25:24 +02:00
MarcoAurelio 5d0b36b3d8 Namespace translations for Kyrgyz language
Authored by: <https://phabricator.wikimedia.org/p/Bosogo/>

Bug: T309866
Change-Id: I61172f79a2962ac943662f98ebf8e64887cfcdbd
2022-06-09 10:06:27 +00:00
Jon Harald Søby f44c704b74 Add namespace names for [pcm] Nigerian Pidgin
As reported on
https://incubator.wikimedia.org/wiki/Special:PermaLink/5456586#Nigerian_Pidgin_namespaces

Change-Id: I23b18c4f9eeaa9f1081981f58804786820b0e504
2022-06-03 12:01:54 +02:00
Translation updater bot 7b4fd1b611 Localisation updates from https://translatewiki.net.
Change-Id: I7e42b44f782091a08bf27e41465c92991bdbedab
2022-06-02 08:15:12 +02:00
Translation updater bot 0b335a2605 Localisation updates from https://translatewiki.net.
Change-Id: I8362717c520af5dccf19514936c3108c84292ad7
2022-05-30 09:24:11 +02:00
Thiemo Kreuz 0860648680 Remove unused defaults from class properties
As well as:
* Remove redundant `=== null`. The `isset()` before does this already.
* Use convenient PHPUnit shortcuts.

Change-Id: Ibef571e53a48c443d7798fee8abbc2624fbad225
2022-05-21 18:45:52 +00:00
Sam Wilson 2f0775fe8a Increase mw.dumpObject() indent size
Increase from one space to two.

Bug: T307343
Change-Id: I14126475579bae310e5cbea0bdb992fb824b30ab
2022-05-21 13:51:14 +00:00
Tim Starling 2c6d18db9b In tests, replace wgHooks with setTemporaryHook
Change-Id: Ib3d65bcd209e1a9a518e70d43e367acb3a5d4fab
2022-05-16 12:46:47 +00:00
Bartosz Dziewoński dbbf202d43 Temporarily disable failing parser test
Test output will change in I3fac0f34d134d8eec46c7eefa3ad2b67abb957da.

Change-Id: Idbf0b95a3c0b04caa056b71dd08f46659920114a
2022-05-14 02:43:08 +02:00
Translation updater bot 979d23d3bf Localisation updates from https://translatewiki.net.
Change-Id: I3b0602a43eaddd568d1d4926daed529f4d1491f2
2022-05-13 08:26:34 +02:00
Reedy 8e73003fee Start namespacing extension
Change-Id: Ib632434861c2df03dfcddbd195f556c937812196
2022-05-12 01:33:11 +00:00
Translation updater bot 7e1a496f09 Localisation updates from https://translatewiki.net.
Change-Id: I98c46f1dc6fbddba975fe8233ca5788f668376a3
2022-05-11 08:12:04 +02:00
Reedy 09b60f174c Use namespaced SyntaxHighlight class
Also swap class_exists() for ExtensionRegistry->isLoaded() call

Change-Id: I3435e3775a28f4f056599ae26ba23f54d32cde18
2022-04-27 16:10:48 +00:00
Translation updater bot c7d382b9f7 Localisation updates from https://translatewiki.net.
Change-Id: I93457a64e0c7f04c409a1737b98414fafe227de2
2022-04-25 08:18:57 +02:00
Translation updater bot 22a829ef50 Localisation updates from https://translatewiki.net.
Change-Id: I585481d74479633ce65f2a3ebe013125a3a7c0cc
2022-04-21 08:12:35 +02:00
Translation updater bot 8b707a45a5 Localisation updates from https://translatewiki.net.
Change-Id: I5f4c4d59e5ba03e42e2556a4c4144fb7bcced7fb
2022-04-20 08:19:14 +02:00
Translation updater bot e8748d97f1 Localisation updates from https://translatewiki.net.
Change-Id: I03d0097450ed81ad9a4790c0f8054e652d3169d3
2022-04-18 10:06:47 +02:00
Reedy 6f411e3921 Minor cleanup
Change-Id: Ic81ab852c43e98370097d01c3b6d6cddee7a5850
2022-04-16 22:09:10 +01:00