Merge lp:~henninge/launchpad/bug-581746-serialization-error into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Данило Шеган on 2010-05-20 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 10900 | ||||
| Proposed branch: | lp:~henninge/launchpad/bug-581746-serialization-error | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~danilo/launchpad/bug-580345-devel | ||||
| Diff against target: |
83 lines (+37/-3) 3 files modified
lib/canonical/buildd/debian/changelog (+6/-0) lib/canonical/buildd/slave.py (+3/-2) lib/canonical/buildd/tests/test_buildd_slave.py (+28/-1) |
||||
| To merge this branch: | bzr merge lp:~henninge/launchpad/bug-581746-serialization-error | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Данило Шеган (community) | 2010-05-19 | Approve on 2010-05-20 | |
|
Review via email:
|
|||
Commit Message
Stop the builder from tripping over None not being serializable.
Description of the Change
Tiny little fix that adds some real extra info to BuilderStatus.
| Henning Eggers (henninge) wrote : | # |
| Данило Шеган (danilo) wrote : | # |
How about adding allowNone to XMLRPC constructor as well, so we don't get errors when we possibly hit more bugs and try to serialize None elsewhere?
=== modified file 'lib/canonical/
--- lib/canonical/
+++ lib/canonical/
@@ -546,7 +546,7 @@
"""XMLRPC build daemon slave management interface"""
def __init__(self, config):
- xmlrpc.
+ xmlrpc.
# The V1.0 new-style protocol introduces string-style protocol
# versions of the form 'MAJOR.MINOR', the protocol is '1.0' for now
# implying the presence of /filecache/ /filecache/buildlog and
It would also be nice to test this.
| Данило Шеган (danilo) wrote : | # |
Note that buildd-manager xmlrpc implementation already passes allow_none=True (it uses a different library: xmlrpclib) so it will be able to handle it.

Never mind the changelog entry. The next branch replaces that anyway ...