Merge lp:~mvo/ubuntu-sso-client/lp711413 into lp:ubuntu-sso-client
Status: | Rejected |
---|---|
Rejected by: | dobey |
Proposed branch: | lp:~mvo/ubuntu-sso-client/lp711413 |
Merge into: | lp:ubuntu-sso-client |
Diff against target: |
126 lines (+98/-1) 2 files modified
ubuntu_sso/main/linux.py (+21/-1) ubuntu_sso/main/tests/test_linux.py (+77/-0) |
To merge this branch: | bzr merge lp:~mvo/ubuntu-sso-client/lp711413 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
dobey (community) | Disapprove | ||
Natalia Bidart | Pending | ||
Review via email:
|
Description of the change
This is one way of hopefully solving bug #711413 that shows up on errors.ubuntu.com currntly (via its duplicate #926678).
The idea is that if its a race on logout when the dbus session daemon gets killed before the syncdaemon, we can simply retry to access the dbus daemon until ubuntu-sso-client is also killed by the session logout (this branch assumes that this is the case). Its not entirely clear if it is - but the patch should not make anything worse, the worst outcome would be that it just dosn't fix anything in which case it should be reverted and the approach needs to be rethought.
Unmerged revisions
- 958. By Michael Vogt
-
try to fix #711413 via a retry approach if the session bus is not available, the idea is that ubuntu-sso-client gets killed on logout hopefully before the retry-timeout is reached
Please don't add a new dependency on python-mock here. Instead, you should use BaseTestCase from ubuntu_ sso.main. tests.linux and use self.patch() inside a test to patch a method, rather than using the @patch decorator from mock. You can see some usage of self.patch() in test_clients.py in the same directory.