[16:06] <kjackal> hi launchpad people, I have this LP builder that was supposed to push a snap to the store an hour ago, but I do not see it https://launchpad.net/~microk8s-dev/+snap/microk8s-1.13
[16:07] <kjackal> We have already builders for 1.12, 1.11, 1.10 and latest snap tracks and they work with no issues
[16:34] <cjwatson> kjackal: I'm not quite sure how it got into this state, but it apparently hasn't been authorised for upload
[16:34] <cjwatson> kjackal: Go to https://launchpad.net/~microk8s-dev/+snap/microk8s-1.13/+authorize and follow the prompts
[16:36] <cjwatson> kjackal: Once that's done you should get an "Upload this package to the store" action on each of the individual builds that have happened so far, and future builds should be uploaded automatically
[16:42] <kjackal> cjwatson: I am creating these builders programmatically via a call to https://github.com/juju-solutions/kubernetes-jenkins/blob/master/jobs/microk8s/update-gh-branches-and-lp-builders.py#L124
[16:42] <kjackal> is it possible I am missing something there?
[16:45] <cjwatson> kjackal: You either have to authorise the snap using a web browser, or you have to use https://launchpad.net/+apidoc/devel.html#snap-beginAuthorization and https://launchpad.net/+apidoc/devel.html#snap-completeAuthorization (as far as I know currently only used by build.snapcraft.io) to get the necessary tokens into LP
[16:46] <kjackal> thanks cjwatson I will take a look
[16:48] <cjwatson> kjackal: It's probably possible to get hold of the discharge using the SSO API (https://canonical-identity-provider.readthedocs.io/en/latest/resources/token.html#macaroon), but it's going to involve at least *some* user interaction somewhere
[16:49] <cjwatson> snap.beginAuthorization, email/password/(maybe 2FA) prompt, SSO /api/v2/tokens/discharge, snap.completeAuthorization would be an acceptable flow
[16:49] <cjwatson> BTW it is semantically wrong to talk about the snap object as an "LP builder"
[16:50] <cjwatson> "snap recipe" if you like, perhaps
[16:51] <cjwatson> I care about that because we have a separate thing called a "builder" which is not what you are manipulating here
[16:52] <kjackal> cjwatson: keep going, I have already created a ticker in our board to work on that, and I am taking notes
[16:52] <cjwatson> That's all I have now, I'm off today so limited time to check stuff :)
[16:53] <kjackal> cjwatson: how would we automatically (no user interaction) create a builder that would also release to the snap store?
[16:53] <kjackal> ok, cool, we might be able to chat some other time
[16:53] <kjackal> thanks cjwatson
[17:20] <cjwatson> kjackal: That is not possible.
[17:21] <cjwatson> LP has to gain explicit user authorisation to release something on the user's behalf.