[Merge] lp:~robru/queuebot/fix-rtm-dupes into lp:queuebot
Robert Bruce Park
robert.park at canonical.com
Tue Aug 26 23:15:42 UTC 2014
The proposal to merge lp:~robru/queuebot/fix-rtm-dupes into lp:queuebot has been updated.
Description changed to:
Apologies for the big diff, but I was able to track down the flooding problem. What was happening was that people were copy&pasting their utopic landings as RTM landings, so spreadsheet column A which we were indexing on was no longer unique. And since the utopic/RTM silos rarely had identical statuses, the bot would see one status, see the other status, see they were different, and ping that, always.
I solved that by creating a more unique token by hashing together columns A and H, which is to say I combine the destination release with the landing description to create a more unique key to index off of.
In the process of writing this, I realized that the plugin had a memory leak, because it never cleared old descriptions that it was scanning, so in theory those were just piling up forever. I solved it by creating a new dict each time rather than adding to the same old dict forever.
Additionally, I wrote a few simplifications that make the code easier to read, at least for me. Hopefully none of this is controversial for you.
Thanks!
For more details, see:
https://code.launchpad.net/~robru/queuebot/fix-rtm-dupes/+merge/232335
--
https://code.launchpad.net/~robru/queuebot/fix-rtm-dupes/+merge/232335
Your team Ubuntu Package Archive Administrators is requested to review the proposed merge of lp:~robru/queuebot/fix-rtm-dupes into lp:queuebot.
More information about the ubuntu-archive
mailing list