Bug 193352

Summary: webkitpy: Print abbreviated baseline search path that includes only folders that exist
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, commit-queue, ews-watchlist, glenn, lforschler, ryanhaddad, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing none

Description Jonathan Bedard 2019-01-11 09:06:11 PST
Maciej mentioned this idea in passing, I think it's a good one given how long our baseline search paths have gotten (and the fact the impending device-specific expectations will likely make this problem worse).
Comment 1 Radar WebKit Bug Importer 2019-01-11 09:06:33 PST
<rdar://problem/47210736>
Comment 2 Jonathan Bedard 2019-01-11 09:10:51 PST
Created attachment 358901 [details]
Patch
Comment 3 Ryan Haddad 2019-01-11 09:33:53 PST
Comment on attachment 358901 [details]
Patch

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

> Tools/ChangeLog:3
> +        webkitpy: Print abbreviated baseline search path that includes only folders that exists

Typo: Should be 'exist', not 'exists'

> Tools/Scripts/webkitpy/layout_tests/views/printing.py:85
> +        full_baseline_search_paths = self._port.baseline_search_path()

For consistency, I think this should be 'full_baseline_search_path'.

> Tools/Scripts/webkitpy/layout_tests/views/printing.py:88
> +        self._print_default('Verbose baseline search paths: {} -> generic'.format(' -> '.join(normalize_baseline(full_baseline_search_paths))))

Again, 'path' not 'paths'.
Comment 4 Jonathan Bedard 2019-01-11 09:40:19 PST
Created attachment 358903 [details]
Patch
Comment 5 Jonathan Bedard 2019-01-11 09:49:48 PST
Created attachment 358904 [details]
Patch
Comment 6 Lucas Forschler 2019-01-11 10:29:14 PST
Comment on attachment 358904 [details]
Patch

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

> Tools/Scripts/webkitpy/layout_tests/views/printing.py:86
> +        normalize_baseline = lambda basline_search_paths: [fs.relpath(x, self._port.layout_tests_dir()).replace("../", "") for x in basline_search_paths]

typo: basline
Comment 7 Jonathan Bedard 2019-01-11 10:45:06 PST
Created attachment 358909 [details]
Patch for landing
Comment 8 Jonathan Bedard 2019-01-11 14:25:35 PST
Committed r239874: <https://trac.webkit.org/changeset/239874>