Page MenuHomePhabricator

MediaWiki-extensions-WikimediaMaintenanceComponent
ActivePublic

Members (2)

Watchers (1)

Details

Description

WikimediaMaintenance extension, containing WMF-specific maintenance scripts

Recent Activity

Fri, Oct 10

Msz2001 closed T406884: Change targets of inter-project interwiki links to local language on special wikis as Resolved.
Fri, Oct 10, 6:42 AM · MediaWiki-extensions-WikimediaMaintenance, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), Wikimedia-Site-requests

Thu, Oct 9

A_smart_kitten added a project to T406884: Change targets of inter-project interwiki links to local language on special wikis: MediaWiki-extensions-WikimediaMaintenance.
Thu, Oct 9, 7:18 PM · MediaWiki-extensions-WikimediaMaintenance, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), Wikimedia-Site-requests

Fri, Oct 3

OKryva-WMF moved T403874: add SecurePoll to createExtensionTables.php maintenance script from Inbox to Triaged (backlog) on the Product Safety and Integrity board.
Fri, Oct 3, 3:26 PM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance
OKryva-WMF edited projects for T403874: add SecurePoll to createExtensionTables.php maintenance script, added: Product Safety and Integrity; removed Trust and Safety Product Team.
Fri, Oct 3, 3:26 PM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance
Dreamy_Jazz added a project to T403874: add SecurePoll to createExtensionTables.php maintenance script: Essential-Work.
Fri, Oct 3, 2:38 PM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance

Sep 10 2025

taavi added a comment to T403874: add SecurePoll to createExtensionTables.php maintenance script.

This probably needs the SecurePoll schema files to be split in two, one for the tables on all wikis and one for the tables on wikis with local elections only?

Sep 10 2025, 8:28 AM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance

Sep 9 2025

Dreamy_Jazz moved T403874: add SecurePoll to createExtensionTables.php maintenance script from Inbox to Engineering on the Trust and Safety Product Team board.
Sep 9 2025, 7:08 PM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance

Sep 6 2025

Novem_Linguae updated the task description for T403874: add SecurePoll to createExtensionTables.php maintenance script.
Sep 6 2025, 1:00 AM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance
Novem_Linguae created T403874: add SecurePoll to createExtensionTables.php maintenance script.
Sep 6 2025, 12:59 AM · Product Safety and Integrity, Essential-Work, MediaWiki-extensions-SecurePoll, MediaWiki-extensions-WikimediaMaintenance

Aug 21 2025

Dzahn closed T393444: Wiki creations not being reported to newprojects list, a subtask of T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core, as Resolved.
Aug 21 2025, 12:04 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Aug 14 2025

akosiaris added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

Re-reading my first response, I realize I might have been a bit unclear. Indeed my focus was to respond to number 2, namely should it contain the shell username of whoever made the wiki? , not to question sending the email in the first place. I agree that this should still be sent. It's a notification as you say, not an auditing mechanism.

Aug 14 2025, 8:31 AM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance

Aug 13 2025

RLazarus added a project to T401803: mwscript-k8s does not include an environment variable with the username of the executing user: serviceops.
Aug 13 2025, 8:59 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
RLazarus added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

Sorry yes, I wrote that misleadingly, but I think @akosiaris and I are both addressing the question of whether the username needs to be in the email body. No objections to sending an email notification.

Aug 13 2025, 8:57 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
Urbanecm added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

I think we are mixing two questions here:

Aug 13 2025, 8:51 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
Peachey88 added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.
Aug 13 2025, 8:35 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
RLazarus added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

I agree with @akosiaris (and thanks for the archaeology). It wouldn't be hard to implement this, but I think it's the wrong approach -- especially if addWiki.php is the only script using SUDO_USER, we should update the script rather than add an anachronism to pretend we're still using sudo.

Aug 13 2025, 4:35 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
akosiaris added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

BTW, on the technical side, mw-script does indeed keep the username in the labels of the job and the pod, e.g.

Aug 13 2025, 2:02 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
akosiaris added a comment to T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

This functionality was added 10 years ago in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikimediaMaintenance/+/a17c2ef30e0e85ced460f304cf481cdb7d924486%5E%21

