Bug 193352 - webkitpy: Print abbreviated baseline search path that includes only folders that exist
Summary: webkitpy: Print abbreviated baseline search path that includes only folders t...
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: 2019-01-11 09:06 PST by Jonathan Bedard
Modified: 2019-01-11 14:26 PST (History)
8 users (show)

See Also:


Attachments
Patch (3.36 KB, patch)
2019-01-11 09:10 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (3.36 KB, patch)
2019-01-11 09:40 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch (3.35 KB, patch)
2019-01-11 09:49 PST, Jonathan Bedard
no flags Details | Formatted Diff | Diff
Patch for landing (3.35 KB, patch)
2019-01-11 10:45 PST, 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 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>