The snap.sh autopkgtest suite failes on non amd64/i386 arches
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
Critical
|
Łukasz Zemczak | ||
ubuntu-image (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
With the current ubuntu-image 1.1, it is impossible for the package to migrate to the release pocket as the autopkgtests for armhf, ppc64el and arm64 will fail (the snap.sh test). This test does not make sense to be run as part of .deb migration as it's testing snap buildability - it's a bad idea to mix those two worlds.
[Test Case]
Make sure that all the autopkgtests pass for all architectures (with the snap.sh test skipped).
[Regression Potential]
None. This is only a test change. Skipping the test on package migration introduces no real possibility of regressions. Snap buildability is checked during the github source CI for each pull-request. Besides, snap buildability is a feature of the source that is not used by the .deb parts and is completely irrelevant to users.
[Original Description]
We have an autopkgtest called snap.sh that checks if we're able to properly build an ubuntu-image snap from the current source and that the resulting tool is usable. This test started failing with ubuntu-image 1.1 for armhf, ppc64el and s390x.
By checking the test logs, this test was never really working for archs other than amd64 and i386. The snap never really got properly built and installed, and the test only passed because, for some reason, ubuntu-image was available as a deb (you can see it in the old logs by examining the ubuntu-image --version output, stating a non-snap version number). Starting with changes from 1.1, we now have some tests that make sure the deb is not installed.
In theory building the ubuntu-image snap should be possible on all arches. In practice, on all the fancy archs basically the core snap is *always* failing to install with:
error: cannot communicate with server: Post http://
This doesn't seem to be a transient error. This causes ubuntu-image to not migrate.
Changed in ubuntu-image: | |
status: | Triaged → In Progress |
description: | updated |
Changed in ubuntu-image (Ubuntu Yakkety): | |
status: | New → Invalid |
Changed in ubuntu-image: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-image: | |
status: | Fix Committed → Fix Released |
My first proposition for quickly dealing with this is: skipping the test for arches other than amd64 and i386. They're not the target for the ubuntu-image tool (I can't imagine a real use-case) - especially that we're only supporting ubuntu-image for amd64 and i386 in the store.
If needed, we can dive in and try to find out why there are issues with the core snap on those arches. Anyway, it doesn't seem to be related to u-i itself.