Merge lp:~cjwatson/launchpad/buildstatus-aborted into lp:launchpad
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 16727 |
Proposed branch: | lp:~cjwatson/launchpad/buildstatus-aborted |
Merge into: | lp:launchpad |
Diff against target: |
325 lines (+124/-66) 8 files modified
lib/lp/buildmaster/interfaces/builder.py (+15/-6) lib/lp/buildmaster/manager.py (+5/-20) lib/lp/buildmaster/model/builder.py (+27/-9) lib/lp/buildmaster/model/buildfarmjobbehavior.py (+26/-1) lib/lp/buildmaster/tests/test_builder.py (+8/-2) lib/lp/buildmaster/tests/test_buildfarmjobbehavior.py (+29/-3) lib/lp/buildmaster/tests/test_manager.py (+0/-25) lib/lp/soyuz/tests/test_binarypackagebuildbehavior.py (+14/-0) |
To merge this branch: | bzr merge lp:~cjwatson/launchpad/buildstatus-aborted |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email:
|
Commit message
Add support for ABORTED build slave status, in preparation for using it on slaves.
Description of the change
As discussed at the releng sprint, this branch adds support for an "ABORTED" build slave status, allowing the combination of BuilderStatus.
After some feedback from William Grant, I also refactored how builder failures are handled, and thereby arranged for an unsolicited ABORTED slave status (i.e. not in response to CANCELLING) to cause the manager to attempt to recover the slave.
I'm not sure we can QA this until the new launchpad-buildd is ready that uses this, at which point we can QA it all at once. However, we should at least check that slave recovery still works in other situations.
This is too happy to kill non-virtual builders. handleFailure (which is called on eg. a connection failure due to a network glitch) will immediately disable a non-virtual builder, whereas this was previously only done after a guilty judgement by assessFailureCo unts. It'll probably also end up double-resetting virtual builders, though that's by no means a critical issue.