[Bug 1989198] [NEW] Snaps info pre-fetching seems broken

Olivier Gayot 1989198 at bugs.launchpad.net
Fri Sep 9 14:00:13 UTC 2022


Public bug reported:

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.server.controllers.snaplist:70
fetched list of 0 snaps

The code does this:

            task = self.tasks[None] = \
                    SingleInstanceTask(self._load_list, propagate_errors=False)
            task.start_sync()
            self.pending_snaps = self.model.get_snap_list()
            log.debug("fetched list of %s snaps", len(self.pending_snaps))

and it feels like we should wait for the task to complete before calling
self.model.get_snap_list().

** Affects: subiquity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1989198

Title:
  Snaps info pre-fetching seems broken

Status in subiquity package in Ubuntu:
  New

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.server.controllers.snaplist:70
  fetched list of 0 snaps

  The code does this:

              task = self.tasks[None] = \
                      SingleInstanceTask(self._load_list, propagate_errors=False)
              task.start_sync()
              self.pending_snaps = self.model.get_snap_list()
              log.debug("fetched list of %s snaps", len(self.pending_snaps))

  and it feels like we should wait for the task to complete before
  calling self.model.get_snap_list().

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1989198/+subscriptions




More information about the foundations-bugs mailing list