Bug 88702 - [NRWT] Would like an output mode similar to ORWT verbose one
Summary: [NRWT] Would like an output mode similar to ORWT verbose one
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords: NRWT
Depends on: 93434
Blocks: 88680 92432
  Show dependency treegraph
 
Reported: 2012-06-08 23:54 PDT by Alexey Proskuryakov
Modified: 2012-08-07 22:32 PDT (History)
7 users (show)

See Also:


Attachments
Patch (10.26 KB, patch)
2012-08-02 17:45 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
patch for landing (10.28 KB, patch)
2012-08-07 18:48 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 Alexey Proskuryakov 2012-06-08 23:54:52 PDT
When investigating flaky failures, I usually do it with "old-run-webkit-tests -v". The reason is that it runs tests sequentially, and prints each test out (so I can easily see which tests ran prior to failing one, and are the likely culprits).

This is more difficult with NRWT, because (in the order of decreasing importance):

1. its verbose output is way more verbose, to the degree that it's not easy to hunt down where test list is.

2. Retrying failing tests wastes time, and further confuses output.

3. Need to pass extra options (--num-processes) is understandable, but inconvenient nonetheless.
Comment 1 Dirk Pranke 2012-06-09 16:08:44 PDT
(In reply to comment #0)
> When investigating flaky failures, I usually do it with "old-run-webkit-tests -v". The reason is that it runs tests sequentially, and prints each test out (so I can easily see which tests ran prior to failing one, and are the likely culprits).
> 
> This is more difficult with NRWT, because (in the order of decreasing importance):
> 
> 1. its verbose output is way more verbose, to the degree that it's not easy to hunt down where test list is.
> 

I quite agree with this. I have been meaning to implement a simpler format for some time. I have two candidates in mind, and I'd be curious to get your feedback on them.

The first is something along the lines of the difference between test-webkitpy and test-webkitpy -v. The first gives the "progress update" like you get today; the latter prints one line per test with the name of the test and passed/failed (this is also similar to how ninja's output works, and I've been meaning to converge with ninja here).

The second option is more verbose: use new-run-webkit-tests --print trace-everything. That prints out the expected result (in the TestExpectations sense), the location of the baselines that will be used, the actual result, and the time the test took.

I think both forms of output are useful. WDYT?

> 2. Retrying failing tests wastes time, and further confuses output.

You can disable this today with --no-retry-failures, in case you didn't know that.
 
> 3. Need to pass extra options (--num-processes) is understandable, but inconvenient nonetheless.

Yeah. I have no particular objection to adding another command line option that combines some or all o f these things, if that's generally useful. 

I personally recommend people create shell functions or aliases or other wrappers, though, since most people often find they want a particular combination of things (my most common aliases do disable retries, for example) and it's hard to please everyone without making the help even more unmanageably longer.
Comment 2 Dirk Pranke 2012-07-31 19:08:38 PDT
This will actually be implemented by the patch posted to bug 92432.
Comment 3 Dirk Pranke 2012-08-02 17:45:42 PDT
Created attachment 156219 [details]
Patch
Comment 4 Ryosuke Niwa 2012-08-02 17:49:38 PDT
Comment on attachment 156219 [details]
Patch

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

rubber stamp.

> Tools/ChangeLog:11
> +        --debug-rwt-logging to get the full debug stream (aka old ORWT
> +        --verbose).

You mean old NRTW --verbose?
Comment 5 Dirk Pranke 2012-08-02 17:54:17 PDT
(In reply to comment #4)
> (From update of attachment 156219 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=156219&action=review
> 
> rubber stamp.
> 
> > Tools/ChangeLog:11
> > +        --debug-rwt-logging to get the full debug stream (aka old ORWT
> > +        --verbose).
> 
> You mean old NRTW --verbose?

er, right.
Comment 6 Dirk Pranke 2012-08-07 18:48:29 PDT
Created attachment 157082 [details]
patch for landing
Comment 7 Dirk Pranke 2012-08-07 18:50:22 PDT
Committed r124967: <http://trac.webkit.org/changeset/124967>
Comment 8 Csaba Osztrogonác 2012-08-07 22:32:42 PDT
(In reply to comment #7)
> Committed r124967: <http://trac.webkit.org/changeset/124967>

It caused a regression. See https://bugs.webkit.org/show_bug.cgi?id=93434 for details.