Failing to build snap, using snapd from edge channel

Bug #1902503 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
Triaged
Low
Unassigned

Bug Description

Failing to build snap, using snapd from edge channel

snap=lp.load('~canonical-foundations/+snap/pc-amd64-20')

snap.requestBuild(pocket='Security', archive=lp.load('~canonical-foundations/+archive/ubuntu/uc20-staging-ppa'), channels={'snapd':'edge', 'core20':'stable', 'snapcraft': 'stable'}, distro_arch_series='/ubuntu/focal/amd64')

Currently running attempt https://launchpad.net/~canonical-foundations/+snap/pc-amd64-20/+build/1169628

The build has

--channel core20=stable --channel snapcraft=stable --channel snapd=edge

Yet, I don't see snapd being installed/refreshed from edge.

Previous attempt was https://launchpad.net/~canonical-foundations/+snap/pc-amd64-20/+build/1162977

Tags: core20 uc20
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Unless the logs

core20 20 from Canonical* installed
2020-11-02T09:49:20Z INFO Waiting for automatic snapd restart...
snapcraft 4.3 from Canonical* installed

mean that new snapd is being used.

Revision history for this message
Colin Watson (cjwatson) wrote :

We don't support passing arbitrary snap names there, only core (and friends) and snapcraft. But snapd is core enough that we probably ought to support it too.

affects: launchpad → launchpad-buildd
Changed in launchpad-buildd:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Cause i Was expecting something like this in the log

2020-11-02T09:59:31Z INFO Waiting for automatic snapd restart...
snapd (edge) 2.47.1+git1006.g2095741 from Canonical✓ refreshed

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Aha, let me try specifying `build-snaps: [snapd/latest/edge]` then.

It is best if things like these are encoded in the snapcraft.yaml itself.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

With build-snaps, the build worked fine!

snapd is not logged in, snap install commands will use sudo
2020-11-02T12:54:47Z INFO Waiting for automatic snapd restart...
snapd (edge) 2.47.1+git1006.g2095741 from Canonical* refreshed

I'm happy with that solution, and imho it's even better. I wonder if this should be downgraded to wishlist, if not wont-fix.

Revision history for this message
Colin Watson (cjwatson) wrote :

We don't use the wishlist importance for Launchpad bugs (https://dev.launchpad.net/BugTriage#Importance).

I'm happy to leave this open since it is arguably a bit surprising, but low importance seems fine.

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.