Hi MusikAnimal!
I looked into this issue. Running FixGlobalBlockWhitelist by class name doesn't
work for two reasons:
1) FixGlobalBlockWhitelist isn't namespaced. fixGlobalBlockWhitelist.php doesn't
contain a namespace declaration. If you try it with PopulateCentralId, it works.
2) The
Ah... we need relative paths!
maintenance run ./extensions/MyExt/maintenance/someScript.php
That works great, but the class variants still don't work for me. Examples:
> maintenance/run
MediaWiki.Extension.GlobalBlocking.FixGlobalBlockWhitelist
Script
Thanks! This works great for Core maintenance scripts, but it's not working
for extensions on my end. I'm probably doing something stupid:
maintenance/run extensions/MyExt/maintenance/someScript.php
php maintenance/run.php extensions/MyExt/maintenance/someScript.php
...(and the other
Le 28/02/2023 à 21:42, MusikAnimal a écrit :
Hello! Where might I find documentation on the new maintenance runner
system? I can't find any examples in the Phabricator task or the
linked RFC, and searching for "MaintenanceRunner" or "run.php" yields
no results on mediawiki.org
Hello! Where might I find documentation on the new maintenance runner
system? I can't find any examples in the Phabricator task or the linked
RFC, and searching for "MaintenanceRunner" or "run.php" yields no results
on mediawiki.org. Specifically, I was expecting Manual:run.php
> On 9. Jan 2023, at 21:29, Daniel Kinzler wrote:
>
> I propose creating such a wrapper as an RFC in 2018 (T99268)[^1], which was
> approved in 2019. However, implementing the proposal proved challenging, and
> soon stalled. I picked it up again as a side project after working on
>
No, backwards compatibility should not be broken yet. In general,
there should be a major release between deprecating code and removing
it. While https://www.mediawiki.org/wiki/Stable_interface_policy#Removal
doesn't explicitly apply to the command line interface, it's still a
good guide.
Hey Daniel,
Thanks for the email. Is any refactoring of the maintenance scripts themselves
suggested yet? e.g. removing the top and bottom boilerplate?
Thanks,
Novem Linguae
From: Daniel Kinzler
Sent: Monday, January 9, 2023 12:30 PM
To: Wikimedia developers
Subject: [Wikitech-l]