Bug 237937 - Add support for chrome-beta and chrome-dev to run-benchmark
Summary: Add support for chrome-beta and chrome-dev to run-benchmark
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: Saam Barati
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-15 19:20 PDT by Saam Barati
Modified: 2022-03-16 11:58 PDT (History)
7 users (show)

See Also:


Attachments
[fast-cq] patch (3.76 KB, patch)
2022-03-15 19:23 PDT, Saam Barati
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Saam Barati 2022-03-15 19:20:14 PDT
...
Comment 1 Saam Barati 2022-03-15 19:23:26 PDT
Created attachment 454787 [details]
[fast-cq] patch
Comment 2 EWS 2022-03-15 19:36:47 PDT
Committed r291325 (248464@main): <https://commits.webkit.org/248464@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454787 [details].
Comment 3 Radar WebKit Bug Importer 2022-03-15 19:37:18 PDT
<rdar://problem/90345926>
Comment 4 dewei_zhu 2022-03-16 11:58:55 PDT
Comment on attachment 454787 [details]
[fast-cq] patch

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

> Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_chrome_driver.py:50
> +def set_binary_location_impl(options, browser_build_path, app_name, process_name):
> +    if not browser_build_path:
> +        return
> +    app_path = os.path.join(browser_build_path, app_name)
> +    binary_path = os.path.join(app_path, "Contents/MacOS", process_name)
> +    options.binary_location = binary_path
> +

It looks like we can just move this to `OSXChromeDriverBase._set_chrome_binary_location`. So that we don't need to repeat it in the derived classes.

> Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_chrome_driver.py:-67
> -        if not browser_build_path:
> -            browser_build_path = '/Applications/'

Could you explain why we want to stop loading it from '/Applications'?
If we move set_binary_location_impl to `OSXChromeDriverBase._set_chrome_binary_location` & if we want to keep this behavior, we just do
if not browser_build_path:
    browser_build_path = '/Applications/'
super(OSXChromeCanaryDriver, self)._set_chrome_binary_location(options, browser_build_path)