Changeset 51518 in webkit
- Timestamp:
- Nov 30, 2009 4:07:41 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51499 r51518 1 2009-11-30 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 [bzt] Generate pass messages for style-queue 6 https://bugs.webkit.org/show_bug.cgi?id=31995 7 8 With this change, the style-queue posts "pass" messages to bugs as 9 well. Also, added more information to the state store w.r.t. passing 10 and failing. 11 12 * Scripts/modules/commands/queues.py: 13 * Scripts/modules/patchcollection.py: 14 1 15 2009-11-30 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 16 -
trunk/WebKitTools/Scripts/modules/commands/queues.py
r51464 r51518 191 191 def handle_unexpected_error(self, patch, message): 192 192 log(message) 193 self._patches.done(patch)194 193 195 194 # LandingSequenceErrorHandler methods … … 210 209 211 210 def process_work_item(self, patch): 212 self.run_bugzilla_tool(["check-style", "--force-clean", "--non-interactive", "--parent-command=style-queue", patch["id"]]) 213 self._patches.done(patch) 211 try: 212 self.run_bugzilla_tool(["check-style", "--force-clean", "--non-interactive", "--parent-command=style-queue", patch["id"]]) 213 message = "%s ran check-webkit-style on attachment %s without any errors." % (self.name, patch["id"]) 214 self.tool.bugs.post_comment_to_bug(patch["bug_id"], message, cc=self.watchers) 215 self._patches.did_pass(patch) 216 except ScriptError, e: 217 self._patches.did_fail(patch) 218 raise e 214 219 215 220 @classmethod … … 221 226 # have a better API. 222 227 if re.search("check-webkit-style", command): 223 message = "Attachment %s did not pass %s:\n\n%s" % (patch["id"], cls.name, script_error.message_with_output(output_limit=None)) 224 # Local-only logging helpful for development: 225 # log("** BEGIN BUG POST **\n%s** END BUG POST **" % message) 228 message = "Attachment %s did not pass %s:\n\n%s" % (patch["id"], cls.name, script_error.message_with_output(output_limit=5*1024)) 226 229 tool.bugs.post_comment_to_bug(patch["bug_id"], message, cc=cls.watchers) 227 230 … … 247 250 def process_work_item(self, patch): 248 251 self.run_bugzilla_tool(["build-attachment", self.port.flag(), "--force-clean", "--quiet", "--non-interactive", "--parent-command=build-queue", "--no-update", patch["id"]]) 249 self._patches.d one(patch)252 self._patches.did_pass(patch) -
trunk/WebKitTools/Scripts/modules/patchcollection.py
r51465 r51518 72 72 73 73 class PersistentPatchCollection: 74 _initial_status = "Attempted" 75 _terminal_status = "Done" 74 _initial_status = "Pending" 75 _pass_status = "Pass" 76 _fail_status = "Fail" 76 77 def __init__(self, delegate): 77 78 self._delegate = delegate … … 96 97 return patch_id 97 98 98 def done(self, patch): 99 self._status.update_status(self._name, self._terminal_status, patch) 99 def did_pass(self, patch): 100 self._status.update_status(self._name, self._pass_status, patch) 101 102 def did_fail(self, patch): 103 self._status.update_status(self._name, self._fail_status, patch)
Note: See TracChangeset
for help on using the changeset viewer.