WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
218059
[webkitpy] Use webkitcorepy's autoinstaller for chrome and gecko drivers
https://bugs.webkit.org/show_bug.cgi?id=218059
Summary
[webkitpy] Use webkitcorepy's autoinstaller for chrome and gecko drivers
Jonathan Bedard
Reported
2020-10-21 16:45:13 PDT
Chrome and Gecko distribute their drivers through some non-standard channels. All our autoinstaller code still works, we just aren't getting the archives from PyPi.
Attachments
Patch
(13.72 KB, patch)
2020-10-21 17:09 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(10.89 KB, patch)
2020-10-22 09:26 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(14.50 KB, patch)
2020-10-22 14:33 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-10-21 16:45:27 PDT
<
rdar://problem/70551255
>
Jonathan Bedard
Comment 2
2020-10-21 17:09:24 PDT
Created
attachment 412050
[details]
Patch
Jonathan Bedard
Comment 3
2020-10-22 09:26:12 PDT
Created
attachment 412108
[details]
Patch
Jonathan Bedard
Comment 4
2020-10-22 10:07:30 PDT
Both of these patches work, I'm just not sure which approach I like better. One is more clear that web drivers are not actually pip packages, at the cost of making accessing the web drivers less portable, while the other pretends that web drivers are pip packages in exchange for making them portable.
Aakash Jain
Comment 5
2020-10-22 13:39:44 PDT
Comment on
attachment 412050
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=412050&action=review
> Tools/Scripts/webkitpy/autoinstalled/chromedriver.py:37 > + response = requests.get(self.URL + 'LATEST_RELEASE')
Should we handle the case when requests.get throws an exception?
> Tools/Scripts/webkitpy/autoinstalled/chromedriver.py:54 > + link='{url}{version}/chromedriver_{os}.zip'.format(
How about making it one-liner, like: link = '{}{}/chromedriver_{}.zip'.format(self.URL, version, os)
> Tools/Scripts/webkitpy/autoinstalled/chromedriver.py:56 > + version=str(version),
str might not be required here with format()
Aakash Jain
Comment 6
2020-10-22 13:39:58 PDT
rs=me
Jonathan Bedard
Comment 7
2020-10-22 14:33:58 PDT
Created
attachment 412133
[details]
Patch for landing
EWS
Comment 8
2020-10-22 15:13:14 PDT
Committed
r268896
: <
https://trac.webkit.org/changeset/268896
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 412133
[details]
.
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