Merge lp:~alecu/ubuntuone-client/proxy-tunnel-useit into lp:ubuntuone-client
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Alejandro J. Cura on 2012-03-12 | ||||||||
| Approved revision: | 1227 | ||||||||
| Merged at revision: | 1206 | ||||||||
| Proposed branch: | lp:~alecu/ubuntuone-client/proxy-tunnel-useit | ||||||||
| Merge into: | lp:ubuntuone-client | ||||||||
| Prerequisite: | lp:~alecu/ubuntuone-client/proxy-tunnel-process | ||||||||
| Diff against target: |
570 lines (+338/-30) 10 files modified
contrib/testing/testcase.py (+15/-1) tests/proxy/test_tunnel_client.py (+1/-1) tests/proxy/test_tunnel_server.py (+7/-5) tests/syncdaemon/test_action_queue.py (+51/-0) tests/syncdaemon/test_tunnel_runner.py (+114/-0) ubuntuone/proxy/common.py (+1/-0) ubuntuone/proxy/tunnel_client.py (+71/-18) ubuntuone/proxy/tunnel_server.py (+2/-3) ubuntuone/syncdaemon/action_queue.py (+6/-2) ubuntuone/syncdaemon/tunnel_runner.py (+70/-0) |
||||||||
| To merge this branch: | bzr merge lp:~alecu/ubuntuone-client/proxy-tunnel-useit | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | Approve on 2012-03-12 | ||
| Alejandro J. Cura (community) | Abstain on 2012-03-10 | ||
| Manuel de la Peña (community) | 2012-03-06 | Approve on 2012-03-09 | |
|
Review via email:
|
|||
Commit Message
- Tunnel storage protocol if proxy enabled in system settings (LP: #929208).
Description of the Change
- Tunnel storage protocol if proxy enabled in system settings. (LP: #929208)
- 1218. By Alejandro J. Cura on 2012-03-06
-
Merged proxy-tunnel-
process into proxy-tunnel-useit. - 1219. By Alejandro J. Cura on 2012-03-06
-
move the patching of TunnelRunner to the parent class
- 1220. By Alejandro J. Cura on 2012-03-07
-
Merged proxy-tunnel-
process into proxy-tunnel-useit.
- 1221. By Alejandro J. Cura on 2012-03-09
-
merged with parent branch
- 1222. By Alejandro J. Cura on 2012-03-09
-
Merged proxy-tunnel-
process into proxy-tunnel-useit. - 1223. By Alejandro J. Cura on 2012-03-09
-
Merged proxy-tunnel-
process into proxy-tunnel-useit. - 1224. By Alejandro J. Cura on 2012-03-09
-
fixed lint issue
| Natalia Bidart (nataliabidart) wrote : | # |
* Could you please change this assert:
to something that reflects that self.spawned is not a boolean but a list? Perhaps using assertEqual against what should actually be in the list.
* This is in live code, TUNNEL_PORT = "Tunnel port", is it correct? does no look like a port to me :-/
* This import is not alphabetically ordered: from ubuntuone.proxy import tunnel_client. Also, if I understand correctly, that import can fail with an ImportError if the user does not have the -proxy-support debian/ubuntu package installed, since the whole ubuntuone.proxy namespace will be distributed in another binary package (as far as I know).
| Alejandro J. Cura (alecu) wrote : | # |
> * Could you please change this assert:
>
> self.assertTrue
>
> to something that reflects that self.spawned is not a boolean but a list?
> Perhaps using assertEqual against what should actually be in the list.
Good point, I'll fix it.
> * This is in live code, TUNNEL_PORT = "Tunnel port", is it correct? does no
> look like a port to me :-/
The string is correct.
But I agree that the name of the constant is misleading, so I'm renaming it to something better.
> * This import is not alphabetically ordered: from ubuntuone.proxy import
> tunnel_client. Also, if I understand correctly, that import can fail with an
> ImportError if the user does not have the -proxy-support debian/ubuntu package
> installed, since the whole ubuntuone.proxy namespace will be distributed in
> another binary package (as far as I know).
The tunnel_client.py module should not be part of the different binary package, only tunnel_server.py and bin/ubuntuone-
- 1225. By Alejandro J. Cura on 2012-03-09
-
fixes requested on review
- 1226. By Alejandro J. Cura on 2012-03-10
-
The ubuntuone.proxy namespace can be provided by a different ubuntu package.
| Alejandro J. Cura (alecu) wrote : | # |
I've reworked the branch with the suggestions provided in the review.
It's now pushed and ready for re-review.
| Natalia Bidart (nataliabidart) wrote : | # |
Second connection attempt is failing with:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
return _inlineCallback
--- <exception caught here> ---
File "/usr/lib/
result = g.send(result)
File "/home/
self.connector = client.
exceptions.
Alecu and I already debugged it, so he will be working on a fix.
- 1227. By Alejandro J. Cura on 2012-03-12
-
get_client() now returns independent deferreds that can be yielded at will


I get the following when I try to run the tests:
== Python Lint Notices ==
./contrib/ testing/ testcase. py:
278: undefined name 'reactor'