green builds not visible in mixed series

Bug #588050 reported by Fabien Tassin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

In a given series, when at least one arch has either failed or is unpublished or has missing deps (...), getBuildSummariesForSourceIds() doesn't report anything about successful builds:

Compare this build: https://edge.launchpad.net/~ubuntu-mozilla-security/+archive/ppa/+sourcepub/1153380/+listing-archive-extra
(6 arches successful, 1 failed = sparc)

>>> builds = ppa.getBuildSummariesForSourceIds(source_ids = '1153380')
>>> builds
{u'1153380': {u'status': u'FAILEDTOBUILD', u'builds': [{u'can_be_retried': True, u'current_source_publication_link': u'https://api.launchpad.net/1.0/~ubuntu-mozilla-security/+archive/ppa/+sourcepub/1153380', u'can_be_rescored': False, u'build_log_url': u'https://launchpad.net/~ubuntu-mozilla-security/+archive/ppa/+build/1760876/+files/buildlog_ubuntu-hardy-sparc.firefox-3.0_3.6.4+build6+nobinonly-0ubuntu0.8.04.1_FAILEDTOBUILD.txt.gz', u'datebuilt': u'2010-05-28T19:18:12.463611+00:00', u'title': u'sparc build of firefox-3.0 3.6.4+build6+nobinonly-0ubuntu0.8.04.1 in ubuntu hardy RELEASE', u'distribution_link': u'https://api.launchpad.net/1.0/ubuntu', u'resource_type_link': u'https://api.launchpad.net/1.0/#build', u'buildstate': u'Failed to build', u'datecreated': u'2010-05-27T22:50:35.033198+00:00', u'pocket': u'Release', u'http_etag': u'"dd0a88d7ee5e385255529709a692d32de68cc03e-51923307cac4f64cea2d5909bf671b41661bf64b"', u'dependencies': u'', u'date_first_dispatched': u'2010-05-28T19:08:21.674930+00:00', u'self_link': u'https://api.launchpad.net/1.0/~ubuntu-mozilla-security/+archive/ppa/+build/1760876', u'arch_tag': u'sparc', u'archive_link': u'https://api.launchpad.net/1.0/~ubuntu-mozilla-security/+archive/ppa', u'upload_log_url': None}]}}
>>> pp.pprint(builds)
{u'1153380': {u'builds': [{u'arch_tag': u'sparc',
                           u'archive_link': u'https://api.launchpad.net/1.0/~ubuntu-mozilla-security/+archive/ppa',
                           u'build_log_url': u'https://launchpad.net/~ubuntu-mozilla-security/+archive/ppa/+build/1760876/+files/buildlog_ubuntu-hardy-sparc.firefox-3.0_3.6.4+build6+nobinonly-0ubuntu0.8.04.1_FAILEDTOBUILD.txt.gz',
                           u'buildstate': u'Failed to build',
                           u'can_be_rescored': False,
                           u'can_be_retried': True,
                           u'current_source_publication_link': u'https://api.launchpad.net/1.0/~ubuntu-mozilla-security/+archive/ppa/+sourcepub/1153380',
                           u'date_first_dispatched': u'2010-05-28T19:08:21.674930+00:00',
                           u'datebuilt': u'2010-05-28T19:18:12.463611+00:00',
                           u'datecreated': u'2010-05-27T22:50:35.033198+00:00',
                           u'dependencies': u'',
                           u'distribution_link': u'https://api.launchpad.net/1.0/ubuntu',
                           u'http_etag': u'"dd0a88d7ee5e385255529709a692d32de68cc03e-51923307cac4f64cea2d5909bf671b41661bf64b"',
                           u'pocket': u'Release',
                           u'resource_type_link': u'https://api.launchpad.net/1.0/#build',
                           u'self_link': u'https://api.launchpad.net/1.0/~ubuntu-mozilla-security/+archive/ppa/+build/1760876',
                           u'title': u'sparc build of firefox-3.0 3.6.4+build6+nobinonly-0ubuntu0.8.04.1 in ubuntu hardy RELEASE',
                           u'upload_log_url': None}],
              u'status': u'FAILEDTOBUILD'}}
>>>

only the sparc build is visible. nothing about the other 6 arches.

Tags: api lp-soyuz
Revision history for this message
Fabien Tassin (fta) wrote :
description: updated
Curtis Hovey (sinzui)
affects: launchpad → soyuz
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Yes, the getBuildSummariesForSourceIds() was originally created and exposed just for the PPA Ajax updating (which, by design, only shows you the one failed build in the UI, even if there are 4 successful), where we wanted the information only for the current batch of builds displayed on the page.

Now that it's being used for other things, I agree it should be generally useful (and the PPA page JS can be updated to only use the info it is interested in) - either that or we should think through a better solution to suit your needs... maybe simply: IArchive.getBuildSummaries() which returned a summary of the builds for all the currently published sources?

Changed in soyuz:
status: New → Triaged
importance: Undecided → Low
tags: added: api
Revision history for this message
Fabien Tassin (fta) wrote :

is there a work-around i can use until it's being fixed?
/+listing-archive-extra has everything i need, but i can't find it in the API

Revision history for this message
Julian Edwards (julian-edwards) wrote :

That is a page fragment and is not in the API as such. Why don't you jump in and add some code in Launchpad to return what you need? One of us will be happy to sponsor you.

Revision history for this message
Fabien Tassin (fta) wrote :

..but the problem is that i have no idea where to start.
I assume i need a local instance and it seems impossible to replicate a setup with the build information i want to expose.

I would probably be able to do it on my own h/w if there was a package ready to install, but i understand there's none.

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.