WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
154667
Update twisted version in webkitpy.thirdparty.autoinstalled module.
https://bugs.webkit.org/show_bug.cgi?id=154667
Summary
Update twisted version in webkitpy.thirdparty.autoinstalled module.
dewei_zhu
Reported
2016-02-24 21:24:49 PST
Update twisted version in webkitpy.thirdparty.autoinstalled module.
Attachments
Patch
(1.83 KB, patch)
2016-02-24 21:25 PST
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Patch
(4.37 KB, patch)
2016-03-14 16:35 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Patch for landing
(4.44 KB, patch)
2016-03-14 16:48 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Patch
(4.46 KB, patch)
2016-03-14 18:38 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Patch
(4.04 KB, patch)
2016-10-10 19:27 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Patch
(6.11 KB, patch)
2016-10-31 16:02 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Patch for landing
(6.09 KB, patch)
2016-10-31 17:44 PDT
,
dewei_zhu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(6)
View All
Add attachment
proposed patch, testcase, etc.
dewei_zhu
Comment 1
2016-02-24 21:25:11 PST
Created
attachment 272171
[details]
Patch
WebKit Commit Bot
Comment 2
2016-02-24 21:26:18 PST
Attachment 272171
[details]
did not pass style-queue: ERROR: Tools/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
dewei_zhu
Comment 3
2016-02-24 21:30:35 PST
Comment on
attachment 272171
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=272171&action=review
> Tools/ChangeLog:11 > +
As far as I know, only benchmark runner uses twisted module in webkitpy module.
Alexey Proskuryakov
Comment 4
2016-02-24 22:13:23 PST
Comment on
attachment 272171
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=272171&action=review
>> Tools/ChangeLog:11 >> + > > As far as I know, only benchmark runner uses twisted module in webkitpy module.
How can this be confirmed?
Csaba Osztrogonác
Comment 5
2016-02-27 05:26:06 PST
Comment on
attachment 272171
[details]
Patch Buildbot master uses an ancient buildbot version, which needs this old twisted. I added exactly this version to autoinstall to be able to run buildbot master.cfg unittest out of the box.
Csaba Osztrogonác
Comment 6
2016-02-27 06:19:02 PST
See
https://bugs.webkit.org/show_bug.cgi?id=142219
for details.
Csaba Osztrogonác
Comment 7
2016-02-29 03:06:48 PST
Additionally this change is incorrect, because after this change autoinstaller still installs the old twisted version: $ Tools/Scripts/test-webkitpy Suppressing most webkitpy logging while running unit tests. Skipping tests in the following modules or packages because they are really, really, slow: webkitpy.common.checkout.scm.scm_unittest (
https://bugs.webkit.org/show_bug.cgi?id=31818
; use --all to include) Checking autoinstalled packages ...Auto-installing package: jinja2 Auto-installing package: sqlalchemy Auto-installing package: twisted Auto-installing package: buildbot Auto-installing package: coverage Auto-installing package: eliza.py Auto-installing package: mechanize Auto-installing package: pep8.py Auto-installing package: logilab.common Auto-installing package: logilab.astng Auto-installing package: pylint Auto-installing package: twisted $ cat Tools/Scripts/webkitpy/thirdparty/autoinstalled/twisted/.twisted.url
https://pypi.python.org/packages/source/T/Twisted/Twisted-12.1.0.tar.bz2#md5=f396f1d6f5321e869c2f89b2196a9eb5
The root of this problem is
https://trac.webkit.org/changeset/187925
which took no account of already installed twisted by _install_buildbot
dewei_zhu
Comment 8
2016-03-14 16:35:56 PDT
Created
attachment 274048
[details]
Patch
WebKit Commit Bot
Comment 9
2016-03-14 16:37:23 PDT
Attachment 274048
[details]
did not pass style-queue: ERROR: Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:12: No name 'new_twisted' in module 'webkitpy.thirdparty.autoinstalled' [pylint/E0611] [5] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 10
2016-03-14 16:40:08 PDT
Comment on
attachment 274048
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=274048&action=review
> Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:-32 > - reactor.stop()
You should explain this change in the change log.
dewei_zhu
Comment 11
2016-03-14 16:48:03 PDT
Created
attachment 274052
[details]
Patch for landing
Simon Fraser (smfr)
Comment 12
2016-03-14 17:04:41 PDT
Comment on
attachment 274052
[details]
Patch for landing View in context:
https://bugs.webkit.org/attachment.cgi?id=274052&action=review
> Tools/ChangeLog:8 > + Add lasted twisted to webkitpy.thirdparty.autoinstalled.
lasted? latest?
> Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:12 > + from webkitpy.thirdparty.autoinstalled.new_twisted import twisted
Using "new" in code is a mistake. In a year or two, it's no longer new and the read doesn't really know what changed. If it has a version number, say that explicitly.
> Tools/Scripts/webkitpy/thirdparty/__init__.py:160 > + def _install_new_twisted(self):
Don't say "new".
dewei_zhu
Comment 13
2016-03-14 18:38:35 PDT
Created
attachment 274062
[details]
Patch
WebKit Commit Bot
Comment 14
2016-03-14 18:40:58 PDT
Attachment 274062
[details]
did not pass style-queue: ERROR: Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py:12: No name 'twisted_15_5_0' in module 'webkitpy.thirdparty.autoinstalled' [pylint/E0611] [5] Total errors found: 1 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alexey Proskuryakov
Comment 15
2016-03-16 20:28:46 PDT
Comment on
attachment 274062
[details]
Patch Clearing r+ flag, since this has been landed and rolled out. Additionally, it's not clear from bug comments if Ossy's concerns have been addressed.
dewei_zhu
Comment 16
2016-10-10 19:27:59 PDT
Created
attachment 291211
[details]
Patch
Saam Barati
Comment 17
2016-10-11 12:02:08 PDT
***
Bug 163261
has been marked as a duplicate of this bug. ***
dewei_zhu
Comment 18
2016-10-24 19:05:29 PDT
(In reply to
comment #6
)
> See
https://bugs.webkit.org/show_bug.cgi?id=142219
for details.
Updated the patch. Could you take a look? Thanks.
Carlos Alberto Lopez Perez
Comment 19
2016-10-25 15:54:25 PDT
I have tested this. It works fine on the GTK+ platform. But I see that it won't auto-install twisted 15.0 or use it if the system already has python-twisted installed. If you want to ensure this script always uses twisted 15.0 you can try something like: --- a/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py +++ b/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/twisted_http_server.py @@ -5,11 +5,8 @@ import logging import os import sys -try: - import twisted -except ImportError: - sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../..'))) - from webkitpy.thirdparty.autoinstalled.twisted import twisted +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../../..'))) +from webkitpy.thirdparty.autoinstalled.twisted_15_5_0 import twisted from twisted.web import static, server from twisted.web.resource import Resource By the way.. what is the context for requiring twisted 15.0 here? Is it necessary for some run-benchmark test?
Ryosuke Niwa
Comment 20
2016-10-29 14:19:29 PDT
(In reply to
comment #19
) >
> By the way.. what is the context for requiring twisted 15.0 here? > Is it necessary for some run-benchmark test?
Yeah, older versions of twisted has a bug whereby which some benchmark page fails to load.
dewei_zhu
Comment 21
2016-10-29 15:25:52 PDT
(In reply to
comment #19
)
> I have tested this. It works fine on the GTK+ platform. > > But I see that it won't auto-install twisted 15.0 or use it if the system > already has python-twisted installed. > > If you want to ensure this script always uses twisted 15.0 you can try > something like: > > > --- > a/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/ > twisted_http_server.py > +++ > b/Tools/Scripts/webkitpy/benchmark_runner/http_server_driver/http_server/ > twisted_http_server.py > @@ -5,11 +5,8 @@ import logging > import os > import sys > > -try: > - import twisted > -except ImportError: > - > sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path. > abspath(__file__)), '../../../..'))) > - from webkitpy.thirdparty.autoinstalled.twisted import twisted > +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path. > abspath(__file__)), '../../../..'))) > +from webkitpy.thirdparty.autoinstalled.twisted_15_5_0 import twisted > > from twisted.web import static, server > from twisted.web.resource import Resource
That sounds good to me. I think it's even better to check the version of twisted, if it is a version earlier than 15.5.0(this version is working for sure), we should always use autoinstalled module in webkitpy.thirdparty.
> > > > > By the way.. what is the context for requiring twisted 15.0 here? > Is it necessary for some run-benchmark test?
dewei_zhu
Comment 22
2016-10-31 16:02:49 PDT
Created
attachment 293481
[details]
Patch
dewei_zhu
Comment 23
2016-10-31 17:44:34 PDT
Created
attachment 293504
[details]
Patch for landing
WebKit Commit Bot
Comment 24
2016-10-31 18:20:54 PDT
Comment on
attachment 293504
[details]
Patch for landing Clearing flags on attachment: 293504 Committed
r208205
: <
http://trac.webkit.org/changeset/208205
>
WebKit Commit Bot
Comment 25
2016-10-31 18:21:00 PDT
All reviewed patches have been landed. Closing bug.
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