Bug 61233 - sheriffbot should give more details about the failures in IRC
Summary: sheriffbot should give more details about the failures in IRC
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 19:19 PDT by WebKit Review Bot
Modified: 2011-05-23 16:52 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.97 KB, patch)
2011-05-23 10:07 PDT, Adam Barth
no flags Details | Formatted Diff | Diff
Patch (6.18 KB, patch)
2011-05-23 12:40 PDT, Adam Barth
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description WebKit Review Bot 2011-05-20 19:19:24 PDT
sheriffbot should give more details about the failures in IRC
Requested by abarth on #webkit.
Comment 1 Adam Barth 2011-05-23 10:07:49 PDT
Created attachment 94435 [details]
Patch
Comment 2 Eric Seidel (no email) 2011-05-23 10:18:56 PDT
Comment on attachment 94435 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=94435&action=review

> Tools/Scripts/webkitpy/tool/commands/sheriffbot.py:82
> +        failing_tests = set()

I wonder if the failure_map should know how to give us this?

> Tools/Scripts/webkitpy/tool/commands/sheriffbot.py:86
> +            failing_tests = failing_tests.union(set(failure_map.tests_failing_for(revision)))

Since we don't actually use these tests in this loop, I would have just broken it out into a separate loop.

> Tools/Scripts/webkitpy/tool/commands/sheriffbot.py:98
> +        if failing_tests:

I might have put this whole block into a helper function.

> Tools/Scripts/webkitpy/tool/commands/sheriffbot.py:100
> +            irc_message = "New failures: %s" % ", ".join(sorted(failing_tests)[0:test_list_limit])

Do you mean to skip the first test?  Either you don't need 0, or 0 is wrong.  I think you just mean [:test_list_limit].
Comment 3 Adam Barth 2011-05-23 12:40:30 PDT
Created attachment 94464 [details]
Patch
Comment 4 Eric Seidel (no email) 2011-05-23 13:31:56 PDT
Comment on attachment 94464 [details]
Patch

OK.
Comment 5 WebKit Commit Bot 2011-05-23 16:52:15 PDT
Comment on attachment 94464 [details]
Patch

Clearing flags on attachment: 94464

Committed r87107: <http://trac.webkit.org/changeset/87107>
Comment 6 WebKit Commit Bot 2011-05-23 16:52:20 PDT
All reviewed patches have been landed.  Closing bug.