Changeset 57430 in webkit


Ignore:
Timestamp:
Apr 10, 2010 6:06:51 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-10 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

SheriffBot should spam when it encounters errors
https://bugs.webkit.org/show_bug.cgi?id=37329

We need to always update the status server so we don't get stuck in a
spam loop. I tried writing a test for this change, but it kind of
got out of control. We need a better way to do failure injection.

  • Scripts/webkitpy/tool/commands/sheriffbot.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57427 r57430  
     12010-04-10  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        SheriffBot should spam when it encounters errors
     6        https://bugs.webkit.org/show_bug.cgi?id=37329
     7
     8        We need to always update the status server so we don't get stuck in a
     9        spam loop.  I tried writing a test for this change, but it kind of
     10        got out of control.  We need a better way to do failure injection.
     11
     12        * Scripts/webkitpy/tool/commands/sheriffbot.py:
     13
    1142010-04-10  Adam Barth  <abarth@webkit.org>
    215
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/sheriffbot.py

    r57125 r57430  
    7979        blame_list = new_failures.keys()
    8080        for svn_revision, builders in new_failures.items():
    81             commit_info = self.tool.checkout().commit_info_for_revision(svn_revision)
    82             self._sheriff.post_irc_warning(commit_info, builders)
    83             self._sheriff.post_blame_comment_on_bug(commit_info,
    84                                                     builders,
    85                                                     blame_list)
    86             self._sheriff.post_automatic_rollout_patch(commit_info, builders)
    87 
    88             for builder in builders:
    89                 self.tool.status_server.update_svn_revision(svn_revision,
    90                                                             builder.name())
     81            try:
     82                commit_info = self.tool.checkout().commit_info_for_revision(svn_revision)
     83                self._sheriff.post_irc_warning(commit_info, builders)
     84                self._sheriff.post_blame_comment_on_bug(commit_info,
     85                                                        builders,
     86                                                        blame_list)
     87                self._sheriff.post_automatic_rollout_patch(commit_info,
     88                                                           builders)
     89            finally:
     90                for builder in builders:
     91                    self.tool.status_server.update_svn_revision(svn_revision,
     92                                                                builder.name())
    9193        return True
    9294
Note: See TracChangeset for help on using the changeset viewer.