mediawiki-cli: Add env var to ignore foreachwiki loop errors

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.

To improve logging, redirect stdout and stderr from scripts run in foreachwiki loops to the ts invocation so the current wiki is prepended for errors as well.

Bug: T395245

Edited by Clément Goubert

Merge request reports

Loading