Page MenuHomeMiraheze

Automate MediaWiki Upgrades
Open, LowPublic

Description

They are currently very manual. Do we need a system this manual?

This should be a goal similar to ext upgrades.

All Server Steps:

  • Depool server
  • Disable puppet
  • Check Read Only
  • Re-enable, run puppet
  • confirm still Read only
  • Confirm branch is accurate, clean for both w and config
  • update composer
  • check we're up
  • run LC Cache updates
  • enable puppet
  • confirm still Read only
  • repool server

Single server steps:

  • Schema Changes

Event Timeline

RhinosF1 triaged this task as Normal priority.Sat, Jul 3, 08:52
RhinosF1 created this task.

I would like to note I don't think this is a good idea. MediaWiki upgrades should be manual in my opinion. I'm not even sure what could be automated. We still need to manually verify everything works and this should be human run not automation run. But just my opinion, not official objection.

It's more things like branch cutting & updating extensions & generating sql commands. Will still have a human doing it, just less manual typing.

It's more things like branch cutting & updating extensions & generating sql commands. Will still have a human doing it, just less manual typing.

In that case then yeah this seems like a good idea.

It's more things like branch cutting & updating extensions & generating sql commands. Will still have a human doing it, just less manual typing.

As per this, I think It's a good Idea, ❤️

It goes without saying that fully automating MediaWiki updates would not be a good idea at all, but I think automating commands and such that will be then manually ran by a human is a good idea.

It goes without saying that fully automating MediaWiki updates would not be a good idea at all, but I think automating commands and such that will be then manually ran by a human is a good idea.

Sure thing✅

Universal_Omega lowered the priority of this task from Normal to Low.Thu, Jul 15, 17:50

Moving to low since we've had it as is for years, so this doesn't need to be done immediately but feel free to raise again if wanted.

from os import system
system('logsalmsg Disabling puppet for mediawiki update')
system('sudo puppet agent -tv')
system('sudo puppet agent --disable "Updating MediaWiki')
input('press enter to re-enable puppet')
system('sudo puppet agent --enable')
system('sudo puppet agent -tv')
system('logsalmsg enabled puppet')
RhinosF1 updated the task description. (Show Details)