WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
176436
Add Live PLT implemented with WebDriver
https://bugs.webkit.org/show_bug.cgi?id=176436
Summary
Add Live PLT implemented with WebDriver
Matthew Stewart
Reported
2017-09-05 18:30:28 PDT
Add Live PLT implemented with WebDriver
Attachments
Patch
(22.62 KB, patch)
2017-09-05 18:42 PDT
,
Matthew Stewart
no flags
Details
Formatted Diff
Diff
Patch
(23.89 KB, patch)
2017-09-07 13:05 PDT
,
Matthew Stewart
no flags
Details
Formatted Diff
Diff
Patch
(23.92 KB, patch)
2017-09-07 19:20 PDT
,
Matthew Stewart
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Matthew Stewart
Comment 1
2017-09-05 18:42:37 PDT
Created
attachment 319968
[details]
Patch
Build Bot
Comment 2
2017-09-05 18:45:34 PDT
Attachment 319968
[details]
did not pass style-queue: ERROR: Tools/Scripts/run-webdriver-plt.py:2: No name 'webdriver_plt' in module 'webkitpy' [pylint/E0611] [5] ERROR: Tools/Scripts/run-webdriver-plt.py:3: No name 'webdriver_plt' in module 'webkitpy' [pylint/E0611] [5] Total errors found: 2 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Stephanie Lewis
Comment 3
2017-09-06 15:56:47 PDT
Comment on
attachment 319968
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319968&action=review
> Tools/Scripts/run-webdriver-plt.py:13 > + parser.add_argument('-n', '--instances', dest='instances', type=int, default=3, help='Test the suite n times in the same browser session')
This backwards from the other plt. Instances is number of times safari is launched
> Tools/Scripts/webkitpy/webdriver_plt/liveplt.py:23 > + self.size = size
I'd create a log message dumping the parameters here. It's useful to go back and look at the defaults when trying to compare two logs.
> Tools/Scripts/webkitpy/webdriver_plt/liveplt.py:90 > + sleep(1)
Ideally you'd use web driver to figure out when the window is maximized. Blanket sleep statements often behave badly when things aren't going as planned.
> Tools/Scripts/webkitpy/webdriver_plt/liveplt.py:116 > + pass # opening new tabs not currently possible
please print a help message here
> Tools/Scripts/webkitpy/webdriver_plt/liveplt.py:133 > + NT_results = driver.execute_script('return performance.getEntriesByType("navigation")[0]') # navigation timing 2
nit probably should have used lower case nt.
> Tools/Scripts/webkitpy/webdriver_plt/suites/social.suite:13 > + ]
pleased add a media suite. ie. youtube flickr
dewei_zhu
Comment 4
2017-09-06 19:21:06 PDT
Comment on
attachment 319968
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=319968&action=review
> Tools/ChangeLog:36 > + * Scripts/webkitpy/webdriver_plt/suites/__init__.py: Added.
This file should not be empty, otherwise, it will be ignored by svn.
> Tools/Scripts/webkitpy/webdriver_plt/liveplt.py:12 > + 'safari': 76, > + 'chrome': 0, > + 'firefox': 37, > + 'stp': 76, > +}
Does those number ever change?
> Tools/Scripts/webkitpy/webdriver_plt/pltresults.py:28 > + self.product *= time
I would prefer using log function to calculate geomean. geomean = (x * y)^(1/2) -> log(geomean) = log((x * y)^(1/2)) -> log(geomean) = (1/2) * (log(x) + log(y)) So we can accumulate log(time) here, and get geomean by apply pow(e, accumulated_value / n)
Matthew Stewart
Comment 5
2017-09-07 13:05:38 PDT
Created
attachment 320164
[details]
Patch
Matthew Stewart
Comment 6
2017-09-07 19:20:00 PDT
Created
attachment 320224
[details]
Patch
WebKit Commit Bot
Comment 7
2017-09-07 19:58:11 PDT
Comment on
attachment 320224
[details]
Patch Clearing flags on attachment: 320224 Committed
r221777
: <
http://trac.webkit.org/changeset/221777
>
WebKit Commit Bot
Comment 8
2017-09-07 19:58:13 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2017-09-27 12:37:51 PDT
<
rdar://problem/34693639
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug