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
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: Undoing/ Do\s)`, eg:
1. set snap refresh --hold=forever
2. run `snap changes` and sleep whenever you observe `(Doing/
while true; do Undoing| Do\s|restarting )'; then
if snap changes 2>&1 | grep -E '(Doing|
echo wait; sleep 0.5
else
break
fi
done