Snaps info pre-fetching seems broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity (Ubuntu) |
Fix Released
|
High
|
Olivier Gayot |
Bug Description
It seems that we have a mechanism to pre-fetch information about the snaps available. My understanding is that it impacts how fast the screen shows the information about a specific snap when the user presses enter on the snap list view.
However, in practice I always get the following debug log, which seems to indicate that we did not pre-fetch any snap info.
2022-09-09 13:09:46,158 DEBUG subiquity.
The code does this:
task = self.tasks[None] = \
and it feels like we should wait for the task to complete before calling self.model.
Changed in subiquity (Ubuntu): | |
importance: | Undecided → High |
Changed in subiquity (Ubuntu): | |
status: | New → Triaged |
Changed in subiquity (Ubuntu): | |
status: | In Progress → Fix Committed |
I think this got broken as part of this patch:
https:/ /github. com/canonical/ subiquity/ commit/ ee528fe6a
and more specifically:
``` task(self. _load_list( )) ask(self. _load_list, propagate_ errors= False)
- task = self.tasks[None] = schedule_
- await task
+ task = self.tasks[None] = SingleInstanceT
+ task.start_sync()
```