Merge lp:~cjwatson/launchpad/api-build-builder into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Ian Booth on 2012-04-10 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15072 | ||||
| Proposed branch: | lp:~cjwatson/launchpad/api-build-builder | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
259 lines (+48/-46) 3 files modified
lib/lp/buildmaster/interfaces/buildfarmjob.py (+5/-4) lib/lp/soyuz/stories/webservice/xx-builds.txt (+2/-0) lib/lp/soyuz/tests/test_binarypackagebuild.py (+41/-42) |
||||
| To merge this branch: | bzr merge lp:~cjwatson/launchpad/api-build-builder | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Benji York (community) | code | 2012-04-06 | Approve on 2012-04-09 |
|
Review via email:
|
|||
Commit Message
Export the builder property on builds.
Description of the Change
== Summary ==
As I noted in bug 975579, it's annoying that the API doesn't expose which builder was used for a given build.
== Proposed fix ==
Export it.
== Implementation details ==
I tidied up some tests a bit to get my LoC delta to zero. Along the way I happened to notice that one of the tests in TestBinaryPacka
== Tests ==
bin/test -vvct test_binarypack
== Demo and Q/A ==
Load the object corresponding to any successful build in the API, and check that its builder property is correct. Likewise for a build in needs-build state (builder should be None).
== lint ==
None.

This branch looks good. The removal of the "fail*" assertions is a nice touch.