Wikipedia:Bots/Requests for approval/MusikBot 2


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Symbol keep vote.svg Approved

MusikBot 2
Operator:

Time filed: 16:35, Tuesday, July 7, 2015 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Ruby

Source code available: GitHub

Function overview: Takes over the archiving task of WP:PERM pages, previously the responsibility of. Bot operator is aware and in support of this as are the regular PERM admins

Links to relevant discussions (where appropriate):

Edit period(s): Continuous

Estimated number of pages affected: 8, and most likely to be 9 (if we merge in mass message sender into PERM)

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): Yes

Function details: MusikBot has for a while been clerking the PERM pages, and that trial is now complete and awaiting review (see Bots/Requests for approval/MusikBot). In the meantime I have developed the archiving task to be bundled in with the other tasks. Every task is mutually exclusive to others, and can be turned off/on as needed. The bot already scrapes the pages every 10 minutes so it will archive on-the-fly, rather than once daily as KingpinBot did. The logic is otherwise exactly the same, just implemented differently. Some additions:
 * The edit summary will state how many open requests there are left, or will say "list is clear"
 * Updates the admin backlog to no admin backlog or vice versa, as needed
 * Comments when a request has been marked as done but the user does not have the said permission

This new archiving task is badly needed... KingpinBot (all due respect to the operator) has been increasingly less reliable. Currently we are quite backed up &mdash; MusikAnimal  talk  16:35, 7 July 2015 (UTC)

((BAGAssistanceNeeded)) Requesting immediate attention as the requests for permission pages badly need to be archived. Patrolling admins are finding it difficult to pick out open remaining requests. During this first run I can run the script locally, stepping through the code, to ensure nothing goes awry given how many requests there are &mdash; MusikAnimal  talk  20:53, 7 July 2015 (UTC)

Discussion
Magioladitis (talk) 22:54, 7 July 2015 (UTC)

Alright! After 7 days, I think I'm convinced the bot is stable except for the AWB registration page. That did work but then I realized I wasn't archiving bot requests (although there haven't been any). The AWB page requires special handling as it is structured vastly different from the other PERM pages. I have it fully working on testwiki, I believe, but I'll need an extended trail to prove it works in production.

As for the other PERM pages, they've been spot-on. When I first ran the script all the pages were backed up, so I manually ran it page by page. I saw that when a level 2 heading was not on its own line, the bot malfunctioned (skipped several requests). I think most bots would have too, actually... as it's the headings that makes it possible to parse the page request by request. To rememdy this for MusikBot, I implemented an initial check that would report the error, and it will refrain from attempting to process the page until the error is fixed. The report shows exactly what line caused the error. Here's an example on testwiki: I don't want to have the bot automatically fix the error as this scenario may come about when the page structure has been tampered with, and the bot could potentially make matters worse, so it will instead wait for a human to fix it.

Anyway, aside from that little mishap we've had no issues for the core PERM pages. Here's some diffs:
 * Rollback:
 * Pending changes reviewer:

To reduce edit count and server strain, the bot consolidates edits to archive pages when applicable:

Diffs showing how the bot updates the admin backlog template:

Let me know if you have any questions. Again, if you feel it is necessary, please allow for an extended trial to exemplify handling of the AWB registration page. Thanks! &mdash; MusikAnimal  talk  21:52, 14 July 2015 (UTC)

Let's run the bot for another 10 days! -- Magioladitis (talk) 08:51, 15 July 2015 (UTC)

Alright! As aforementioned, the bot only had issues archiving the request for AWB access page, since it is formatted very differently from the other PERM pages. I'm happy to report it's now working as intended, and there have been no issues during the extended trial. Diffs:. Notice how the bot handles other tasks in the same edit. Finally, there have been no AWB bot requests so I can't show you a diff of MusikBot archiving such a request in production, but its ability to handle this scenario can be demonstrated on testwiki here. All in all I think I can definitively say the bot is stable. &mdash; MusikAnimal  talk  18:36, 25 July 2015 (UTC)

 ·addshore·  talk to me! 12:48, 28 July 2015 (UTC)


 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.