Changeset 70228 in webkit


Ignore:
Timestamp:
Oct 21, 2010 4:26:57 AM (14 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

Don't CC authors of flaky tests
https://bugs.webkit.org/show_bug.cgi?id=48038

Some authors found this too annoying. We'll look for another way to
close the flaky test loop.

  • Scripts/webkitpy/tool/commands/queues.py:
  • Scripts/webkitpy/tool/commands/queues_unittest.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70220 r70228  
     12010-10-21  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Don't CC authors of flaky tests
     6        https://bugs.webkit.org/show_bug.cgi?id=48038
     7
     8        Some authors found this too annoying.  We'll look for another way to
     9        close the flaky test loop.
     10
     11        * Scripts/webkitpy/tool/commands/queues.py:
     12        * Scripts/webkitpy/tool/commands/queues_unittest.py:
     13
    1142010-10-21  Eric Seidel  <eric@webkit.org>
    215
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/queues.py

    r70171 r70228  
    4848from webkitpy.tool.bot.feeders import CommitQueueFeeder, EWSFeeder
    4949from webkitpy.tool.bot.queueengine import QueueEngine, QueueEngineDelegate
    50 from webkitpy.tool.grammar import pluralize
     50from webkitpy.tool.grammar import pluralize, join_with_separators
    5151from webkitpy.tool.multicommandtool import Command, TryAgain
    5252
     
    302302    def report_flaky_tests(self, patch, flaky_tests):
    303303        authors = self._author_emails_for_tests(flaky_tests)
    304         cc_explaination = "  The author(s) of the test(s) have been CCed on this bug." if authors else ""
    305         message = "The %s encountered the following flaky tests while processing attachment %s:\n\n%s\n\nPlease file bugs against the tests.%s  The commit-queue is continuing to process your patch." % (self.name, patch.id(), "\n".join(flaky_tests), cc_explaination)
    306         self._tool.bugs.post_comment_to_bug(patch.bug_id(), message, cc=authors)
     304        author_nag = "  The author(s) of the test(s) are %s." % join_with_separators(authors) if authors else ""
     305        message = "The %s encountered the following flaky tests while processing attachment %s:\n\n%s\n\nPlease file bugs against the tests.%s  The commit-queue is continuing to process your patch." % (self.name, patch.id(), "\n".join(flaky_tests), author_nag)
     306        self._tool.bugs.post_comment_to_bug(patch.bug_id(), message)
    307307
    308308    # StepSequenceErrorHandler methods
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/queues_unittest.py

    r70171 r70228  
    313313        queue = CommitQueue()
    314314        queue.bind_to_tool(MockTool())
    315         expected_stderr = """MOCK bug comment: bug_id=142, cc=['abarth@webkit.org']
     315        expected_stderr = """MOCK bug comment: bug_id=142, cc=None
    316316--- Begin comment ---
    317317The commit-queue encountered the following flaky tests while processing attachment 197:
     
    320320bar/baz.html
    321321
    322 Please file bugs against the tests.  The author(s) of the test(s) have been CCed on this bug.  The commit-queue is continuing to process your patch.
     322Please file bugs against the tests.  The author(s) of the test(s) are abarth@webkit.org.  The commit-queue is continuing to process your patch.
    323323--- End comment ---
    324324
Note: See TracChangeset for help on using the changeset viewer.