Aug 13 2025, 1:25 PM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
Urbanecm updated subscribers of T401803: mwscript-k8s does not include an environment variable with the username of the executing user.

@RLazarus Do you have any thoughts on how to tackle this one, please?

Aug 13 2025, 9:33 AM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance
Urbanecm created T401803: mwscript-k8s does not include an environment variable with the username of the executing user.
Aug 13 2025, 9:26 AM · serviceops, MW-on-K8s, MediaWiki-extensions-WikimediaMaintenance

Aug 12 2025

Dzahn added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

T393444 reports that (likely since this change?) emails are not being sent anymore to the newprojects mailing list when addWiki.php runs.

Aug 12 2025, 2:55 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Jun 25 2025

MaryMunyoki moved T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core from Done (Q3 2024-25) to Done (Q2 2024-25) on the LPL Onboarding and Development (Current) board.
Jun 25 2025, 11:13 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
MaryMunyoki moved T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core from Incoming Requests to Done (Q3 2024-25) on the LPL Onboarding and Development (Current) board.
Jun 25 2025, 11:13 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
MaryMunyoki edited projects for T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core, added: LPL Onboarding and Development (Current); removed LPL Onboarding and Development.
Jun 25 2025, 11:11 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Jun 12 2025

tstarling closed T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core as Resolved.

I think this is done. If there are any remaining issues, they can be split out into separate tasks.

Jun 12 2025, 3:47 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

May 21 2025

Pppery removed a project from T87000: chapter: interwiki redirects to invalid subdomains like en.wikimedia.org: Pywikibot.
May 21 2025, 1:51 PM · MediaWiki-extensions-WikimediaMaintenance, Wikimedia-Interwiki-links, Wikimedia-Language-setup

May 9 2025

Ladsgroup added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

I dropped api_feature_usage, bot_passwords and globalimagelinks in nupwiki. Someone in TSP says securepoll_log should actually exists and it's weird it's not in enwiki.

May 9 2025, 2:59 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

May 6 2025

jhsoby added a subtask for T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core: T393444: Wiki creations not being reported to newprojects list.
May 6 2025, 10:42 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

May 5 2025

Ladsgroup added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Not sure about securepoll_log but the rest of nupwiki tables missing in enwiki I'm sure needs fixing and removal.

May 5 2025, 7:38 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

May 3 2025

Zabe added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Comparing it to enwiki, on enwiki there are following tables which are not on nupwiki:

May 3 2025, 7:10 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
Zabe added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Currently the following tables are created on wiki creation (nupwiki created in T390384):

May 3 2025, 6:58 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Apr 24 2025

Zabe added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

bounce_records now fixed thanks to @Reedy and only cn_notice_projects left.

Apr 24 2025, 9:09 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Apr 8 2025

Tgr added a comment to T390326: sendBulkEmails.php should have an option to ignore user preferences.

Annoyingly, sendBulkEmails.php does not emails users who have unset the allowemail user preference ("Allow other users to email me") which is not really relevant for this kind of email. So I'll use a copy of it with a trivial change:

