Add meza maint run for ad-hoc maintenance script execution#358
Conversation
meza maint run for ad-hoc maintenance script execution
Agent-Logs-Url: https://github.com/freephile/meza/sessions/ec074e53-51ce-484f-bc95-8022e1a52609 Co-authored-by: freephile <[email protected]>
Yes, rebasing the feature branch onto the tip of After rebasing locally, your local branch and # Safest option — fails if someone else pushed to the branch since you last fetched
git push --force-with-lease origin copilot/improve-maintenance-handling
# Unconditional force-push (use only if you're sure no one else is working on the branch)
git push --force origin copilot/improve-maintenance-handling
Full workflow recap: git fetch origin dev
git rebase origin/dev
# resolve any conflicts, then:
git push --force-with-lease origin copilot/improve-maintenance-handlingSince this is a Copilot-owned branch and the only collaborator is you, |
b41c1f9 to
b83a540
Compare
|



Running ad-hoc MediaWiki maintenance scripts required either verbose direct
ansible-playbookinvocations or writing custom wrapper scripts. Therun-maintenance.ymlplaybook existed but had no CLI entrypoint.Changes
src/scripts/meza.pymeza_command_maint_run()— a newmaintsub-command routing to the existingrun-maintenance.ymlplaybook--wiki <wiki_id>to target a single wiki (default: all wikis) and--args <script_args>to forward arguments to the PHP scriptansible-playbookmanual/meza-cmd/maint.mdrundirective with usage examplesmeza maint runas the recommended approach in the "Advanced" section over raw playbook invocationsUsage