Bug 188869 - API tests should output json results
Summary: API tests should output json results
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jonathan Bedard
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-08-22 16:39 PDT by Jonathan Bedard
Modified: 2019-12-24 04:23 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.56 KB, patch)
2018-08-22 16:47 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (5.29 KB, patch)
2018-08-22 17:11 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (5.55 KB, patch)
2018-08-23 14:24 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (5.53 KB, patch)
2018-08-23 14:50 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch for landing (5.50 KB, patch)
2018-08-23 15:12 PDT, Jonathan Bedard
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Bedard 2018-08-22 16:39:38 PDT
Requested by Aakash Jain for adding API tests to EWS.
Comment 1 Jonathan Bedard 2018-08-22 16:39:49 PDT
<rdar://problem/43615652>
Comment 2 Jonathan Bedard 2018-08-22 16:47:48 PDT
Created attachment 347876 [details]
Patch
Comment 3 Jonathan Bedard 2018-08-22 17:11:50 PDT
Created attachment 347879 [details]
Patch
Comment 4 Aakash Jain 2018-08-22 17:36:28 PDT
Comment on attachment 347879 [details]
Patch

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

Thanks for the patch. Looks good, one comment below.

> Tools/Scripts/webkitpy/api_tests/manager.py:208
> +                result_dictionary[test] = {'status': 'Skipped', 'output': None}

Do we need to add skipped tests in the json file? EWS doesn't need this, but I understand some other tools might use this information.

If so, we should consider dividing the tests by keys. e.g.:

{
    "skipped": [ {"test_name1": <test_log1>}, {"test_name2": <test_log2>} ],
    "failed": [ {"test_name3": <test_log3>} ],
    "crashed": [ {"test_name4": <test_log4>} ],
    "timedout": [ {"test_name5": <test_log5>} ]
}
Comment 5 Jonathan Bedard 2018-08-23 08:45:20 PDT
Comment on attachment 347879 [details]
Patch

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

>> Tools/Scripts/webkitpy/api_tests/manager.py:208
>> +                result_dictionary[test] = {'status': 'Skipped', 'output': None}
> 
> Do we need to add skipped tests in the json file? EWS doesn't need this, but I understand some other tools might use this information.
> 
> If so, we should consider dividing the tests by keys. e.g.:
> 
> {
>     "skipped": [ {"test_name1": <test_log1>}, {"test_name2": <test_log2>} ],
>     "failed": [ {"test_name3": <test_log3>} ],
>     "crashed": [ {"test_name4": <test_log4>} ],
>     "timedout": [ {"test_name5": <test_log5>} ]
> }

We do not, but, for API tests, 'SKIPPED' does not mean 'DISABLED', it means that a signal was received forcing the program to exit early. In practice, this means that EWS should never see SKIPPED tests and if it did, something has gone terribly wrong.
Comment 6 Jonathan Bedard 2018-08-23 14:24:06 PDT
Created attachment 347952 [details]
Patch
Comment 7 Jonathan Bedard 2018-08-23 14:50:08 PDT
Created attachment 347956 [details]
Patch
Comment 8 Jonathan Bedard 2018-08-23 15:12:25 PDT
Created attachment 347960 [details]
Patch for landing
Comment 9 WebKit Commit Bot 2018-08-23 15:50:58 PDT
Comment on attachment 347960 [details]
Patch for landing

Clearing flags on attachment: 347960

Committed r235252: <https://trac.webkit.org/changeset/235252>
Comment 10 WebKit Commit Bot 2018-08-23 15:51:00 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2018-08-23 15:51:26 PDT
<rdar://problem/43662254>