tests/main/high-user-handling: fix the test for Go 1.12
Go 1.12 started using $HOME/.cache for keeping the built object cache. Since
we're using sudo -E, $HOME still points to /root. Instead of calling `go run`
which would build as the user, build the binary beforehand.
Signed-off-by: Maciej Borzecki <email address hidden>
squashfs: unset SOURCE_DATE_EPOCH in the TestBuildDate test
The SOURCE_DATE_EPOCH is used in reproducible builds and will
force mksquashfs to use a specific date. We need to unset it
for this specific test. It will be set on all debian/ubuntu
buildds.
overlord/ifacestate: fix migration of connections on upgrade from ubuntu-core (#6530)
The connections migration code for ubuntu-core -> core transition migrates connections stored in "conns" from ubuntu-core to core and reloads connections in the repo (via reloadConnections helper). It hower incorrectly calls reloadConnections for "ubuntu-core" snap under the assumption that reloadConnections takes care of full synchronization of conns -> repo and removes non-existing connections, which is not the case. So as a result we end up with correct "conns" but incorrect repo with for both "core" and "ubuntu-core" connection. This causes an error when we run "auto-disconnect" task on "ubuntu-core" removal - see https://paste.ubuntu.com/p/FcK6mx2SwZ/
The spread test updated with this PR uncovers the problem and reports the failure of migration without the fix (thanks Michael).
The fix explicitely removed connections of "ubuntu-core" from the repo as part of migration task, so that "conns" and "repo" are in sync.