lp:~kissiel/checkbox/fix-1585030
- Get this branch:
- bzr branch lp:~kissiel/checkbox/fix-1585030
Branch merges
- Paul Larson: Approve
-
Diff: 32 lines (+6/-3)1 file modifiedcheckbox-touch/py/checkbox_touch.py (+6/-3)
Related bugs
Related blueprints
Branch information
Recent revisions
- 4375. By Maciej Kisielewski
-
checkbox-touch: fix freeze when going back to welcome page
So the crash happened because SessionAssistant wasn't expecting to get
get_test_plans calls when we're negotiating which tests to run.There were handful of ways to fix it, namely:
1) Rebooting the session (finalizing, starting one afresh), this would require
maintaining information whether the session was already started. This would be
expensive to run (starting session). Note that we do this if the user changes
their mind about which test plan to run, as then we need to bootstrap
everything.2) Letting get_test_plans be called in different stages of the session's
maturation process. This would bring allowed_calls extension in couple of
places, making SA code uglier and less linear in terms of session lifetime.3) Remembering available test plans in the app state. Test plans don't change
once session is started, so this is safe. Note that once test plan is selected
the session will be rebooted.I went with 3). Least code and least collateral additions.
Fixes: https:/
/bugs.launchpad .net/checkbox- converged/ +bug/1585030 Signed-off-by: Maciej Kisielewski <email address hidden>
- 4374. By Maciej Kisielewski
-
"automatic merge of lp:~kissiel/checkbox/provider-supplied-libs/ by tarmac [r=pwlars][bug=1584103][author=kissiel]"
- 4373. By Paul Larson
-
"automatic merge of lp:~pwlars/checkbox/impl-unit-flakes/ by tarmac [r=taihsiangho]
[bug=][ author= pwlars] " - 4372. By Sylvain Pineau
-
"automatic merge of lp:~sylvain-pineau/checkbox/die_local.txt_die/ by tarmac [r=pwlars]
[bug=][ author= sylvain- pineau] " - 4371. By Sylvain Pineau
-
"automatic merge of lp:~sylvain-pineau/checkbox/cli2-removal-bis/ by tarmac [r=sylvain-
pineau] [bug=][ author= sylvain- pineau] " - 4367. By Po-Hsu Lin
-
"automatic merge of lp:~cypressyew/checkbox/cbt-update/ by tarmac [r=cypressyew]
[bug=][ author= cypressyew] " - 4366. By Sylvain Pineau
-
"automatic merge of lp:~sylvain-pineau/checkbox/fix-1577831/ by tarmac [r=pwlars][bug=1577831][author=
sylvain- pineau] "
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:checkbox