WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
175709
bisect-builds doesn't work due to missing requests module
https://bugs.webkit.org/show_bug.cgi?id=175709
Summary
bisect-builds doesn't work due to missing requests module
Ryosuke Niwa
Reported
2017-08-17 21:52:41 PDT
$ ./Tools/Scripts/bisect-builds --help Traceback (most recent call last): File "./Tools/Scripts/bisect-builds", line 33, in <module> import requests ImportError: No module named requests rniwa-tbmbp:webkit2 rniwa$ ./Tools/Scripts/bisect-builds Traceback (most recent call last): File "./Tools/Scripts/bisect-builds", line 33, in <module> import requests ImportError: No module named requests
Attachments
patch to move requests module to auto installed
(2.51 KB, patch)
2017-09-08 12:37 PDT
,
Lucas Forschler
lforschler
: commit-queue-
Details
Formatted Diff
Diff
v2 patch
(2.90 KB, patch)
2017-09-08 14:14 PDT
,
Lucas Forschler
rniwa
: review+
lforschler
: commit-queue-
Details
Formatted Diff
Diff
fix patch to include urllib3
(3.37 KB, patch)
2017-09-11 15:01 PDT
,
Lucas Forschler
no flags
Details
Formatted Diff
Diff
use urllib2 instead of the requests module.
(2.67 KB, patch)
2017-09-11 15:44 PDT
,
Lucas Forschler
no flags
Details
Formatted Diff
Diff
use urllib2 instead of the requests module.
(1.99 KB, patch)
2017-09-11 15:51 PDT
,
Lucas Forschler
rniwa
: review+
lforschler
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2017-08-17 21:53:25 PDT
We need to auto-install requests package in webkitpy/thirdparty/__init__.py, and import it from there.
Radar WebKit Bug Importer
Comment 2
2017-08-17 21:53:49 PDT
<
rdar://problem/33956917
>
Lucas Forschler
Comment 3
2017-09-08 12:37:28 PDT
Created
attachment 320289
[details]
patch to move requests module to auto installed After doing this, the script startup time takes 15 seconds... this is not ideal.
Lucas Forschler
Comment 4
2017-09-08 14:14:55 PDT
Created
attachment 320301
[details]
v2 patch
Lucas Forschler
Comment 5
2017-09-08 14:17:15 PDT
using the get_latest_pypi_ur function in the third party stuff creates about 40+ calls out to pypi, which is very slow. I've updated the patch to manually specify the url, which is much faster, nearly instant.
Ryosuke Niwa
Comment 6
2017-09-08 15:22:56 PDT
Comment on
attachment 320301
[details]
v2 patch View in context:
https://bugs.webkit.org/attachment.cgi?id=320301&action=review
> Tools/Scripts/webkitpy/thirdparty/__init__.py:114 > + "requests-2.18.4/requests")
Wrong indentation. Should be indented by 4 spaces to the right of self._install.
Lucas Forschler
Comment 7
2017-09-08 16:01:10 PDT
Committed revision 221801.
Ryan Haddad
Comment 8
2017-09-09 09:48:53 PDT
(In reply to Lucas Forschler from
comment #7
)
> Committed revision 221801.
This change introduced a webkitpy test failure: [1295/1654] webkitpy.thirdparty.__init___unittest.ThirdpartyTest.test_imports erred: Traceback (most recent call last): File "/Volumes/Data/slave/elcapitan-release-tests-wk2/build/Tools/Scripts/webkitpy/thirdparty/__init___unittest.py", line 66, in test_imports import webkitpy.thirdparty.autoinstalled.requests File "/Volumes/Data/slave/elcapitan-release-tests-wk2/build/Tools/Scripts/webkitpy/thirdparty/autoinstalled/requests/__init__.py", line 43, in <module> import urllib3 ImportError: No module named urllib3
https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Tests%29/builds/4330
Ryan Haddad
Comment 9
2017-09-09 09:58:51 PDT
Reverted
r221801
for reason: This change introduced a webkitpy test failure. Committed
r221825
: <
http://trac.webkit.org/changeset/221825
>
Lucas Forschler
Comment 10
2017-09-11 15:01:19 PDT
Created
attachment 320482
[details]
fix patch to include urllib3
Lucas Forschler
Comment 11
2017-09-11 15:38:37 PDT
The requests module imports urllib3. I don't see an easy way to tell it to use the autoinstalled location. So, this still fails. I'm going to change the bisect-builds tool to use urllib2, which is installed by default. That will make this go away.
Lucas Forschler
Comment 12
2017-09-11 15:44:41 PDT
Created
attachment 320490
[details]
use urllib2 instead of the requests module.
Lucas Forschler
Comment 13
2017-09-11 15:51:04 PDT
Created
attachment 320492
[details]
use urllib2 instead of the requests module.
Lucas Forschler
Comment 14
2017-09-11 16:09:21 PDT
Committed revision 221890.
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