New issue
Advanced search Search tips

Issue 670987 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Convert libhttp2 Tools/Scripts/webkitpy/thirdparty to urllib2

Project Member Reported by dglazkov@chromium.org, Dec 4 2016

Issue description

Currently, web platform test sync tooling (sync-wpt) relies on libhttp2 to handle github OAuth. It's not part of the Python standard libraries, so we need to import it from somewhere. At the moment, it's depot_tools/third_party, which is sort of a hack.

Instead, we should just import libhttp2 into Tools/Scripts/webkitpy/thirdparty.
 
libhttp2 was in there via a previous reference script, if we're importing a new library could we use requests instead?
I think that the "requests" would also be OK as well.

It looks like requests should be currently DEPS'd into //third_party/requests/src right now (https://chromium.googlesource.com/chromium/src/+/master/DEPS#486) but only for android; one possible way of getting it would be to change the DEPS file to also get the library for other platforms.

Right now, in general all third party Python libraries for Blink are in webkitpy/thirdparty, so it seems a bit nicer to just add another copy of whichever library we want to use there.
requests would probably be fine, but I'd like to confirm that we can't just easily make the standard urllib/urllib2 work first. I suspect the answer is "no, we can't", but I didn't stare at the code to be sure enough. Can you check and report back?
It looks like urllib2 is already used in webkitpy:
https://cs.chromium.org/search/?q=urllib2+file:third_party/WebKit/Tools/Scripts/webkitpy&sq=package:chromium&type=cs

I can transition our code that uses libhttp2 over to urllib2 for consistency if that sounds like a good plan.
Status: Assigned (was: Unconfirmed)
Sounds like a good plan to me :-)
Summary: Convert libhttp2 Tools/Scripts/webkitpy/thirdparty to urllib2 (was: Import libhttp2 Tools/Scripts/webkitpy/thirdparty)
Status: Fixed (was: Assigned)

Sign in to add a comment