Wikipedia:Bots/Requests for approval/HBC AIV helperbot14

HBC AIV helperbot14
Operator:

Time filed: 15:45, Thursday, July 18, 2024 (UTC)

Function overview: Reimplement deactivated bot

Automatic, Supervised, or Manual: Automatic

Programming language(s): Currently Perl, possible future port to PWB

Source code available: Yes, see User:HBC AIV helperbot/source GitHub

Links to relevant discussions (where appropriate): per WP:BOTN

Edit period(s): Continuous

Estimated number of pages affected: 5

Namespace(s):Wikipedia Space

Exclusion compliant (Yes/No): Yes, but not needed

Function details: Reimpliment the functionality of following operator passing away. See BOTN for context.

Discussion
Run it until you're sure it's working right, and then ping me here with the diffs and I'll check things and put in approval. Primefac (talk) 15:49, 18 July 2024 (UTC)
 * I've been unable to get the existing code running again (well it runs ok, it just doesn't ever save it's edits to site....). I've spun up a pywikibot replacement using similar code and logic for now to keep the backlog down, I've reimplmented most of the functionality, minus the Legend information in the summary. Will look to add this in shortly. Mdann52 (talk) 06:24, 19 July 2024 (UTC)
 * see contributions with new code here - 12 edits so far. I've killed the bot as it kept hitting edit filters, and got reported to AIV by another bot due to Special:AbuseFilter/768, which I can't see - so not sure how much more testing is easy/feasable. Happy to continue trial for X days or X edits if easier, given the code has changed so speedy approval may not be appropriate. I still need to add in the tagging of IPs/Users when in categories, but the core clerking should be working. Mdann52 (talk) 08:08, 19 July 2024 (UTC)
 * Managed to get around the filter issue, happy things are running as expected from the clerking side. Mdann52 (talk) 09:32, 19 July 2024 (UTC)
 * I'm okay with a rolling trial; I'd rather you see and fix things on the fly rather than have to wait for a trial extension or similar. As long as the edit summary indicates it's still in the trial phase we should be okay. Primefac (talk) 10:36, 19 July 2024 (UTC)
 * If you come across the filter issue again, or even if you're just curious, I'd be happy to share the relevant parts with you. It's not the bot's fault, and would be resolved if it has the bot flag. We also have other workarounds. Just let me know if you want the info. -- zzuuzz (talk) 12:26, 19 July 2024 (UTC)
 * I managed to find another EFM in the end who sorted it - please send me the relevant parts if it could cause an issue in the future though! I know it's a false positive (I would be worried if a new user making bulk edits to that page *didn't* get flagged), I just found it amusing the bot got reported to the noticeboard it was trying to clerk! Mdann52 (talk) 12:29, 19 July 2024 (UTC)
 * Maybe we should just give the bot the bot flag. I've seen bots flagged for trials before. – Novem Linguae (talk) 13:47, 19 July 2024 (UTC)
 * We do sometimes. For something like this where the code isn't identical to the old one, I'd rather have more eyes on the situation. I know a lot of folks have bot edits hidden, but anecdotally they also seem to be the ones that would actually notice issues, so for the moment (especially if the filter issue has been resolved) I'd like to leave the flag off (at least for a bit longer). Primefac (talk) 12:41, 21 July 2024 (UTC)
 * Knowing the filters as I do, and having sent some info to Mdann52, I think the filter aspect is good at this time. -- zzuuzz (talk) 13:01, 21 July 2024 (UTC)

Does this version of the bot merge duplicates? Seems it only removed one of the two reports at AIV against the disruptive username account, as well. – 2804:F1...6D:BFBD (talk) 09:56, 19 July 2024 (UTC)
 * Merging duplicates is on my todo list, hopefully complete soon. That second report not being removed is an interesting one. The account wasn't blocked when it checked it, it was g'locked which doesn't show up in the local logs the bot is using (it also isn't marked as blocked, and just appears as "user does not exist" locally. I don't see what reasonable steps I can make it take in the short-term. To answer your other question, it removes replies that start with *:, it ignored ones that aren't correctly nested, but I've sorted that as well so it will look at normal indentation as well. Mdann52 (talk) 10:24, 19 July 2024 (UTC)
 * If you need code to detect global locks, that should be doable in raw SQL, raw API, or pywikibot APISite.is_locked . – Novem Linguae (talk) 13:50, 19 July 2024 (UTC)
 * Ah yes, good point. I'll add that in. Mdann52 (talk) 13:58, 19 July 2024 (UTC)
 * Just to mention that when an account is locked and hidden, it's not easy to detect. I've never seen a bot manage it. -- zzuuzz (talk) 13:01, 21 July 2024 (UTC)