Merge lp:~sylvain-pineau/checkbox/fix-1578579 into lp:checkbox
Proposed by
Sylvain Pineau
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Sylvain Pineau | ||||
Approved revision: | 4349 | ||||
Merged at revision: | 4352 | ||||
Proposed branch: | lp:~sylvain-pineau/checkbox/fix-1578579 | ||||
Merge into: | lp:checkbox | ||||
Diff against target: |
31 lines (+2/-6) 2 files modified
checkbox-ng/launchers/checkbox-cli (+0/-6) plainbox/plainbox/impl/session/assistant.py (+2/-0) |
||||
To merge this branch: | bzr merge lp:~sylvain-pineau/checkbox/fix-1578579 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pierre Equoy | Approve | ||
Review via email: mp+294711@code.launchpad.net |
Description of the change
Fixes the linked bug.
To avoid the plainbox crash mentioned in the bug report where we had leftover jobs when resuming a session a simple fix is to avoid rerunning jobs in the bootstrap method if we already have results for them. Doing so avoid generating a new set of jobs from templates, where one could be missing if udev does not report the same device list (It can be as simple as unplugging a USB mouse).
To post a comment you must log in.
I tested this patch on the device where lp:1578579 was found, and it does, indeed, fix the problem.
I thought it might introduce a regression with the job results history, but after testing it a bit more it seems OK and the whole history is kept even when the session is resumed.
+1, thanks a lot!