Page MenuHomePhabricator

SPIKE: AutoModerator sends repetitive notifications on user's talkpage on Chinese Wikipedia [8hrs]
Closed, ResolvedPublicSpike

Description

Steps to replicate the issue (include links if applicable): See below

What happens?:

AutoModerator would send repetitive notifications on the user's talkpage on Chinese Wikipedia, even if it only rollback one time. For instance: AutoModerator rollbacked 1.162.12.66's edit, but it sent two notification on their talkpage.

This issue has been occurring since 2/20 in every rollbacks (See AutoModerator's contributions on zhwiki).

What should have happened instead?:
It should only send one notification per one rollback.

Event Timeline

Restricted Application added subscribers: Stang, Aklapper. · View Herald Transcript
SCP-2000 renamed this task from AutoModerator send repetitive notifications on user talkpage to AutoModerator sends repetitive notifications on user's talkpage on Chinese Wikipedia.Feb 23 2025, 5:15 PM
jsn.sherman renamed this task from AutoModerator sends repetitive notifications on user's talkpage on Chinese Wikipedia to SPIKE: AutoModerator sends repetitive notifications on user's talkpage on Chinese Wikipedia [8hrs].Mar 4 2025, 4:06 PM
jsn.sherman added a project: Spike.
Restricted Application changed the subtype of this task from "Bug Report" to "Spike". · View Herald TranscriptMar 4 2025, 4:06 PM

On February 20th, it looks like the configuration

"AutoModeratorEnableBotFlag": true,

was changed to

"AutoModeratorEnableBotFlag": false,

See here.

I was able to validate this is the cause locally by changing on-wiki configuration and seeing the talk page message sent twice.
I will work on a demo patch fix.

Change #1125254 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/AutoModerator@master] SPIKE: AutoModerator sends repetitive notifications on user's talkpage on Chinese Wikipedia - demo fix for the bug of sending multiple talk page messages

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