=== tasdomas_afk is now known as tasdomas | ||
mgedmin | is this a good place to talk about the launchpad API/python-launchpadlib? | 10:30 |
---|---|---|
cjwatson | Yes | 10:30 |
mgedmin | I cobbled together a script to automate the copying of some PPA packages from precise to lucid: https://gist.github.com/mgedmin/6306694 | 10:31 |
mgedmin | I'd like to make it run faster | 10:31 |
mgedmin | which means I'd like to make it perform fewer HTTP roundtrips | 10:31 |
mgedmin | I think I want to start by counting the HTTP requests that launchpadlib makes on my behalf | 10:31 |
mgedmin | what would be a good way to do that? | 10:31 |
mgedmin | I thought maybe monkey-patch urllib.urlopen or something | 10:32 |
mgedmin | but maybe there's some hidden debug variable/logging handler/etc. that I could enable? | 10:32 |
wgrant | It uses httplib2 internally. | 10:32 |
wgrant | I usually start by just sticking an import httplib2; httplb2.debuglevel = 1 at the top of the script | 10:32 |
mgedmin | cool, thanks! | 10:32 |
wgrant | It'll print out the requests | 10:32 |
cjwatson | It doesn't look too horrible, although I'd probably use Archive.copyPackages (which in turn requires using the "devel" API version) rather than Archive.syncSources. | 10:37 |
cjwatson | The interface is a bit different, but it's asynchronous and thus doesn't tend to suffer from the timeouts you can easily get with Archive.syncSources. | 10:37 |
cjwatson | It also corresponds to what the web UI does these days. | 10:38 |
mgedmin | the most common use case is where no copying can be done (because the new package is still waiting in the build queue), and that takes about 4 seconds (and 12 HTTP requests) | 10:52 |
mgedmin | I think I can replace three source.getBuilds() with a single archive.getPublishedBinaries() | 10:52 |
mgedmin | oh, a question | 10:53 |
mgedmin | is there really no way to find out the estimated build time in the API? | 10:53 |
wgrant | It's not presently exposed. | 11:01 |
mgedmin | ok | 11:14 |
pmatulis | for https://bugs.launchpad.net/ubuntu-release-notes/+bugs?advanced=1 , why can one only target 12.04 releases? | 13:05 |
wgrant | pmatulis: Only the precise series has milestones: https://launchpad.net/ubuntu-release-notes/+series | 13:06 |
pmatulis | wgrant: hm, ok | 13:07 |
cjwatson | I believe we use series targeting for the others. | 13:09 |
=== anmar is now known as anmar|food | ||
=== tasdomas is now known as tasdomas_afk | ||
=== anmar|food is now known as anmar | ||
DaphneGreengrass | anyone here experiencing slow upload speeds to LP? Im only getting ~20kb/s transfers, though it might be my internet... | 22:42 |
thomi | Could I ask someone to turn on arm builds for ppa:autopilot/experimental please? | 23:40 |
wgrant | thomi: Done | 23:42 |
thomi | wgrant: thanks! I guess I'll need to push new versions of the packages already in that PPA to get ARM builds made, right? | 23:42 |
wgrant | thomi: That's right. | 23:42 |
thomi | cool, thanks | 23:43 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!