lp:~kissiel/checkbox/fix-1585030

Created by Maciej Kisielewski and last modified
Get this branch:
bzr branch lp:~kissiel/checkbox/fix-1585030
Only Maciej Kisielewski can upload to this branch. If you are Maciej Kisielewski please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Maciej Kisielewski
Project:
Checkbox
Status:
Merged

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]"

4370. By Launchpad Translations on behalf of checkbox-dev

Launchpad automatic translations update.

4369. By Launchpad Translations on behalf of checkbox-dev

Launchpad automatic translations update.

4368. By Launchpad Translations on behalf of checkbox-dev

Launchpad automatic translations update.

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
This branch contains Public information 
Everyone can see this information.