Page MenuHomePhabricator

Add a flag to the mwscript wrapper to set +e when required
Closed, ResolvedPublic

Description

Some maintenance script wiki lists can't be computed from dblists, instead relying on Maintenance::requireExtension. This errors out with a fatal PHP error that can't be cleanly caught, stopping the script's loop.

Add an environment variable to the wrapper script to fall back to ignoring errors for the scripts that require it.

Details

Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
mediawiki-cli: Add env var to ignore foreachwiki loop errorsrepos/releng/release!179cgoubertT395245main
Customize query in GitLab

Event Timeline

Clement_Goubert triaged this task as High priority.

Change #1150637 had a related patch set uploaded (by Clément Goubert; author: Clément Goubert):

[operations/puppet@production] mw::maintenance::purge_securepoll: Ignore foreachwiki errors

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

Mentioned in SAL (#wikimedia-operations) [2025-05-26T14:38:05Z] <cgoubert@deploy1003> Started scap sync-world: mediawiki-cli image update - T395245

Mentioned in SAL (#wikimedia-operations) [2025-05-26T14:48:47Z] <cgoubert@deploy1003> Finished scap sync-world: mediawiki-cli image update - T395245 (duration: 10m 41s)

Change #1150637 merged by Clément Goubert:

[operations/puppet@production] mw::maintenance::purge_securepoll: Ignore foreachwiki errors

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