Bug 45408 - Include detailed test modifiers (e.g. FLAKY) in results.json for non-layout tests
Summary: Include detailed test modifiers (e.g. FLAKY) in results.json for non-layout 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: Nobody
URL:
Keywords:
Depends on: 46011
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-08 12:34 PDT by Kinuko Yasuda
Modified: 2010-09-17 16:12 PDT (History)
2 users (show)

See Also:


Attachments
Patch (18.55 KB, patch)
2010-09-08 13:50 PDT, Kinuko Yasuda
no flags Details | Formatted Diff | Diff
Patch (22.53 KB, patch)
2010-09-16 00:30 PDT, Kinuko Yasuda
ojan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kinuko Yasuda 2010-09-08 12:34:03 PDT
Include detailed test modifiers (e.g. FLAKY) in results.json for failing non-layout tests.
Currently the results.json only includes FAIL or PASS information.
Comment 1 Kinuko Yasuda 2010-09-08 13:50:47 PDT
Created attachment 66935 [details]
Patch
Comment 2 Ojan Vafai 2010-09-09 00:35:14 PDT
Comment on attachment 66935 [details]
Patch

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

> WebKitTools/Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py:64
> +            # Shouldn't happen
If this shouldn't happen, lets just leave out the try/except clause. Otherwise, if this starts happening, we'll never know. I'd be OK with the try/except clause if we logged the error (i.e. a warning level log). But, we shouldn't just silently ignore it.

> WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:820
>                                     individual_test_timings)
Indentation is off by a space.
Comment 3 Kinuko Yasuda 2010-09-16 00:30:57 PDT
Created attachment 67775 [details]
Patch
Comment 4 Kinuko Yasuda 2010-09-16 00:37:55 PDT
Sorry it took for me so long to update this again.

Basically mostly same with the previous patch, except that I changed how to record FIXABLE_COUNT.
Now it records 'F' for tests with FAILS modifier, 'X' for disabled tests, 'L' for tests with FLAKY modifier and 'P' for others.  (In an assumption that the number of FAILS_ tests is the one we should focus on to  reduce failures - as we discussed.)

(In reply to comment #2)
> (From update of attachment 66935 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=66935&action=prettypatch
> 
> > WebKitTools/Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py:64
> > +            # Shouldn't happen
> If this shouldn't happen, lets just leave out the try/except clause. Otherwise, if this starts happening, we'll never know. I'd be OK with the try/except clause if we logged the error (i.e. a warning level log). But, we shouldn't just silently ignore it.

Added logging.warn in the except part.

> > WebKitTools/Scripts/webkitpy/layout_tests/run_webkit_tests.py:820
> >                                     individual_test_timings)
> Indentation is off by a space.

Fixed.
Comment 5 Ojan Vafai 2010-09-16 14:27:28 PDT
Comment on attachment 67775 [details]
Patch

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

> WebKitTools/Scripts/webkitpy/layout_tests/layout_package/json_results_generator.py:65
> +            pass

don't need the pass anymore.
Comment 6 Kinuko Yasuda 2010-09-16 21:30:42 PDT
Committed r67692: <http://trac.webkit.org/changeset/67692>