Changeset 51518 in webkit


Ignore:
Timestamp:
Nov 30, 2009 4:07:41 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-30 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

[bzt] Generate pass messages for style-queue
https://bugs.webkit.org/show_bug.cgi?id=31995

With this change, the style-queue posts "pass" messages to bugs as
well. Also, added more information to the state store w.r.t. passing
and failing.

  • Scripts/modules/commands/queues.py:
  • Scripts/modules/patchcollection.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51499 r51518  
     12009-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
    1152009-11-30  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
    216
  • trunk/WebKitTools/Scripts/modules/commands/queues.py

    r51464 r51518  
    191191    def handle_unexpected_error(self, patch, message):
    192192        log(message)
    193         self._patches.done(patch)
    194193
    195194    # LandingSequenceErrorHandler methods
     
    210209
    211210    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
    214219
    215220    @classmethod
     
    221226        #        have a better API.
    222227        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))
    226229            tool.bugs.post_comment_to_bug(patch["bug_id"], message, cc=cls.watchers)
    227230
     
    247250    def process_work_item(self, patch):
    248251        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.done(patch)
     252        self._patches.did_pass(patch)
  • trunk/WebKitTools/Scripts/modules/patchcollection.py

    r51465 r51518  
    7272
    7373class PersistentPatchCollection:
    74     _initial_status = "Attempted"
    75     _terminal_status = "Done"
     74    _initial_status = "Pending"
     75    _pass_status = "Pass"
     76    _fail_status = "Fail"
    7677    def __init__(self, delegate):
    7778        self._delegate = delegate
     
    9697                return patch_id
    9798
    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.