API export of IDistroSeries.getBuildRecords() can't filter on active source publications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Launchpad itself |
Low
|
Unassigned |
Bug Description
The API export of IDistroSeries.
This is most useful when looking for FTBFS builds.
Changed in soyuz: | |
assignee: | nobody → Julian Edwards (julian-edwards) |
importance: | Undecided → Medium |
milestone: | none → 2.2.5 |
status: | New → Triaged |
tags: | added: api |
tags: | added: trivial |
Changed in soyuz: | |
milestone: | 2.2.5 → 2.2.6 |
Changed in soyuz: | |
status: | Triaged → In Progress |
Julian Edwards (julian-edwards) wrote : | #1 |
William Grant (wgrant) wrote : | #2 |
I was intending to use it to more efficiently generate a full package vs. arch grid of FTBFSes for a distroseries. getBuildSummari
Julian Edwards (julian-edwards) wrote : Re: [Bug 369112] Re: API export of IArchive.getBuildSummariesForSourceIds could be more useful | #3 |
On Monday 08 June 2009 23:54:07 William Grant wrote:
> I was intending to use it to more efficiently generate a full package
> vs. arch grid of FTBFSes for a distroseries.
> getBuildSummari
> 7 requests for each package.
How are you getting hold of the SPPH objects? ie. how are you filtering which
ones you get?
William Grant (wgrant) wrote : Re: API export of IArchive.getBuildSummariesForSourceIds could be more useful | #4 |
I find all failed, current builds, and get the SPPHs from them.
Michael Bienia (geser) wrote : | #5 |
For reference:
http://
Perhaps you have some ideas how to improve it or the LP API.
Julian Edwards (julian-edwards) wrote : | #6 |
William
Celso says he showed you the launchpadlib code snippet that uses a different way to get the failed builds. He and I both think that this is more efficient that the current way you're using, but is still not optimal because you end up throwing away some builds that were downloaded since they no longer have published sources.
So, I will change the description on this bug to reflect that series.
Changed in soyuz: | |
assignee: | Julian Edwards (julian-edwards) → nobody |
milestone: | 2.2.6 → none |
status: | In Progress → Triaged |
tags: | removed: trivial |
summary: |
- API export of IArchive.getBuildSummariesForSourceIds could be more - useful + API export of IDistroSeries.getBuildRecords() should optionally filter + on active source publications |
description: | updated |
Fabien Tassin (fta) wrote : Re: API export of IDistroSeries.getBuildRecords() should optionally filter on active source publications | #7 |
something as simple as this is not usable:
for pkg in ppa.getBuildRec
csp = pkg.current_
if not csp:
if pkg.buildstate == 'Successfully built':
print " %-28s %-8s %-5s %-20s %s" % (csp.source_
in my case, it takes ~10 minutes, does ~300 HTTP requests, and download more than 10MB, just to display between 0 and 12 lines.
Jelmer Vernooij (jelmer) wrote : | #8 |
I'm going to see how far I can get with this one...
Changed in soyuz: | |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Changed in soyuz: | |
assignee: | Jelmer Vernooij (jelmer) → nobody |
Changed in launchpad: | |
importance: | Medium → Low |
summary: |
- API export of IDistroSeries.getBuildRecords() should optionally filter - on active source publications + API export of IDistroSeries.getBuildRecords() can't filter on active + source publications |
William, what are you doing with your application here? I wonder if we can be more helpful than simply exposing IDs.