Comment 13 for bug 2039052

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Is the firefox snap preinstalled in the images you use during the CI runs? I suspect you're basically racing with snapd which finds there's an update for firefox and starts it. Then subsequent commands have no effect on a refresh which is already in progress.

Would it be possible to grab the output of `snap changes` and add it to the bug report?

For the time being, I would suggest to use this order:
1. set snap refresh --hold=forever
2. run `snap changes` and sleep whenever you observe `(Doing/Undoing/Do\s)`, eg:

  while true; do
    if snap changes 2>&1 | grep -E '(Doing|Undoing|Do\s|restarting)'; then
      echo wait; sleep 0.5
    else
      break
    fi
  done