/srv/irclogs.ubuntu.com/2017/05/08/#launchpad.txt

wgrantmwhudson: Which variant, and with which arguments?01:09
mwhudsonwgrant: just getBuildRecords(pocket='Release') on a ppa01:11
mwhudsonthe ppa has 6000 builds which is quite a lot i guess, but still01:11
mwhudsonit takes like 30 minutes01:12
wgrantmwhudson: Which PPA, and how are you using the call?01:13
wgrant100 batches in 30 minutes is impossible; timeouts prevent it.01:13
mwhudsonwgrant: https://launchpad.net/~mwhudson/+archive/ubuntu/devirt/+packages01:14
wgrantIt's possible that the requests are timing out and launchpadlib is transparently retrying, I suppose.01:14
mwhudsonah that might explain it01:14
mwhudsonyou can make launchpadlib log requests can't you?01:14
mwhudsonwgrant: it's this script https://git.launchpad.net/~barry/+git/pydeps/tree/upload.py01:15
wgrantmwhudson: In [4]: t = time.time(); bs = list(a.getBuildRecords(pocket='Release')); print time.time() - t01:20
wgrant259.20215988201:20
mwhudsoni just killed the script after 32 minutes :(01:20
wgrantmwhudson: Oh, the script as a whole takes more than 30 minutes? That's more plausible.01:21
wgrantmwhudson: Also that doesn't do getBuildRecords(pocket='Release'). It does getBuildRecords(source_name=name) for many names.01:21
wgrantAnd it's also presumably designed to run from the US, not APAC.01:21
wgrantYou'll probably find that the script is doing several requests per package.01:22
mwhudsonthat's not the bit that's the problem01:23
mwhudsoni have now yes :(01:23
mwhudsonis there any better way of doing this?01:23
mwhudsonscreen scraping the ppa listing would be faster but ugh01:23
wgrantWhich bit is the problem?01:25
mwhudsonwell the goal of the script is just to a list of source package names and build status01:29
wgrantmwhudson: getPublishedSources and getBuildStatusSummariesForSourceIds (or just a global getBuildRecords call, since you presumably want everything) should be able to do it quickly enough.01:33
mwhudsonwgrant: does launchpadlib cache intelligently enough that if i call list(getPublishedSources()), build.current_source_publication won't hit the network each time?01:34
wgrantmwhudson: No.01:36
mwhudsonsigh01:36
wgrantCorrect.01:36
wgrantThis is why pure hardcore REST APIs are very silly.01:37
mwhudsondoes launchpad have any sql injection vulnerabilities i can use for this? :)01:39
mwhudsonit's much faster run from canonistack :)02:03
mwhudsonwgrant: is it known that the headless login process with launchpadlib is kinda busted02:10
mwhudson?02:10
wgrantmwhudson: Yes, but it works OK as long as you don't try to use the autolaunched web browser.02:14
mwhudsonwgrant: i meant this http://paste.ubuntu.com/24534363/02:15
wgrantmwhudson: Huh, never seen that before.02:15
mwhudsonwgrant: happens on artful, haven't checked anything older02:19
mwhudsonoh yes and if i fix that this happens: http://paste.ubuntu.com/24534385/02:20
mwhudson(the fix for that is to log in with python 2 first ...)02:20
wgrantmwhudson: Oh, Python 3 launchpadlib isn't really a thing02:23
wgrantIt's meant to mostly work but I've never used it.02:23
mwhudsonwgrant: i see02:23
mwhudsonah forcing unecrypted creds works ok02:27
=== chihchun_afk is now known as chihchun
=== Spads_ is now known as Spads
=== DaGardner_ is now known as DaGardner
redwolfo/11:46
redwolfI need a bit of help with the @ubuntu alias11:47
cjwatsonredwolf: What's up?11:48
redwolfI had to change my username, everywhere (launchpad, SSO, wiki, etc), added a gmail account matching username11:48
redwolfI get this message: http://pastebin.ubuntu.com/24536346/11:49
redwolfis that because it needs time?11:49
cjwatsonredwolf: OK, you'll need to ask #canonical-sysadmin about that (or rt@ubuntu.com if you don't get a response there).  Launchpad holds the data, but it's our sysadmins who actually do the processing into email aliases.11:50
redwolfok. I will. thanks anyway :)11:50
cjwatsonI believe there's some manual batch processing involved.11:51
redwolfI think so too. flushing database or something11:51
redwolfta! o/11:52
=== chihchun is now known as chihchun_afk

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