Page MenuHomePhabricator

[batch #2] Enable revertrisk filters in recent changes in multiple wikis
Closed, ResolvedPublic

Description

In this task we plan to enable the ORES extension with the revertrisk language agnostic filter in the following wikis:

afwiki, bewiki, bnwiki, cywiki, hawiki, iswiki, kkwiki

Steps to install ORES extension:
Databases:

  • Create the ores_model and ores_classification tables.

The standard way is to use https://github.com/wikimedia/mediawiki-extensions-WikimediaMaintenance/blob/master/createExtensionTables.php, but it's not added there so we should add it.
See https://wikitech.wikimedia.org/wiki/Creating_new_tables#Deployment

mwscript-k8s --comment="T395823" -- extensions/WikimediaMaintenance/createExtensionTables.php --wiki=idwiki ores

Extension:
Update any i18n system messages:
For the batch of wikis this will likely happen after we release the feature.

Config:

  • Add the wiki to the list of wikis in the wgOresUiEnabled config variable and deploy without enabling the UI.

Define the models that are going to be used for each wiki by adding an an entry for it in the wgOresModels var.
Here we should make sure we disable the models that are enabled by default (damaging and goodfaith) and define the models explicitly that we want to use.
Backfill

  • Run backfill job
mwscript-k8s --comment="T395823" -- extensions/ORES/maintenance/PopulateDatabase.php --wiki=idwiki --number 10000 # (number of revisions to score)
  • Enable filters in the UI (switch the wgOresUiEnabled config variable in ext-ORES.php file in wmf-config to true)

,,,,,,,

WikiCreate TablesEnable Extension Without UIBackfill TableEnable UI
afwiki
bewiki
bnwiki
cywiki
hawiki
iswiki
kkwiki

Event Timeline

Change #1152682 had a related patch set uploaded (by Ilias Sarantopoulos; author: Gkyziridis):

[operations/mediawiki-config@master] ores-extension: enable revertrisk filter for a list of wikis

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

Change #1152682 merged by jenkins-bot:

[operations/mediawiki-config@master] ores-extension: enable extension with revertrisk filter for second batch of wikis

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

Mentioned in SAL (#wikimedia-operations) [2025-06-05T07:20:59Z] <gkyziridis@deploy1003> Started scap sync-world: Backport for [[gerrit:1152682|ores-extension: enable extension with revertrisk filter for second batch of wikis (T395823)]]

Mentioned in SAL (#wikimedia-operations) [2025-06-05T07:23:25Z] <gkyziridis@deploy1003> gkyziridis: Backport for [[gerrit:1152682|ores-extension: enable extension with revertrisk filter for second batch of wikis (T395823)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

During the deployment this morning there was an issue with Azerbaijani Wikipedia (azwiki). During the deployment we saw that it was not properly installed. The ORES extensions (listed as Machine Learning Platform) was nowhere to be found on the Special:Version page so we decided to cancel that deployment and redeploy this afternoon the remaining wikis in this batch. The rest of the wikis seemed fine during the same QA process. I'm removing azwiki from this batch will add it to the next one so that we can further investigate what is the issue with it.

Change #1153945 had a related patch set uploaded (by Gkyziridis; author: Gkyziridis):

[operations/mediawiki-config@master] ores-extension: enable extension with revertrisk filter for second batch of wikis

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

Change #1153945 merged by jenkins-bot:

[operations/mediawiki-config@master] ores-extension: enable extension with revertrisk filter for second batch of wikis (excluding azwiki)

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

Mentioned in SAL (#wikimedia-operations) [2025-06-05T13:04:48Z] <gkyziridis@deploy1003> Started scap sync-world: Backport for [[gerrit:1153945|ores-extension: enable extension with revertrisk filter for second batch of wikis (excluding azwiki) (T395823)]]

Mentioned in SAL (#wikimedia-operations) [2025-06-05T13:07:04Z] <gkyziridis@deploy1003> gkyziridis: Backport for [[gerrit:1153945|ores-extension: enable extension with revertrisk filter for second batch of wikis (excluding azwiki) (T395823)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-06-05T13:16:39Z] <gkyziridis@deploy1003> Finished scap sync-world: Backport for [[gerrit:1153945|ores-extension: enable extension with revertrisk filter for second batch of wikis (excluding azwiki) (T395823)]] (duration: 11m 51s)

Change #1155604 had a related patch set uploaded (by Gkyziridis; author: Gkyziridis):

[operations/mediawiki-config@master] ores-extension: enable oresUI for the second batch of wikis

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

Change #1155604 merged by jenkins-bot:

[operations/mediawiki-config@master] ores-extension: enable oresUI for the second batch of wikis

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

Mentioned in SAL (#wikimedia-operations) [2025-06-12T13:04:06Z] <gkyziridis@deploy1003> Started scap sync-world: Backport for [[gerrit:1155604|ores-extension: enable oresUI for the second batch of wikis (T395823 T395668)]]

Mentioned in SAL (#wikimedia-operations) [2025-06-12T13:06:16Z] <gkyziridis@deploy1003> gkyziridis: Backport for [[gerrit:1155604|ores-extension: enable oresUI for the second batch of wikis (T395823 T395668)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Change #1156349 had a related patch set uploaded (by Ilias Sarantopoulos; author: Ilias Sarantopoulos):

[operations/mediawiki-config@master] ores-extension: enable ores extension UI for second batch of wikis

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

Change #1156349 merged by jenkins-bot:

[operations/mediawiki-config@master] ores-extension: enable ores extension UI for second batch of wikis

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

Mentioned in SAL (#wikimedia-operations) [2025-06-12T13:34:59Z] <gkyziridis@deploy1003> Started scap sync-world: Backport for [[gerrit:1156349|ores-extension: enable ores extension UI for second batch of wikis (T395823)]]

Mentioned in SAL (#wikimedia-operations) [2025-06-12T13:37:13Z] <gkyziridis@deploy1003> gkyziridis, isaranto: Backport for [[gerrit:1156349|ores-extension: enable ores extension UI for second batch of wikis (T395823)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-06-12T13:45:59Z] <gkyziridis@deploy1003> Finished scap sync-world: Backport for [[gerrit:1156349|ores-extension: enable ores extension UI for second batch of wikis (T395823)]] (duration: 11m 00s)

Change #1160797 had a related patch set uploaded (by Gkyziridis; author: Gkyziridis):

[operations/mediawiki-config@master] ores-extension: enable extension with revertrisk filter for azwiki

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