Page MenuHomePhabricator

🔵 Update staging to use MediaWiki 1.39
Closed, ResolvedPublic

Description

  • new wikis use 1.39
  • existing wikis have been migrated to 1.39 successfully

Event Timeline

Fring renamed this task from Update staging to use MediaWiki 1.38 to Update staging to use MediaWiki 1.39.Mar 28 2023, 6:49 AM
Fring claimed this task.
Fring created this task.
Fring updated the task description. (Show Details)
Fring moved this task from Backlog (incoming) to WB Cloud Sprint 16 on the Wikibase Cloud board.
Fring moved this task from Sprint Backlog to Doing on the Wikibase Cloud (WB Cloud Sprint 16) board.
Tarrow removed Fring as the assignee of this task.Apr 3 2023, 12:02 PM

wbaas-deploy/pull/838 will redeploy the changes with an updated MediaWiki image.

Generating the batch of wikis:

kubectl exec -it deployment/api-app-backend -- php artisan tinker --execute 'Wiki::whereRelation("wikiDb", "version", "=", "mw1.38-wbs1")->get()->pluck("domain")->each(function ($i, $k) { echo $i.PHP_EOL; })'

Batch 1 (wbaas-deploy/pull/839):

coffeebase.wikibase.dev
andrew.wikibase.dev

Batch 2 (wbaas-deploy/pull/840):

deerbase.wikibase.dev
potatobase.wikibase.dev
potato.wikibase.dev
dev-test-wbaas-custom-deer.duckdns.org
mw138test.wikibase.dev
biomarker.wikibase.dev
testa.wikibase.dev
carrotwiki.wikibase.dev
sweetcornbase.wikibase.dev
mywayordatway.wikibase.dev
redbull.wikibase.dev
asdfg.wikibase.dev
asfasfasfasfasf.wikibase.dev
wbdev.ledeniz.de

Batch 3 (wbaas-deploy/pull/841):

goathub.wikibase.dev
somethingwitty.wikibase.dev
goat-136.wikibase.dev
candy-collection.wikibase.dev
asjhfkjsahdkjahs.wikibase.dev
feddypropswiki.wikibase.dev
addshore-alpha.wikibase.dev
faketestdomain.hopto.org
wikibasehost.ddns.net
addshore-fake-cusstom-domain-wikibase.duckdns.org
deerstack.wikibase.dev
cacti.wikibase.dev
rose-collection.wikibase.dev
migratetestbase.ddns.net
biodiversity.wikibase.dev
toms-test-wikibase.duckdns.org
potatowiki3.wikibase.dev
charlie-test-1.wikibase.dev
deerdeerdeer.wikibase.dev
blob-wiki.wikibase.dev
test-lm-02.wikibase.dev
testwikibase-jan.wikibase.dev
aflex.wikibase.dev
bh20subset1.wikibase.dev

Setting all wikis in a batch to read only:

for wiki_domain in $(cat domains.txt); do
    kubectl exec -it deployment/api-app-backend -- bash -c "php artisan wbs-wiki:setSetting domain $wiki_domain wgReadOnly migrate-to-139"
done

Updating all wikis in a batch:

for wiki_domain in $(cat domains.txt); do
    kubectl exec -it deployments/api-scheduler -- bash -c "php artisan job:dispatchNow MediawikiUpdate wikis.domain $wiki_domain mw1.38-wbs1 mw1.39-wbs1 mediawiki-139"
    kubectl exec -it deployment/api-app-backend -- bash -c "php artisan wbs-wiki:setSetting domain $wiki_domain wgReadOnly"
done

see T332298#8715053 and T332298#8715124

The update script took about 30min for biodiversity.wikibase.dev with a lot of this happening:

...
"\tAdded or updated the \"unexpectedUnconnectedPage\" page property for 1000 pages, up to page ID 575021 (inclusive).","\tAdded or updated the \"unexpectedUnconnectedPage\" page property for 1000 pages, up to page ID 576021 (inclusive).","\tAdded or updated the \"unexpectedUnconnectedPage\" page property for 1000 pages, up to page ID 577021 (inclusive).","\tAdded or updated the \"unexpectedUnconnectedPage\" page property for 1000 pages, up to page ID 578021 (inclusive).","\tAdded or updated the \"unexpectedUnconnectedPage\" page property for 977 pages, up to page ID 1578021 (inclusive).","\tDone!"
...
Tarrow renamed this task from Update staging to use MediaWiki 1.39 to 🔵 Update staging to use MediaWiki 1.39.Apr 12 2023, 11:34 AM
Evelien_WMDE claimed this task.