RESOLVED FIXED 64037
Add roll-chromium-deps command to sheriff-bot
https://bugs.webkit.org/show_bug.cgi?id=64037
Summary Add roll-chromium-deps command to sheriff-bot
Adam Barth
Reported 2011-07-06 15:32:15 PDT
Add roll-chromium-deps command to sheriff-bot
Attachments
Patch (10.83 KB, patch)
2011-07-06 15:33 PDT, Adam Barth
eric: review+
Adam Barth
Comment 1 2011-07-06 15:33:36 PDT
Eric Seidel (no email)
Comment 2 2011-07-06 15:37:59 PDT
Comment on attachment 99894 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=99894&action=review OK. > Tools/Scripts/webkitpy/tool/bot/irc_command.py:135 > + if revision: > + tool.irc().post("%s: Rolling Chromium DEPS to r%s" % (nick, revision)) > + else: > + tool.irc().post("%s: Rolling Chromium DEPS last-known good revision" % nick) I would have probably used: roll_target = "r%" % revision if revision else "last-known good revision" tool.irc().post("%s Rolling Chromium DEPS to %s" % (nick, roll_target)) > Tools/Scripts/webkitpy/tool/bot/irc_command.py:142 > + match = re.search(r"Current Chromium DEPS revision \d+ is newer than \d+\.", e.output) Does this need to be multi-line? > Tools/Scripts/webkitpy/tool/bot/irc_command.py:144 > + tool.irc().post("%s: %s" % (nick, match.group(0))) You could name your groups for clarity. > Tools/Scripts/webkitpy/tool/bot/irc_command.py:145 > + return return None will exit 0, is that what you want? Oh, I guess this is a IRC command, so it will just not say anthing. return None is still probably more explicit than return. Not sure it maters. > Tools/Scripts/webkitpy/tool/bot/irc_command.py:151 > + bug_id = parse_bug_id(e.output) > + if bug_id: > + bug_url = tool.bugs.bug_url_for_bug_id(bug_id) > + tool.irc().post("%s: Ugg... Might have created %s" % (nick, bug_url)) Wish we could share this somehow....
Adam Barth
Comment 3 2011-07-06 15:49:53 PDT
Note You need to log in before you can comment on or make changes to this bug.