Bug 202995 - [Tools] Add a driver for cog for benchmark_runner.py
Summary: [Tools] Add a driver for cog for benchmark_runner.py
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: Pablo Saavedra
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-15 10:40 PDT by Pablo Saavedra
Modified: 2019-10-16 10:40 PDT (History)
7 users (show)

See Also:


Attachments
patch (3.63 KB, patch)
2019-10-15 10:51 PDT, Pablo Saavedra
no flags Details | Formatted Diff | Diff
patch (3.86 KB, patch)
2019-10-16 00:24 PDT, Pablo Saavedra
no flags Details | Formatted Diff | Diff
patch (3.84 KB, patch)
2019-10-16 04:53 PDT, Pablo Saavedra
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Saavedra 2019-10-15 10:40:32 PDT
SSIA
Comment 1 Pablo Saavedra 2019-10-15 10:51:03 PDT
Created attachment 381000 [details]
patch
Comment 2 Jonathan Bedard 2019-10-15 10:56:48 PDT
Comment on attachment 381000 [details]
patch

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

> Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_cog_driver.py:49
> +        super(CogBrowserDriver, self).launch_url(url, options,

Should be super(CogFdoBrowserDriver, ...)
Comment 3 Pablo Saavedra 2019-10-16 00:20:38 PDT
It sE1003(In reply to Jonathan Bedard from comment #2)
> Comment on attachment 381000 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=381000&action=review
> 
> > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_cog_driver.py:49
> > +        super(CogBrowserDriver, self).launch_url(url, options,
> 
> Should be super(CogFdoBrowserDriver, ...)


pylint is blaming against the usage of super() in the launch_url() function. I explitelly invoked the grandfathers method class to bypass the logic introduced in  the CogBrowserDriver class which is the parent class.


Anyway, for the sake of simplicity, I will rewrite the patch to inherit directly from the LinuxBrowserDriver. This introduces a couple of lines more but still is a simply code and probably less prone to future mistakes.
Comment 4 Pablo Saavedra 2019-10-16 00:24:23 PDT
Created attachment 381060 [details]
patch
Comment 5 Pablo Saavedra 2019-10-16 04:53:17 PDT
Created attachment 381066 [details]
patch
Comment 6 WebKit Commit Bot 2019-10-16 10:26:17 PDT
Comment on attachment 381066 [details]
patch

Clearing flags on attachment: 381066

Committed r251191: <https://trac.webkit.org/changeset/251191>
Comment 7 WebKit Commit Bot 2019-10-16 10:26:19 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2019-10-16 10:40:30 PDT
<rdar://problem/56337507>