We get the following on various versions of ubuntu:
"""
2021-11-04T16:04:58.3621283Z ##[error]2021-11-04 16:04:58 Error executing google:ubuntu-16.04-64:tests/main/auto-refresh:regular (nov041530-329933) :
...
2021-11-04T16:04:58.3750386Z Modify the snap to track the edge channel
2021-11-04T16:04:58.3754368Z + /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state change-snap-channel test-snapd-tools edge
2021-11-04T16:04:58.3758183Z + echo 'And force auto-refresh to happen'
2021-11-04T16:04:58.3760984Z And force auto-refresh to happen
2021-11-04T16:04:58.3764278Z + /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state force-autorefresh
2021-11-04T16:04:58.3766206Z + systemctl start snapd.service snapd.socket
2021-11-04T16:04:58.3768454Z + echo 'wait for auto-refresh to happen'
2021-11-04T16:04:58.3770463Z wait for auto-refresh to happen
2021-11-04T16:04:58.3773037Z + /home/gopath/src/github.com/snapcore/snapd/tests/lib/tools/snapd-state wait-for-snap-autorefresh test-snapd-tools
2021-11-04T16:04:58.3775239Z snapd-state: expected a new auto-refresh change with id greater than 1, but it didn't happen
"""
Turns out that this is because:
"""
2021-11-04T16:04:59.1277543Z Nov 04 16:04:14 nov041530-329933 snapd[11561]: synchronized.go:72: DEBUG: NTPSynchronized state returned by timedate1: false
"""
so it seems some images do not ntp sync sometimes?
Just a note, this was seen again with https:/ /pastebin. ubuntu. com/p/2SwwN8mPQ b/