Merge lp:~jml/launchpad/twisted-services into lp:launchpad
- twisted-services
- Merge into devel
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Approved by: | Jonathan Lange |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~jml/launchpad/twisted-services |
Merge into: | lp:launchpad |
Diff against target: |
353 lines (+46/-45) 17 files modified
cronscripts/supermirror-pull.py (+2/-2) lib/lp/buildmaster/manager.py (+2/-1) lib/lp/codehosting/codeimport/tests/test_workermonitor.py (+5/-5) lib/lp/codehosting/codeimport/workermonitor.py (+4/-4) lib/lp/codehosting/puller/scheduler.py (+3/-3) lib/lp/codehosting/puller/tests/test_scheduler.py (+8/-8) lib/lp/codehosting/sftp.py (+2/-2) lib/lp/codehosting/sshserver/accesslog.py (+1/-1) lib/lp/codehosting/sshserver/service.py (+2/-3) lib/lp/codehosting/sshserver/tests/test_auth.py (+2/-2) lib/lp/codehosting/vfs/transport.py (+2/-1) lib/lp/services/job/runner.py (+3/-3) lib/lp/services/twistedsupport/tests/test_loggingsupport.py (+3/-3) lib/lp/services/twistedsupport/tests/test_processmonitor.py (+3/-3) lib/lp/services/twistedsupport/tests/test_task.py (+1/-1) lib/lp/services/twistedsupport/tests/test_twistedsupport.py (+2/-2) scripts/code-import-worker-monitor.py (+1/-1) |
To merge this branch: | bzr merge lp:~jml/launchpad/twisted-services |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+21716@code.launchpad.net |
Commit message
Move canonical.
Description of the change
This patch moves canonical.
It cleans up some flakes along the way and orders imports correctly.
To post a comment you must log in.
Revision history for this message
Abel Deuring (adeuring) : | # |
review:
Approve
(code)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'cronscripts/supermirror-pull.py' | |||
2 | --- cronscripts/supermirror-pull.py 2010-02-24 04:24:01 +0000 | |||
3 | +++ cronscripts/supermirror-pull.py 2010-03-19 10:48:30 +0000 | |||
4 | @@ -11,10 +11,10 @@ | |||
5 | 11 | from twisted.internet import defer, reactor | 11 | from twisted.internet import defer, reactor |
6 | 12 | from twisted.python import log as tplog | 12 | from twisted.python import log as tplog |
7 | 13 | 13 | ||
8 | 14 | from lp.codehosting.puller import mirror, scheduler | ||
9 | 15 | from canonical.config import config | 14 | from canonical.config import config |
10 | 16 | from canonical.launchpad.scripts import logger_options | 15 | from canonical.launchpad.scripts import logger_options |
12 | 17 | from canonical.twistedsupport.loggingsupport import ( | 16 | from lp.codehosting.puller import mirror, scheduler |
13 | 17 | from lp.services.twistedsupport.loggingsupport import ( | ||
14 | 18 | LoggingProxy, set_up_logging_for_script) | 18 | LoggingProxy, set_up_logging_for_script) |
15 | 19 | 19 | ||
16 | 20 | def clean_shutdown(ignored): | 20 | def clean_shutdown(ignored): |
17 | 21 | 21 | ||
18 | === modified file 'lib/lp/buildmaster/manager.py' | |||
19 | --- lib/lp/buildmaster/manager.py 2010-03-04 16:12:33 +0000 | |||
20 | +++ lib/lp/buildmaster/manager.py 2010-03-19 10:48:30 +0000 | |||
21 | @@ -30,8 +30,9 @@ | |||
22 | 30 | from canonical.config import config | 30 | from canonical.config import config |
23 | 31 | from canonical.launchpad.webapp import urlappend | 31 | from canonical.launchpad.webapp import urlappend |
24 | 32 | from canonical.librarian.db import write_transaction | 32 | from canonical.librarian.db import write_transaction |
25 | 33 | from canonical.twistedsupport.processmonitor import run_process_with_timeout | ||
26 | 34 | from lp.buildmaster.interfaces.buildbase import BUILDD_MANAGER_LOG_NAME | 33 | from lp.buildmaster.interfaces.buildbase import BUILDD_MANAGER_LOG_NAME |
27 | 34 | from lp.services.twistedsupport.processmonitor import run_process_with_timeout | ||
28 | 35 | |||
29 | 35 | 36 | ||
30 | 36 | buildd_success_result_map = { | 37 | buildd_success_result_map = { |
31 | 37 | 'ensurepresent': True, | 38 | 'ensurepresent': True, |
32 | 38 | 39 | ||
33 | === modified file 'lib/lp/codehosting/codeimport/tests/test_workermonitor.py' | |||
34 | --- lib/lp/codehosting/codeimport/tests/test_workermonitor.py 2010-03-14 10:38:48 +0000 | |||
35 | +++ lib/lp/codehosting/codeimport/tests/test_workermonitor.py 2010-03-19 10:48:30 +0000 | |||
36 | @@ -18,8 +18,8 @@ | |||
37 | 18 | from bzrlib.branch import Branch | 18 | from bzrlib.branch import Branch |
38 | 19 | from bzrlib.tests import TestCase as BzrTestCase | 19 | from bzrlib.tests import TestCase as BzrTestCase |
39 | 20 | 20 | ||
42 | 21 | from twisted.internet import defer, error, protocol, reactor, task | 21 | from twisted.internet import defer, error, protocol, reactor |
43 | 22 | from twisted.python import failure, log | 22 | from twisted.python import log |
44 | 23 | from twisted.trial.unittest import TestCase as TrialTestCase | 23 | from twisted.trial.unittest import TestCase as TrialTestCase |
45 | 24 | from twisted.web import xmlrpc | 24 | from twisted.web import xmlrpc |
46 | 25 | 25 | ||
47 | @@ -32,9 +32,6 @@ | |||
48 | 32 | from canonical.launchpad.xmlrpc.faults import NoSuchCodeImportJob | 32 | from canonical.launchpad.xmlrpc.faults import NoSuchCodeImportJob |
49 | 33 | from canonical.testing.layers import ( | 33 | from canonical.testing.layers import ( |
50 | 34 | TwistedAppServerLayer, TwistedLaunchpadZopelessLayer, TwistedLayer) | 34 | TwistedAppServerLayer, TwistedLaunchpadZopelessLayer, TwistedLayer) |
51 | 35 | from canonical.twistedsupport import suppress_stderr | ||
52 | 36 | from canonical.twistedsupport.tests.test_processmonitor import ( | ||
53 | 37 | makeFailure, ProcessTestsMixin) | ||
54 | 38 | 35 | ||
55 | 39 | from lp.code.enums import ( | 36 | from lp.code.enums import ( |
56 | 40 | CodeImportResultStatus, CodeImportReviewStatus, RevisionControlSystems) | 37 | CodeImportResultStatus, CodeImportReviewStatus, RevisionControlSystems) |
57 | @@ -52,6 +49,9 @@ | |||
58 | 52 | CVSServer, GitServer, MercurialServer, SubversionServer) | 49 | CVSServer, GitServer, MercurialServer, SubversionServer) |
59 | 53 | from lp.codehosting.codeimport.tests.test_worker import ( | 50 | from lp.codehosting.codeimport.tests.test_worker import ( |
60 | 54 | clean_up_default_stores_for_import) | 51 | clean_up_default_stores_for_import) |
61 | 52 | from lp.services.twistedsupport import suppress_stderr | ||
62 | 53 | from lp.services.twistedsupport.tests.test_processmonitor import ( | ||
63 | 54 | makeFailure, ProcessTestsMixin) | ||
64 | 55 | from lp.testing import login, logout, TestCase | 55 | from lp.testing import login, logout, TestCase |
65 | 56 | from lp.testing.factory import LaunchpadObjectFactory | 56 | from lp.testing.factory import LaunchpadObjectFactory |
66 | 57 | 57 | ||
67 | 58 | 58 | ||
68 | === modified file 'lib/lp/codehosting/codeimport/workermonitor.py' | |||
69 | --- lib/lp/codehosting/codeimport/workermonitor.py 2010-03-11 23:21:41 +0000 | |||
70 | +++ lib/lp/codehosting/codeimport/workermonitor.py 2010-03-19 10:48:30 +0000 | |||
71 | @@ -21,12 +21,12 @@ | |||
72 | 21 | from canonical.config import config | 21 | from canonical.config import config |
73 | 22 | from canonical.launchpad.xmlrpc.faults import NoSuchCodeImportJob | 22 | from canonical.launchpad.xmlrpc.faults import NoSuchCodeImportJob |
74 | 23 | from canonical.librarian.interfaces import IFileUploadClient | 23 | from canonical.librarian.interfaces import IFileUploadClient |
76 | 24 | from canonical.twistedsupport.loggingsupport import ( | 24 | from lp.code.enums import CodeImportResultStatus |
77 | 25 | from lp.codehosting.codeimport.worker import CodeImportWorkerExitCode | ||
78 | 26 | from lp.services.twistedsupport.loggingsupport import ( | ||
79 | 25 | log_oops_from_failure) | 27 | log_oops_from_failure) |
81 | 26 | from canonical.twistedsupport.processmonitor import ( | 28 | from lp.services.twistedsupport.processmonitor import ( |
82 | 27 | ProcessMonitorProtocolWithTimeout) | 29 | ProcessMonitorProtocolWithTimeout) |
83 | 28 | from lp.code.enums import CodeImportResultStatus | ||
84 | 29 | from lp.codehosting.codeimport.worker import CodeImportWorkerExitCode | ||
85 | 30 | 30 | ||
86 | 31 | 31 | ||
87 | 32 | class CodeImportWorkerMonitorProtocol(ProcessMonitorProtocolWithTimeout): | 32 | class CodeImportWorkerMonitorProtocol(ProcessMonitorProtocolWithTimeout): |
88 | 33 | 33 | ||
89 | === modified file 'lib/lp/codehosting/puller/scheduler.py' | |||
90 | --- lib/lp/codehosting/puller/scheduler.py 2010-02-24 04:24:01 +0000 | |||
91 | +++ lib/lp/codehosting/puller/scheduler.py 2010-03-19 10:48:30 +0000 | |||
92 | @@ -24,16 +24,16 @@ | |||
93 | 24 | 24 | ||
94 | 25 | import canonical | 25 | import canonical |
95 | 26 | from canonical.cachedproperty import cachedproperty | 26 | from canonical.cachedproperty import cachedproperty |
96 | 27 | from canonical.twistedsupport.task import ( | ||
97 | 28 | ParallelLimitedTaskConsumer, PollingTaskSource) | ||
98 | 29 | from lp.codehosting.puller.worker import ( | 27 | from lp.codehosting.puller.worker import ( |
99 | 30 | get_canonical_url_for_branch_name) | 28 | get_canonical_url_for_branch_name) |
100 | 31 | from lp.codehosting.puller import get_lock_id_for_branch_id | 29 | from lp.codehosting.puller import get_lock_id_for_branch_id |
101 | 32 | from canonical.config import config | 30 | from canonical.config import config |
102 | 33 | from canonical.launchpad.webapp import errorlog | 31 | from canonical.launchpad.webapp import errorlog |
103 | 34 | from canonical.launchpad.xmlrpc import faults | 32 | from canonical.launchpad.xmlrpc import faults |
105 | 35 | from canonical.twistedsupport.processmonitor import ( | 33 | from lp.services.twistedsupport.processmonitor import ( |
106 | 36 | ProcessMonitorProtocolWithTimeout) | 34 | ProcessMonitorProtocolWithTimeout) |
107 | 35 | from lp.services.twistedsupport.task import ( | ||
108 | 36 | ParallelLimitedTaskConsumer, PollingTaskSource) | ||
109 | 37 | 37 | ||
110 | 38 | 38 | ||
111 | 39 | class BadMessage(Exception): | 39 | class BadMessage(Exception): |
112 | 40 | 40 | ||
113 | === modified file 'lib/lp/codehosting/puller/tests/test_scheduler.py' | |||
114 | --- lib/lp/codehosting/puller/tests/test_scheduler.py 2010-03-04 20:14:46 +0000 | |||
115 | +++ lib/lp/codehosting/puller/tests/test_scheduler.py 2010-03-19 10:48:30 +0000 | |||
116 | @@ -16,27 +16,27 @@ | |||
117 | 16 | from bzrlib.branch import Branch | 16 | from bzrlib.branch import Branch |
118 | 17 | from bzrlib.bzrdir import BzrDir | 17 | from bzrlib.bzrdir import BzrDir |
119 | 18 | 18 | ||
121 | 19 | from twisted.internet import defer, error, reactor, task | 19 | from twisted.internet import defer, error, reactor |
122 | 20 | from twisted.protocols.basic import NetstringParseError | 20 | from twisted.protocols.basic import NetstringParseError |
123 | 21 | from twisted.python import failure | 21 | from twisted.python import failure |
124 | 22 | from twisted.trial.unittest import TestCase as TrialTestCase | 22 | from twisted.trial.unittest import TestCase as TrialTestCase |
125 | 23 | 23 | ||
126 | 24 | from zope.component import getUtility | 24 | from zope.component import getUtility |
127 | 25 | 25 | ||
128 | 26 | from canonical.config import config | ||
129 | 27 | from canonical.launchpad.webapp import errorlog | ||
130 | 28 | from canonical.launchpad.xmlrpc import faults | ||
131 | 29 | from canonical.testing import ( | ||
132 | 30 | reset_logging, TwistedLayer, TwistedAppServerLayer) | ||
133 | 26 | from lp.codehosting.puller import get_lock_id_for_branch_id, scheduler | 31 | from lp.codehosting.puller import get_lock_id_for_branch_id, scheduler |
134 | 27 | from lp.codehosting.puller.tests import PullerBranchTestCase | 32 | from lp.codehosting.puller.tests import PullerBranchTestCase |
135 | 28 | from lp.codehosting.puller.worker import ( | 33 | from lp.codehosting.puller.worker import ( |
136 | 29 | get_canonical_url_for_branch_name) | 34 | get_canonical_url_for_branch_name) |
137 | 30 | from canonical.config import config | ||
138 | 31 | from lp.code.enums import BranchType | 35 | from lp.code.enums import BranchType |
139 | 32 | from lp.code.interfaces.branchlookup import IBranchLookup | 36 | from lp.code.interfaces.branchlookup import IBranchLookup |
140 | 37 | from lp.services.twistedsupport.tests.test_processmonitor import ( | ||
141 | 38 | makeFailure, suppress_stderr, ProcessTestsMixin) | ||
142 | 33 | from lp.testing.factory import ObjectFactory | 39 | from lp.testing.factory import ObjectFactory |
143 | 34 | from canonical.launchpad.webapp import errorlog | ||
144 | 35 | from canonical.launchpad.xmlrpc import faults | ||
145 | 36 | from canonical.testing import ( | ||
146 | 37 | reset_logging, TwistedLayer, TwistedAppServerLayer) | ||
147 | 38 | from canonical.twistedsupport.tests.test_processmonitor import ( | ||
148 | 39 | makeFailure, suppress_stderr, ProcessTestsMixin) | ||
149 | 40 | 40 | ||
150 | 41 | 41 | ||
151 | 42 | class FakePullerEndpointProxy: | 42 | class FakePullerEndpointProxy: |
152 | 43 | 43 | ||
153 | === modified file 'lib/lp/codehosting/sftp.py' | |||
154 | --- lib/lp/codehosting/sftp.py 2010-01-20 20:51:48 +0000 | |||
155 | +++ lib/lp/codehosting/sftp.py 2010-03-19 10:48:30 +0000 | |||
156 | @@ -14,7 +14,7 @@ | |||
157 | 14 | 14 | ||
158 | 15 | __metaclass__ = type | 15 | __metaclass__ = type |
159 | 16 | __all__ = [ | 16 | __all__ = [ |
161 | 17 | 'AvatarToSFTPAdapter', | 17 | 'avatar_to_sftp_server', |
162 | 18 | 'FileTransferServer', | 18 | 'FileTransferServer', |
163 | 19 | 'TransportSFTPServer', | 19 | 'TransportSFTPServer', |
164 | 20 | ] | 20 | ] |
165 | @@ -40,7 +40,7 @@ | |||
166 | 40 | from lp.codehosting.vfs import AsyncLaunchpadTransport, LaunchpadServer | 40 | from lp.codehosting.vfs import AsyncLaunchpadTransport, LaunchpadServer |
167 | 41 | from lp.codehosting.sshserver import accesslog | 41 | from lp.codehosting.sshserver import accesslog |
168 | 42 | from canonical.config import config | 42 | from canonical.config import config |
170 | 43 | from canonical.twistedsupport import gatherResults | 43 | from lp.services.twistedsupport import gatherResults |
171 | 44 | 44 | ||
172 | 45 | 45 | ||
173 | 46 | class FileIsADirectory(bzr_errors.PathError): | 46 | class FileIsADirectory(bzr_errors.PathError): |
174 | 47 | 47 | ||
175 | === modified file 'lib/lp/codehosting/sshserver/accesslog.py' | |||
176 | --- lib/lp/codehosting/sshserver/accesslog.py 2009-06-25 04:06:00 +0000 | |||
177 | +++ lib/lp/codehosting/sshserver/accesslog.py 2010-03-19 10:48:30 +0000 | |||
178 | @@ -29,7 +29,7 @@ | |||
179 | 29 | 29 | ||
180 | 30 | from canonical.config import config | 30 | from canonical.config import config |
181 | 31 | from canonical.launchpad.scripts import WatchedFileHandler | 31 | from canonical.launchpad.scripts import WatchedFileHandler |
183 | 32 | from canonical.twistedsupport.loggingsupport import set_up_oops_reporting | 32 | from lp.services.twistedsupport.loggingsupport import set_up_oops_reporting |
184 | 33 | 33 | ||
185 | 34 | 34 | ||
186 | 35 | def synchronize(source, target, add, remove): | 35 | def synchronize(source, target, add, remove): |
187 | 36 | 36 | ||
188 | === modified file 'lib/lp/codehosting/sshserver/service.py' | |||
189 | --- lib/lp/codehosting/sshserver/service.py 2010-03-03 23:45:34 +0000 | |||
190 | +++ lib/lp/codehosting/sshserver/service.py 2010-03-19 10:48:30 +0000 | |||
191 | @@ -20,15 +20,14 @@ | |||
192 | 20 | from twisted.conch.ssh.transport import SSHServerTransport | 20 | from twisted.conch.ssh.transport import SSHServerTransport |
193 | 21 | from twisted.internet import defer | 21 | from twisted.internet import defer |
194 | 22 | from twisted.protocols.policies import TimeoutFactory | 22 | from twisted.protocols.policies import TimeoutFactory |
195 | 23 | from twisted.python import log | ||
196 | 24 | from twisted.web.xmlrpc import Proxy | 23 | from twisted.web.xmlrpc import Proxy |
197 | 25 | 24 | ||
198 | 26 | from zope.event import notify | 25 | from zope.event import notify |
199 | 27 | 26 | ||
200 | 27 | from canonical.config import config | ||
201 | 28 | from lp.codehosting.sshserver import accesslog | 28 | from lp.codehosting.sshserver import accesslog |
202 | 29 | from lp.codehosting.sshserver.auth import get_portal, SSHUserAuthServer | 29 | from lp.codehosting.sshserver.auth import get_portal, SSHUserAuthServer |
205 | 30 | from canonical.config import config | 30 | from lp.services.twistedsupport import gatherResults |
204 | 31 | from canonical.twistedsupport import gatherResults | ||
206 | 32 | 31 | ||
207 | 33 | 32 | ||
208 | 34 | class KeepAliveSettingSSHServerTransport(SSHServerTransport): | 33 | class KeepAliveSettingSSHServerTransport(SSHServerTransport): |
209 | 35 | 34 | ||
210 | === modified file 'lib/lp/codehosting/sshserver/tests/test_auth.py' | |||
211 | --- lib/lp/codehosting/sshserver/tests/test_auth.py 2009-07-17 00:26:05 +0000 | |||
212 | +++ lib/lp/codehosting/sshserver/tests/test_auth.py 2010-03-19 10:48:30 +0000 | |||
213 | @@ -22,11 +22,11 @@ | |||
214 | 22 | 22 | ||
215 | 23 | from twisted.trial.unittest import TestCase as TrialTestCase | 23 | from twisted.trial.unittest import TestCase as TrialTestCase |
216 | 24 | 24 | ||
217 | 25 | from lp.codehosting.sshserver import auth, service | ||
218 | 26 | from canonical.config import config | 25 | from canonical.config import config |
219 | 27 | from canonical.launchpad.xmlrpc import faults | 26 | from canonical.launchpad.xmlrpc import faults |
220 | 28 | from canonical.testing.layers import TwistedLayer | 27 | from canonical.testing.layers import TwistedLayer |
222 | 29 | from canonical.twistedsupport import suppress_stderr | 28 | from lp.codehosting.sshserver import auth, service |
223 | 29 | from lp.services.twistedsupport import suppress_stderr | ||
224 | 30 | 30 | ||
225 | 31 | 31 | ||
226 | 32 | class MockRealm: | 32 | class MockRealm: |
227 | 33 | 33 | ||
228 | === modified file 'lib/lp/codehosting/vfs/transport.py' | |||
229 | --- lib/lp/codehosting/vfs/transport.py 2010-02-16 23:59:40 +0000 | |||
230 | +++ lib/lp/codehosting/vfs/transport.py 2010-03-19 10:48:30 +0000 | |||
231 | @@ -30,7 +30,8 @@ | |||
232 | 30 | unregister_transport) | 30 | unregister_transport) |
233 | 31 | 31 | ||
234 | 32 | from twisted.internet import defer | 32 | from twisted.internet import defer |
236 | 33 | from canonical.twistedsupport import extract_result, gatherResults | 33 | |
237 | 34 | from lp.services.twistedsupport import extract_result, gatherResults | ||
238 | 34 | 35 | ||
239 | 35 | 36 | ||
240 | 36 | class TranslationError(BzrError): | 37 | class TranslationError(BzrError): |
241 | 37 | 38 | ||
242 | === modified file 'lib/lp/services/job/runner.py' | |||
243 | --- lib/lp/services/job/runner.py 2010-03-15 13:57:06 +0000 | |||
244 | +++ lib/lp/services/job/runner.py 2010-03-19 10:48:30 +0000 | |||
245 | @@ -34,11 +34,11 @@ | |||
246 | 34 | from canonical.lp import initZopeless | 34 | from canonical.lp import initZopeless |
247 | 35 | from canonical.launchpad import scripts | 35 | from canonical.launchpad import scripts |
248 | 36 | from canonical.launchpad.webapp import errorlog | 36 | from canonical.launchpad.webapp import errorlog |
249 | 37 | from canonical.twistedsupport.task import ( | ||
250 | 38 | ParallelLimitedTaskConsumer, PollingTaskSource) | ||
251 | 39 | from lp.services.scripts.base import LaunchpadCronScript | ||
252 | 40 | from lp.services.job.interfaces.job import LeaseHeld, IRunnableJob, IJob | 37 | from lp.services.job.interfaces.job import LeaseHeld, IRunnableJob, IJob |
253 | 41 | from lp.services.mail.sendmail import MailController | 38 | from lp.services.mail.sendmail import MailController |
254 | 39 | from lp.services.scripts.base import LaunchpadCronScript | ||
255 | 40 | from lp.services.twistedsupport.task import ( | ||
256 | 41 | ParallelLimitedTaskConsumer, PollingTaskSource) | ||
257 | 42 | 42 | ||
258 | 43 | 43 | ||
259 | 44 | class BaseRunnableJob: | 44 | class BaseRunnableJob: |
260 | 45 | 45 | ||
261 | === renamed directory 'lib/canonical/twistedsupport' => 'lib/lp/services/twistedsupport' | |||
262 | === modified file 'lib/lp/services/twistedsupport/tests/test_loggingsupport.py' | |||
263 | --- lib/canonical/twistedsupport/tests/test_loggingsupport.py 2009-06-25 05:30:52 +0000 | |||
264 | +++ lib/lp/services/twistedsupport/tests/test_loggingsupport.py 2010-03-19 10:48:30 +0000 | |||
265 | @@ -21,12 +21,12 @@ | |||
266 | 21 | 21 | ||
267 | 22 | from canonical.config import config | 22 | from canonical.config import config |
268 | 23 | from canonical.launchpad.webapp.errorlog import globalErrorUtility | 23 | from canonical.launchpad.webapp.errorlog import globalErrorUtility |
269 | 24 | from lp.testing import TestCase as LaunchpadTestCase | ||
270 | 25 | from canonical.testing.layers import TwistedLayer | 24 | from canonical.testing.layers import TwistedLayer |
272 | 26 | from canonical.twistedsupport.loggingsupport import ( | 25 | from lp.services.twistedsupport.loggingsupport import ( |
273 | 27 | LaunchpadLogFile, OOPSLoggingObserver) | 26 | LaunchpadLogFile, OOPSLoggingObserver) |
275 | 28 | from canonical.twistedsupport.tests.test_processmonitor import ( | 27 | from lp.services.twistedsupport.tests.test_processmonitor import ( |
276 | 29 | makeFailure, suppress_stderr) | 28 | makeFailure, suppress_stderr) |
277 | 29 | from lp.testing import TestCase as LaunchpadTestCase | ||
278 | 30 | 30 | ||
279 | 31 | 31 | ||
280 | 32 | UTC = pytz.utc | 32 | UTC = pytz.utc |
281 | 33 | 33 | ||
282 | === modified file 'lib/lp/services/twistedsupport/tests/test_processmonitor.py' | |||
283 | --- lib/canonical/twistedsupport/tests/test_processmonitor.py 2010-02-24 03:20:11 +0000 | |||
284 | +++ lib/lp/services/twistedsupport/tests/test_processmonitor.py 2010-03-19 10:48:30 +0000 | |||
285 | @@ -10,13 +10,13 @@ | |||
286 | 10 | 10 | ||
287 | 11 | import unittest | 11 | import unittest |
288 | 12 | 12 | ||
290 | 13 | from twisted.internet import defer, error, reactor, task | 13 | from twisted.internet import defer, error, task |
291 | 14 | from twisted.python import failure | 14 | from twisted.python import failure |
292 | 15 | from twisted.trial.unittest import TestCase as TrialTestCase | 15 | from twisted.trial.unittest import TestCase as TrialTestCase |
293 | 16 | 16 | ||
294 | 17 | from canonical.testing import TwistedLayer | 17 | from canonical.testing import TwistedLayer |
297 | 18 | from canonical.twistedsupport import suppress_stderr | 18 | from lp.services.twistedsupport import suppress_stderr |
298 | 19 | from canonical.twistedsupport.processmonitor import ( | 19 | from lp.services.twistedsupport.processmonitor import ( |
299 | 20 | ProcessMonitorProtocol, ProcessMonitorProtocolWithTimeout, | 20 | ProcessMonitorProtocol, ProcessMonitorProtocolWithTimeout, |
300 | 21 | ProcessProtocolWithTwoStageKill, run_process_with_timeout) | 21 | ProcessProtocolWithTwoStageKill, run_process_with_timeout) |
301 | 22 | 22 | ||
302 | 23 | 23 | ||
303 | === modified file 'lib/lp/services/twistedsupport/tests/test_task.py' | |||
304 | --- lib/canonical/twistedsupport/tests/test_task.py 2010-01-17 06:23:01 +0000 | |||
305 | +++ lib/lp/services/twistedsupport/tests/test_task.py 2010-03-19 10:48:30 +0000 | |||
306 | @@ -13,7 +13,7 @@ | |||
307 | 13 | 13 | ||
308 | 14 | from zope.interface import implements | 14 | from zope.interface import implements |
309 | 15 | 15 | ||
311 | 16 | from canonical.twistedsupport.task import ( | 16 | from lp.services.twistedsupport.task import ( |
312 | 17 | AlreadyRunningError, ITaskConsumer, ITaskSource, NotRunningError, | 17 | AlreadyRunningError, ITaskConsumer, ITaskSource, NotRunningError, |
313 | 18 | ParallelLimitedTaskConsumer, PollingTaskSource) | 18 | ParallelLimitedTaskConsumer, PollingTaskSource) |
314 | 19 | from lp.testing import TestCase | 19 | from lp.testing import TestCase |
315 | 20 | 20 | ||
316 | === modified file 'lib/lp/services/twistedsupport/tests/test_twistedsupport.py' | |||
317 | --- lib/canonical/twistedsupport/tests/test_twistedsupport.py 2009-06-25 05:30:52 +0000 | |||
318 | +++ lib/lp/services/twistedsupport/tests/test_twistedsupport.py 2010-03-19 10:48:30 +0000 | |||
319 | @@ -1,7 +1,7 @@ | |||
320 | 1 | # Copyright 2009 Canonical Ltd. This software is licensed under the | 1 | # Copyright 2009 Canonical Ltd. This software is licensed under the |
321 | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). | 2 | # GNU Affero General Public License version 3 (see the file LICENSE). |
322 | 3 | 3 | ||
324 | 4 | """Tests for things found directly in `canonical.twistedsupport`.""" | 4 | """Tests for things found directly in `lp.services.twistedsupport`.""" |
325 | 5 | 5 | ||
326 | 6 | __metaclass__ = type | 6 | __metaclass__ = type |
327 | 7 | 7 | ||
328 | @@ -9,7 +9,7 @@ | |||
329 | 9 | 9 | ||
330 | 10 | from twisted.internet import defer | 10 | from twisted.internet import defer |
331 | 11 | 11 | ||
333 | 12 | from canonical.twistedsupport import extract_result | 12 | from lp.services.twistedsupport import extract_result |
334 | 13 | from lp.testing import TestCase | 13 | from lp.testing import TestCase |
335 | 14 | 14 | ||
336 | 15 | class TestExtractResult(TestCase): | 15 | class TestExtractResult(TestCase): |
337 | 16 | 16 | ||
338 | === modified file 'scripts/code-import-worker-monitor.py' | |||
339 | --- scripts/code-import-worker-monitor.py 2010-03-11 23:21:41 +0000 | |||
340 | +++ scripts/code-import-worker-monitor.py 2010-03-19 10:48:30 +0000 | |||
341 | @@ -25,11 +25,11 @@ | |||
342 | 25 | from twisted.web import xmlrpc | 25 | from twisted.web import xmlrpc |
343 | 26 | 26 | ||
344 | 27 | from canonical.config import config | 27 | from canonical.config import config |
345 | 28 | from canonical.twistedsupport.loggingsupport import set_up_oops_reporting | ||
346 | 29 | 28 | ||
347 | 30 | from lp.codehosting.codeimport.workermonitor import ( | 29 | from lp.codehosting.codeimport.workermonitor import ( |
348 | 31 | CodeImportWorkerMonitor) | 30 | CodeImportWorkerMonitor) |
349 | 32 | from lp.services.scripts.base import LaunchpadScript | 31 | from lp.services.scripts.base import LaunchpadScript |
350 | 32 | from lp.services.twistedsupport.loggingsupport import set_up_oops_reporting | ||
351 | 33 | 33 | ||
352 | 34 | 34 | ||
353 | 35 | class CodeImportWorker(LaunchpadScript): | 35 | class CodeImportWorker(LaunchpadScript): |