Test ubuntu-16.04-64:tests/main/auto-refresh is flaky

Bug #1949886 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Medium
Unassigned

Bug Description

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?

Tags: flaky-tests
Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Ian Johnson (anonymouse67) wrote :

Just a note, this was seen again with https://pastebin.ubuntu.com/p/2SwwN8mPQb/

Revision history for this message
Ian Johnson (anonymouse67) wrote :
Revision history for this message
Ian Johnson (anonymouse67) wrote :

Potentially related to another similar test failing https://bugs.launchpad.net/snapd/+bug/1951151

Changed in snapd:
status: New → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.