Bug 187353 - [webkitpy] run-web-platform-tests should allow specifying custom WPT metadata directories
Summary: [webkitpy] run-web-platform-tests should allow specifying custom WPT metadata...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Zan Dobersek
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-07-05 11:51 PDT by Zan Dobersek
Modified: 2018-07-15 23:45 PDT (History)
9 users (show)

See Also:


Attachments
Patch (7.16 KB, patch)
2018-07-05 12:19 PDT, Zan Dobersek
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews206 for win-future (12.90 MB, application/zip)
2018-07-05 14:01 PDT, EWS Watchlist
no flags Details
Patch for landing (8.29 KB, patch)
2018-07-15 23:43 PDT, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2018-07-05 11:51:12 PDT
[webkitpy] run-web-platform-tests should allow specifying custom WPT metadata directories
Comment 1 Zan Dobersek 2018-07-05 12:19:39 PDT
Created attachment 344351 [details]
Patch
Comment 2 Zan Dobersek 2018-07-05 12:21:13 PDT
Comment on attachment 344351 [details]
Patch

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

> Tools/ChangeLog:12
> +        When using run-web-platform-tests, allow specifying custom WPT metadata
> +        directory. This will avoid generating such metadata-filled directory
> +        from the port-specific JSON expectations file, and instead will search
> +        for the metadata files and the include manifest inside the specified
> +        directory. The MANIFEST.json file will also be generated under there.

For reference, this is the metadata repository equivalent to the current JSON expectations file for the GTK+ port:
https://github.com/zdobersek/webkit-wpt-metadata
Comment 3 EWS Watchlist 2018-07-05 14:01:36 PDT
Comment on attachment 344351 [details]
Patch

Attachment 344351 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/8448173

New failing tests:
http/tests/preload/onload_event.html
http/tests/security/video-poster-cross-origin-crash2.html
Comment 4 EWS Watchlist 2018-07-05 14:01:48 PDT
Created attachment 344363 [details]
Archive of layout-test-results from ews206 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews206  Port: win-future  Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment 5 Zan Dobersek 2018-07-11 23:58:47 PDT
Ping, reviewers?
Comment 6 youenn fablet 2018-07-12 10:05:14 PDT
Comment on attachment 344351 [details]
Patch

LGTM.
Generating this manifest.json takes time IIRC so we might think of the best way to cache/checkin/update this file.

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

> Tools/Scripts/webkitpy/w3c/wpt_runner.py:200
> +                _log.error("Existent wpt metadata directory has to be specified")

s/Existent/Existing/
This test could probably be done in WPTRunner __init__

> Tools/Scripts/webkitpy/w3c/wpt_runner.py:203
> +            include_manifest_path = self._host.filesystem.join(metadata_path, self._port.name(), "TestManifest.ini")

Maybe add a helper routine to create the manifest path from a root metatada path?
Comment 7 Zan Dobersek 2018-07-15 23:37:36 PDT
Comment on attachment 344351 [details]
Patch

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

>> Tools/Scripts/webkitpy/w3c/wpt_runner.py:200
>> +                _log.error("Existent wpt metadata directory has to be specified")
> 
> s/Existent/Existing/
> This test could probably be done in WPTRunner __init__

It could be done, but it would still have to be replicated here just to enforce the early False return.

>> Tools/Scripts/webkitpy/w3c/wpt_runner.py:203
>> +            include_manifest_path = self._host.filesystem.join(metadata_path, self._port.name(), "TestManifest.ini")
> 
> Maybe add a helper routine to create the manifest path from a root metatada path?

OK.
Comment 8 Zan Dobersek 2018-07-15 23:38:36 PDT
(In reply to youenn fablet from comment #6)
> Comment on attachment 344351 [details]
> Patch
> 
> LGTM.
> Generating this manifest.json takes time IIRC so we might think of the best
> way to cache/checkin/update this file.
> 

It's time-expensive the first time, but it only gets updated afterwards, which is fast enough IMO.
Comment 9 Zan Dobersek 2018-07-15 23:43:00 PDT
Created attachment 345080 [details]
Patch for landing
Comment 10 Zan Dobersek 2018-07-15 23:43:47 PDT
Comment on attachment 345080 [details]
Patch for landing

Clearing flags on attachment: 345080

Committed r233843: <https://trac.webkit.org/changeset/233843>
Comment 11 Zan Dobersek 2018-07-15 23:43:51 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Radar WebKit Bug Importer 2018-07-15 23:45:23 PDT
<rdar://problem/42228944>