Wikipedia:Bots/Requests for approval/MusikBot 6
- 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 Approved.
Operator: MusikAnimal (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 01:54, Friday, October 9, 2015 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Ruby
Source code available: GitHub
Function overview: "Rotate" headings at T:TDYK every day. This means moving the "Current nominations" heading to the current day minus seven days, and then adding a new heading for the current date.
Links to relevant discussions (where appropriate): Special:PermaLink/684810934#Updating_T:TDYK_every_new_day
Edit period(s): Daily
Estimated number of pages affected: 1
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No): Yes
Function details: The bot will run every day at 00:00:00 GMT, acting on T:TDYK. It will move the level 2 "Current nominations" heading above the level 3 headings for the current day minus seven days (specified by User:MusikBot/RotateTDYK/Offset). Next, it checks if a heading exists for the current date, and if it doesn't, creates it along with the instructional comment. This is best exemplified by diffs, see [1] (the bot on testwiki) versus [2] (human on enwiki).The important thing is that the bot doesn't try to do anything that's already been done, and is programmed to handle edit conflicts. Conceivably if the page gets mangled the bot will error out and abort, since we're using explicit regex to identify what to change on the page. If it fails it will wait 3 minutes and try again, and continue to do so for up to 15 minutes before aborting entirely. Errors are logged at User:MusikBot/RotateTDYK/Error log — MusikAnimal talk 01:54, 9 October 2015 (UTC)[reply]Discussion
editApproved for trial (7 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. — Earwig talk 21:06, 10 October 2015 (UTC)[reply]
- Trial complete.
- Day one: A-okay.
- Day two: Failed to run completely, simple coding error that was easily fixed. This demonstrated what happens when something goes wrong. That is, it reports the errors to User:MusikBot/RotateTDYK/Error log and after five tries, aborts the task altogether.
- Day three Failed to run via the cronjob and was manually executed. This is because the bot correctly handles API maxlag errors with every API call except for when it authenticates =P This is fixed now
- Day four and beyond: successful!
- — MusikAnimal talk 03:44, 19 October 2015 (UTC)[reply]
- Approved. No major issues; MusikAnimal tells me he'll fix the extraneous newline. — Earwig talk 21:49, 19 October 2015 (UTC)[reply]
- 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.