SPPH.getBuilds only returns builds in the same series

Bug #783613 reported by Kees Cook
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

The following packages show builds in the web interface, but not the LP API:

cloog-ppl
gcc-4.4
gcj-4.4
gcj-4.5
gcj-4.6
gmp
gmp4
mpclib
ppl

For example, https://launchpad.net/ubuntu/+source/gcc-4.4/4.4.6-2ubuntu1 shows the builds. Clicking on them shows them as having come from a PPA: https://launchpad.net/~ubuntu-toolchain-r/+archive/staging/+build/2451918

This is not visible in the LP API:

$ ./live-api
lp: <launchpadlib.launchpad.Launchpad object at 0x1ffde10>
ubuntu: https://api.launchpad.net/1.0/ubuntu
archive: https://api.launchpad.net/1.0/ubuntu/+archive/primary

series = ubuntu.getSeries(name_or_version='oneiric')
sources = archive.getPublishedSources(status='Published', distro_series=series, pocket='Release', exact_match=True, source_name='gcc-4.4')
print len(sources[0].getBuilds())
0

print len(sources[0].getPublishedBinaries())
93

Kees Cook (kees)
summary: - build records missing for some packages in Oneiric
+ build records missing packages in Oneiric built in native PPA
summary: - build records missing packages in Oneiric built in native PPA
+ build records missing via API for packages in Oneiric built in native
+ PPA
Revision history for this message
William Grant (wgrant) wrote : Re: build records missing via API for packages in Oneiric built in native PPA

It's because it built in natty in the PPA, then was copied to oneiric. SPPH.getBuilds() only returns those with a matching series. This could possibly be regarded as a bug, but maybe not.

summary: - build records missing via API for packages in Oneiric built in native
- PPA
+ spph data model is confusing (records exist where they were built, not
+ where they have been copied to)
Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Kees Cook (kees) wrote : Re: [Bug 783613] Re: build records missing via API for packages in Oneiric built in native PPA

On Mon, May 16, 2011 at 11:58:17PM -0000, William Grant wrote:
> It's because it built in natty in the PPA, then was copied to oneiric.
> SPPH.getBuilds() only returns those with a matching series. This could
> possibly be regarded as a bug, but maybe not.

Hm, what's the correct path to the builds via the API? (It shows up on the
web interface, so there must be logic somewhere...)

I would argue it's a bug given that the binaries are attached to the
record, just not the builds.

--
Kees Cook
Ubuntu Security Team

Revision history for this message
William Grant (wgrant) wrote :

There's no real correct path, unfortunately. The problem here is that getBuildsForSourceIds restricts the series... not sure why. I might delete the constraint and see which tests break.

summary: - spph data model is confusing (records exist where they were built, not
- where they have been copied to)
+ SPPH.getBuilds only returns builds in the same series
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.