Merge lp://staging/~zyga/checkbox/dbus-resume into lp://staging/checkbox
Status: | Rejected |
---|---|
Rejected by: | Zygmunt Krynicki |
Proposed branch: | lp://staging/~zyga/checkbox/dbus-resume |
Merge into: | lp://staging/checkbox |
Diff against target: |
1048 lines (+475/-190) 10 files modified
plainbox/plainbox/impl/dbus/decorators.py (+16/-1) plainbox/plainbox/impl/dbus/service.py (+4/-1) plainbox/plainbox/impl/job.py (+2/-2) plainbox/plainbox/impl/result.py (+16/-3) plainbox/plainbox/impl/service.py (+328/-153) plainbox/plainbox/impl/session/jobs.py (+2/-2) plainbox/plainbox/impl/session/legacy.py (+2/-10) plainbox/plainbox/impl/session/resume.py (+6/-2) plainbox/plainbox/impl/session/state.py (+7/-16) plainbox/plainbox/impl/session/test_manager.py (+92/-0) |
To merge this branch: | bzr merge lp://staging/~zyga/checkbox/dbus-resume |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Checkbox Developers | Pending | ||
Review via email:
|
Description of the change
This branch contains the mammoth rewrite of service.py (all of the dbus code). I've focused on lifecycle management ONLY. The biggest change is that it's all event driven now, we don't have to check if something needs to be added or removed, plainbox core tells us about it.
I haven't touched any other problems present in the dbus layer (notably the use of threads to run jobs and the associated SNAFU).
Please review the service module and give feedback. Don't land this branch, I'll clean up the patches, add tests and most importantly write long description of how the dbus service lifecycle works and why it is (supposedly) correct.
There _are_ some missing bits in this branch as well, most notably we don't keep explicit track of generated jobs inside sessions (we only keep track of that inside the object manager that each session now is) but that is probably not required, I'm just not yet sure of that so it's not something I consider finished yet.
Unmerged revisions
- 2385. By Zygmunt Krynicki
-
drop unused arg
- 2384. By Zygmunt Krynicki
-
dbus, ignore resume if there is nothing to resume
- 2383. By Zygmunt Krynicki
-
dbus, try not to resume another session if we already have it resumed
- 2382. By Zygmunt Krynicki
-
tweak signal logging in jobstate
- 2381. By Zygmunt Krynicki
-
tweak job repr (drop this)
- 2380. By Zygmunt Krynicki
-
log dbus method errors
- 2379. By Zygmunt Krynicki
-
more logging in service
- 2378. By Zygmunt Krynicki
-
drop on_job_
result_ changed signal, maybe not drop it after all later - 2377. By Zygmunt Krynicki
-
add support for session pivot to resume
- 2376. By Zygmunt Krynicki
-
fix legacy resume