lp:~zyga/checkbox/fix-session-init
- Get this branch:
- bzr branch lp:~zyga/checkbox/fix-session-init
Branch merges
- Daniel Manrique (community): Approve
-
Diff: 201 lines (+96/-6)5 files modifiedplainbox/plainbox/impl/commands/run.py (+13/-1)
plainbox/plainbox/impl/depmgr.py (+9/-2)
plainbox/plainbox/impl/session.py (+40/-2)
plainbox/plainbox/impl/test_depmgr.py (+10/-0)
plainbox/plainbox/impl/test_session.py (+24/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 2002. By Zygmunt Krynicki
-
run: handle duplicate jobs when constructing SessionState
This fixes lp: #1157264
This builds on earlier patches, when the job database is wrong and
contains duplicate jobs that are not identical then tell the operator
about where each job came from.Signed-off-by: Zygmunt Krynicki <email address hidden>
Reported-by: Sean Feole <email address hidden>
Tested-by: Zygmunt Krynicki <email address hidden> - 2001. By Zygmunt Krynicki
-
session: properly handle SessionState() called with duplicates
This is a part of fix to lp: #1157264
When SessionState() is initialized with a list containing duplicates
bad things happen. The error recovery code in update_desired_ jobs()
is not prepared for any duplicates and things break in odd places.To fix that, have SessionState reject duplicate jobs in the same way
that DependencySolver does. As a small exception to this rule, jobs
that are prefect clones are silently coalesced.This makes the constructor of SessionState throw DependencyDupli
cateError
exception when real problems have occurred and prevent any testing from
being started. Unlike local jobs that can also silently produce duplicate
jobs, having initial name clashes cannot be solved at this layerSigned-off-by: Zygmunt Krynicki <email address hidden>
Reported-by: Sean Feole <email address hidden> - 2000. By Zygmunt Krynicki
-
session: add xfailure tests for bug lp: #1157264
SessionState.
__init_ _() does not detect passing duplicate jobs like
other parts of session do. This later causes spurious errors in dependency
solver.This patch adds tests that expect to fail until bug gets fixed
Signed-off-by: Zygmunt Krynicki <email address hidden>
Reported-by: Sean Feole <email address hidden> - 1999. By Zygmunt Krynicki
-
session: bump copyright
Signed-off-by: Zygmunt Krynicki <email address hidden>
- 1998. By Zygmunt Krynicki
-
depmgr: update docstrings about DependencyDupli
cateError Signed-off-by: Zygmunt Krynicki <email address hidden>
- 1997. By Zygmunt Krynicki
-
depmgr: add test for duplicate jobs
This test is pretty much identical to
DependencySolverInternalsTests .test_get_ job_map_ find_duplicates ()
but it's nice to see that it just worksSigned-off-by: Zygmunt Krynicki <email address hidden>
- 1996. By Sylvain Pineau
-
"[r=zkrynicki]
[bug=][ author= sylvain- pineau] XML exporter: Added support for attachments"
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:checkbox