Bug 37783 - new-run-webkit-tests: add a way to print out or retry the last set of tests that failed
Summary: new-run-webkit-tests: add a way to print out or retry the last set of tests t...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-18 16:46 PDT by Dirk Pranke
Modified: 2010-04-19 14:57 PDT (History)
5 users (show)

See Also:


Attachments
Patch (2.66 KB, patch)
2010-04-18 17:17 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
Patch (2.87 KB, patch)
2010-04-19 14:56 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2010-04-18 16:46:41 PDT
I frequently want to re-run new-run-webkit-tests and just re-test the set of tests that failed. It would be nice if there was a way to print the last tests out easily or read them into new-run-webkit-tests. The data is in the unexpected_results.json file, so we just have to process it.
Comment 1 Dirk Pranke 2010-04-18 17:17:08 PDT
Created attachment 53646 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-04-19 00:08:45 PDT
Comment on attachment 53646 [details]
Patch

Looks useful.
Comment 3 Ojan Vafai 2010-04-19 08:14:06 PDT
Comment on attachment 53646 [details]
Patch

> +        optparse.make_option("--print-last-results", action="store_true",
> +            default=False, help="print the tests in the last run that "
> +            "had unexpected results."),

Do we really need an option for this? Lets just always do this. If python had a way of doing "hidden" commands the way the webkit-patch does for commands, I'd be OK with adding all these options. But having them all visible to users of the script by default makes the script harder to use.

> +        optparse.make_option("--retry-last-results", action="store_true",
> +            default=False, help="re-try the tests in the last run that "
> +            "had unexpected results."),

Nit: last-results isn't clear without reading the help text or the code. How about --retry-unexpected-failures?
Comment 4 Dirk Pranke 2010-04-19 10:41:31 PDT
(In reply to comment #3)
> (From update of attachment 53646 [details])
> > +        optparse.make_option("--print-last-results", action="store_true",
> > +            default=False, help="print the tests in the last run that "
> > +            "had unexpected results."),
> 
> Do we really need an option for this? Lets just always do this. If python had a
> way of doing "hidden" commands the way the webkit-patch does for commands, I'd
> be OK with adding all these options. But having them all visible to users of
> the script by default makes the script harder to use.

What do you mean by "always do this"? The patch prints the list and exits if that flag is passed in.

> > +        optparse.make_option("--retry-last-results", action="store_true",
> > +            default=False, help="re-try the tests in the last run that "
> > +            "had unexpected results."),
> 
> Nit: last-results isn't clear without reading the help text or the code. How
> about --retry-unexpected-failures?

Of course, we retry unexpected passes as well. --retry-unexpected-results? I could also live with -failures, as that is the main intent.

-- Dirk
Comment 5 Dirk Pranke 2010-04-19 14:56:05 PDT
Created attachment 53723 [details]
Patch
Comment 6 Dirk Pranke 2010-04-19 14:57:08 PDT
Committed r57843: <http://trac.webkit.org/changeset/57843>