/srv/irclogs.ubuntu.com/2018/07/12/#launchpad.txt

=== mjog_ is now known as mjog
Saviqhmm if I only get a "application/json representation of a resource", how do I load it up in launchpadlib?11:20
SaviqLaunchpad.load() seems to be what I want, but I can't get it to work11:23
cjwatsonSaviq: That takes a URL11:23
cjwatsonSaviq: What code is giving you the representation?11:24
cjwatsonOr what method?11:24
Saviqcjwatson: snaps.getByName11:24
Saviqand then I want to get at the builds for the snap11:25
cjwatsonSaviq: If you call that in launchpadlib then launchpadlib should automatically turn the response into an object for you11:25
cjwatsonThe API docs describe the low-level behaviour of the webservice, but launchpadlib wraps that up11:25
Saviqah duh11:26
SaviqI just need to drop the _collection_link11:26
cjwatsonRight, indeed11:26
Saviqthat threw me off, working now, thanks11:26
cjwatsonIf for some reason you just have a representation then you can generally do lp.load(representation["self_link"]), but you shouldn't normally end up in that situation11:26
Saviqack11:26
cjwatson(and that incurs an extra request)11:27
Saviqcjwatson: snap_build.getFileUrls is the only way to get the snap version out of a snap_build?11:32
cjwatsonversion, or revision?11:33
Saviqcjwatson: version11:33
Saviqthe version string11:33
cjwatsonRight, that's basically just an informational thing in the manifest and LP doesn't extract it11:34
Saviqack11:34
cjwatsonThough if it's been uploaded to the store and the snap is currently in a channel then you can get it from the store11:34
Saviqright11:35
cjwatson$ curl -s -H 'X-Ubuntu-Series: 16' -H 'X-Ubuntu-Architecture: amd64' https://api.snapcraft.io/api/v1/snaps/details/core?channel=edge | jq -r .version11:35
cjwatson16-2.34+git854.a46fd2211:35
Saviqthanks!11:35
rbasakJust me or has Launchpad git entered ago-slow?12:58
rbasaka go-slow12:58
rbasakclone is ~20 KiB/s.12:58
rbasakAnd a push of a tag took about 20 seconds earlier.12:58
cjwatsonDoesn't seem that bad.  Receiving objects:   1% (16218/1275532), 3.23 MiB | 441.00 KiB/s13:10
ahasenack12c15b64145b72fb22e47216f2608d9a13:10
ahasenackyeah, I'm getting timeout oopses13:10
cjwatsonThough we really need to sort out sharding as it's never going to be very scalable the way it is13:10
ahasenackOOPS-12c15b64145b72fb22e47216f2608d9a might trigger the bot?13:11
ubot5https://oops.canonical.com/?oopsid=OOPS-12c15b64145b72fb22e47216f2608d9a13:11
cjwatsonahasenack: standard thing, try again in ten minutes13:11
ahasenackok13:11
rbasakI'm getting 200 KiB/s now, for the same clone that continues (clamav). Got 160 MiB so far, and it continues.13:15
ahasenackclamav is huge13:17
ahasenack600Mb+13:17
rbasakclone done13:17
rbasak387M13:17
ahasenackI have some branches, maybe that13:18
ahasenackclamav$ du -hs .13:18
ahasenack677M.13:18
rbasakMaybe compressible?13:18
rbasak(repackable I guess)13:18
ahasenackwhat's that?13:18
rbasakI just pulled your branches. Still 387M :)13:18
rbasakTry a "git gc"13:19
ahasenackwow, what a difference13:19
ahasenackTotal 34879 (delta 22646), reused 34343 (delta 22320)13:19
ahasenackand size dropped to 363M13:19
juliankcjwatson: btw, I fixed the problem with the missing tasks in the mega bug using the API. Just because there's no web UI does not mean I can't fix it :D14:30
juliankwell, not sure how that was a btw14:31
cjwatsonrighto14:31
Lord-KaminaHi. Are the keys missing from the keyserver going to be fixed anytime soon?15:46
cjwatsonLord-Kamina: there's ongoing work to deploy code that's more resilient to the poison-key attack that's been breaking everything, but I don't have a timescale16:20
Lord-KaminaFair enough. Thanks for the update.16:22
=== cockmaster changed the topic of #launchpad to: Hey, I think you guys might enjoy my new blog post https://bryanostergaard.com/blog/2018/07/09/donald-trump-and-the-darkies/
=== cjwatson changed the topic of #launchpad to: Launchpad is an open source project: https://dev.launchpad.net/ | This channel is logged: http://irclogs.ubuntu.com/ | User Guide: https://help.launchpad.net/ | Support: https://answers.launchpad.net/launchpad
Saviqwgrant: hey, if you could please have a look through this - see if everything makes sense for triggering snap builds on PPA changes - https://github.com/MirServer/mir/pull/460/files#diff-9fec837f222fb6be3b4cc47ae5e64b6120:13
gitlab-botMirServer issue (Pull request) 460 in mir "[travis] process snaps in CI" (comments: 0) [No-Merge, Open]20:13
Saviqthat is, if you have a couple minutes at some point20:14
cjwatsonSaviq: please don't consider this a remotely complete review, but your TODO caught my eye: note that snap.pending_builds exists22:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!