=== chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [16:06] 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] We have already builders for 1.12, 1.11, 1.10 and latest snap tracks and they work with no issues [16:34] kjackal: I'm not quite sure how it got into this state, but it apparently hasn't been authorised for upload [16:34] kjackal: Go to https://launchpad.net/~microk8s-dev/+snap/microk8s-1.13/+authorize and follow the prompts [16:36] 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] 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] is it possible I am missing something there? [16:45] 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] thanks cjwatson I will take a look [16:48] 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] snap.beginAuthorization, email/password/(maybe 2FA) prompt, SSO /api/v2/tokens/discharge, snap.completeAuthorization would be an acceptable flow [16:49] BTW it is semantically wrong to talk about the snap object as an "LP builder" [16:50] "snap recipe" if you like, perhaps [16:51] I care about that because we have a separate thing called a "builder" which is not what you are manipulating here [16:52] cjwatson: keep going, I have already created a ticker in our board to work on that, and I am taking notes [16:52] That's all I have now, I'm off today so limited time to check stuff :) [16:53] cjwatson: how would we automatically (no user interaction) create a builder that would also release to the snap store? [16:53] ok, cool, we might be able to chat some other time [16:53] thanks cjwatson [17:20] kjackal: That is not possible. [17:21] LP has to gain explicit user authorisation to release something on the user's behalf.