[10:30] <mgedmin> is this a good place to talk about the launchpad API/python-launchpadlib?
[10:30] <cjwatson> Yes
[10:31] <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:32] <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:37] <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:38] <cjwatson> It also corresponds to what the web UI does these days.
[10:52] <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:53] <mgedmin> oh, a question
[10:53] <mgedmin> is there really no way to find out the estimated build time in the API?
[11:01] <wgrant> It's not presently exposed.
[11:14] <mgedmin> ok
[13:05] <pmatulis> for https://bugs.launchpad.net/ubuntu-release-notes/+bugs?advanced=1 , why can one only target 12.04 releases?
[13:06] <wgrant> pmatulis: Only the precise series has milestones: https://launchpad.net/ubuntu-release-notes/+series
[13:07] <pmatulis> wgrant: hm, ok
[13:09] <cjwatson> I believe we use series targeting for the others.
[22:42] <DaphneGreengrass> anyone here experiencing slow upload speeds to LP? Im only getting ~20kb/s transfers, though it might be my internet...
[23:40] <thomi> Could I ask someone to turn on arm builds for ppa:autopilot/experimental please?
[23:42] <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:43] <thomi> cool, thanks