lp:~zyga/checkbox/fix-session-init

Created by Zygmunt Krynicki and last modified
Get this branch:
bzr branch lp:~zyga/checkbox/fix-session-init
Only Zygmunt Krynicki can upload to this branch. If you are Zygmunt Krynicki please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Zygmunt Krynicki
Project:
Checkbox
Status:
Merged

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 DependencyDuplicateError
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 layer

Signed-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 DependencyDuplicateError

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 works

Signed-off-by: Zygmunt Krynicki <email address hidden>

1996. By Sylvain Pineau

"[r=zkrynicki][bug=][author=sylvain-pineau] XML exporter: Added support for attachments"

1995. By Zygmunt Krynicki

"[r=zkrynicki][bug=][author=zkrynicki] automatic merge by tarmac"

1994. By Jeff Marcom

"[r=zkrynicki][bug=1155686][author=jeffmarcom] automatic merge by tarmac"

1993. By Zygmunt Krynicki

"[r=zkrynicki][bug=][author=zkrynicki] automatic merge by tarmac"

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:checkbox
This branch contains Public information 
Everyone can see this information.

Subscribers