32c32,37
< require_once __DIR__ . '/WikimediaMaintenance.php';
---
> $IP = getenv( 'MW_INSTALL_PATH' );
> if ( $IP === false ) {
> 	$IP = __DIR__ . '/../../..';
> }
> 
> require_once "$IP/extensions/WikimediaMaintenance/WikimediaMaintenance.php";
235c240
< 		if ( !$user->canReceiveEmail() ) {
---
> 		if ( !$user->isEmailConfirmed() ) {
Apr 8 2025, 7:17 PM · MediaWiki-extensions-WikimediaMaintenance

Apr 1 2025

MaryMunyoki moved T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core from Done (Q4 2024-25) to Backlog on the LPL Onboarding and Development board.
Apr 1 2025, 7:48 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Mar 28 2025

Tgr created T390326: sendBulkEmails.php should have an option to ignore user preferences.
Mar 28 2025, 8:09 PM · MediaWiki-extensions-WikimediaMaintenance
Tgr edited projects for T390325: Move sendBulkEmails.php to core, added: MediaWiki-Email; removed MediaWiki-Maintenance-system.
Mar 28 2025, 8:08 PM · MediaWiki-Email, MediaWiki-extensions-WikimediaMaintenance
Tgr created T390325: Move sendBulkEmails.php to core.
Mar 28 2025, 8:07 PM · MediaWiki-Email, MediaWiki-extensions-WikimediaMaintenance

Mar 19 2025

Ladsgroup added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Maybe all extensions listed as todo in T348573: All Wikimedia extensions that store their data outside the main database should use a virtual database domain can cause creation of tables in the wrong database, when the extensions is enabled at the install step.

Mar 19 2025, 8:20 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
Umherirrender added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Maybe all extensions listed as todo in T348573: All Wikimedia extensions that store their data outside the main database should use a virtual database domain can cause creation of tables in the wrong database, when the extensions is enabled at the install step.

Mar 19 2025, 8:08 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Mar 17 2025

Ladsgroup added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

bounce_records now fixed thanks to @Reedy and only cn_notice_projects left.

Mar 17 2025, 1:31 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Mar 11 2025

Ladsgroup added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

For both bounce_records and cn_notice_projects they can't be fixed because they are not migrated to virtual domains and have their own ad-hoc way.

Mar 11 2025, 10:06 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Mar 2 2025

Dreamy_Jazz closed T372107: No tests exist for WikimediaMaintenance as Resolved.
Mar 2 2025, 3:46 PM · MW-1.43-notes (1.43.0-wmf.23; 2024-09-17), Wikimania-Hackathon-2024, Test-Coverage, MediaWiki-extensions-WikimediaMaintenance

Mar 1 2025

Maintenance_bot removed a project from T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core: Patch-For-Review.
Mar 1 2025, 12:30 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
ReleaseTaggerBot edited projects for T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core, added: MW-1.44-notes (1.44.0-wmf.19; 2025-03-04); removed MW-1.44-notes (1.44.0-wmf.8; 2024-12-17).
Mar 1 2025, 12:00 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Feb 28 2025

gerritbot added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Change #1123643 merged by jenkins-bot:

[mediawiki/extensions/ApiFeatureUsage@master] Fix wiring of schema change updates

https://gerrit.wikimedia.org/r/1123643

Feb 28 2025, 11:30 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
gerritbot added a project to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core: Patch-For-Review.
Feb 28 2025, 12:56 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
gerritbot added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Change #1123643 had a related patch set uploaded (by Ladsgroup; author: Amir Sarabadani):

[mediawiki/extensions/ApiFeatureUsage@master] Fix wiring of schema change updates

https://gerrit.wikimedia.org/r/1123643

Feb 28 2025, 12:56 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Feb 27 2025

Zabe added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

I had to drop so many tables created incorrectly in new wikis:

globaljsonlinks ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
globaljsonlinks_target ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
globaljsonlinks_wiki ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
cn_notice_projects ['idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
api_feature_usage ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
bounce_records ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']

Please do not create new wikis until this is fixed. cc @Zabe

Feb 27 2025, 12:07 AM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance

Feb 26 2025

Ladsgroup added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

I had to drop so many tables created incorrectly in new wikis:

globaljsonlinks ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
globaljsonlinks_target ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
globaljsonlinks_wiki ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
cn_notice_projects ['idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
api_feature_usage ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
bounce_records ['arbcom_zhwiki', 'idwikivoyage', 'kncwiki', 'satwiktionary', 'sylwiki', 'tigwiki']
Feb 26 2025, 4:20 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance
Stashbot added a comment to T352113: Move the addWiki.php maintenance script from WikimediaMaintenance into MediaWiki core.

Mentioned in SAL (#wikimedia-operations) [2025-02-26T16:19:57Z] <Amir1> dropping incorrectly created tables in new wikis (T352113)

Feb 26 2025, 4:20 PM · LPL Onboarding and Development (Current), MW-1.44-notes (1.44.0-wmf.19; 2025-03-04), MW-1.42-notes (1.42.0-wmf.9; 2023-12-12), MediaWiki-extensions-WikimediaMaintenance