Changeset 56883 in webkit
- Timestamp:
- Mar 31, 2010 6:13:28 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r56881 r56883 1 2010-03-31 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Add the ability to restart sheriffbot from IRC 6 https://bugs.webkit.org/show_bug.cgi?id=36909 7 8 * Scripts/webkitpy/tool/bot/irc_command.py: 9 * Scripts/webkitpy/tool/bot/queueengine.py: 10 * Scripts/webkitpy/tool/bot/sheriffircbot.py: 11 * Scripts/webkitpy/tool/bot/sheriffircbot_unittest.py: 12 1 13 2010-03-31 Adam Barth <abarth@webkit.org> 2 14 -
trunk/WebKitTools/Scripts/webkitpy/tool/bot/irc_command.py
r56736 r56883 28 28 29 29 from webkitpy.common.checkout.changelog import view_source_url 30 from webkitpy.tool.bot.queueengine import TerminateQueue 31 30 32 31 33 # FIXME: Merge with Command? … … 40 42 41 43 44 class Restart(IRCCommand): 45 def execute(self, args, tool): 46 tool.irc().post("Restarting...") 47 raise TerminateQueue() 48 49 42 50 class Hi(IRCCommand): 43 51 def execute(self, args, tool): -
trunk/WebKitTools/Scripts/webkitpy/tool/bot/queueengine.py
r56736 r56883 37 37 from webkitpy.common.system.executive import ScriptError 38 38 from webkitpy.common.system.deprecated_logging import log, OutputTee 39 40 41 class TerminateQueue(Exception): 42 pass 43 39 44 40 45 class QueueEngineDelegate: … … 110 115 message = "Unexpected failure when landing patch! Please file a bug against webkit-patch.\n%s" % e.message_with_output() 111 116 self._delegate.handle_unexpected_error(work_item, message) 117 except TerminateQueue, e: 118 log("\nTerminateQueue exception received.") 119 return 0 112 120 except KeyboardInterrupt, e: 113 121 log("\nUser terminated queue.") -
trunk/WebKitTools/Scripts/webkitpy/tool/bot/sheriffircbot.py
r56658 r56883 56 56 commands = { 57 57 "last-green-revision": irc_command.LastGreenRevision, 58 "restart": irc_command.Restart, 58 59 "hi": irc_command.Hi, 59 60 } -
trunk/WebKitTools/Scripts/webkitpy/tool/bot/sheriffircbot_unittest.py
r56739 r56883 47 47 48 48 def test_bogus(self): 49 expected_stderr = "MOCK: irc.post: Available commands: hi, last-green-revision\n"49 expected_stderr = "MOCK: irc.post: Available commands: hi, restart, last-green-revision\n" 50 50 OutputCapture().assert_outputs(self, run, args=["bogus"], expected_stderr=expected_stderr) 51 51
Note: See TracChangeset
for help on using the changeset viewer.