Ticket #61 (closed defect: fixed)
bonsaipoller bug fixes
| Reported by: | Pike | Owned by: | warner |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.6 |
| Version: | 0.7.5 | Keywords: | |
| Cc: | warner, Pike, joduinn |
Description
bonsaipoller has a few bugs, which we fixed on the mozilla side, see bug 389645.
There's going to be a follow-up patch to use twistd.web instead of liburl to query bonsai without blocking and with a timeout.
Attachments
Change History
Changed 5 years ago by Pike
-
attachment
bonsaipoller.patch
added
comment:1 Changed 5 years ago by Pike
- Cc warner added
- Owner changed from warner to Pike
I just landed bug 389706, which replaces the call to urllib.urlopen with twisted.web.client.getPage. That's making bonsai poller query bonsai asynchronously, and adds support for timeouts, too. Thus, a dying bonsai doesn't block the complete master anymore. It's reviewed by bhearsum.
Changed 5 years ago by Pike
-
attachment
bp-async.patch
added
use twisted.web.client.getPage instead of urllib.urlopen
comment:2 Changed 5 years ago by warner
I tried applying these to current HEAD, but test_bonsaipoller then failed. Am I doing something wrong?
comment:3 Changed 5 years ago by warner
Here are the test failures I observed:
===============================================================================
[ERROR]: buildbot.test.test_bonsaipoller.TestBonsaiPoller.testFullyFormedResult
Traceback (most recent call last):
File "/home/warner/stuff/Projects/BuildBot/trees/bonsaipoller/buildbot/test/test_bonsaipoller.py", line 119, in testFullyFormedResult
br = BonsaiParser(StringIO(goodUnparsedResult))
File "/home/warner/stuff/Projects/BuildBot/trees/bonsaipoller/buildbot/changes/bonsaipoller.py", line 78, in __init__
raise InvalidResultError("Malformed XML in result")
buildbot.changes.bonsaipoller.InvalidResultError: 'Malformed XML in result'
===============================================================================
[ERROR]: buildbot.test.test_bonsaipoller.TestBonsaiPoller.testMissingCiResult
Traceback (most recent call last):
File "/home/warner/stuff/Projects/BuildBot/trees/bonsaipoller/buildbot/test/test_bonsaipoller.py", line 171, in testMissingCiResult
BonsaiParser(StringIO(missingCiResult))
File "/home/warner/stuff/Projects/BuildBot/trees/bonsaipoller/buildbot/changes/bonsaipoller.py", line 78, in __init__
raise InvalidResultError("Malformed XML in result")
buildbot.changes.bonsaipoller.InvalidResultError: 'Malformed XML in result'
-------------------------------------------------------------------------------
Changed 5 years ago by Pike
-
attachment
test_bonsaipoller.patch
added
use content instead of StringIO for tests, now that BonsaiParser? takes content
comment:4 Changed 5 years ago by Pike
- Cc Pike added
oops, you caught me not running tests, obviously. Sorry.
The fix is simple, as the bonsai content handlers now take content instead of file-like objects, we mustn't use StringIO.
comment:5 Changed 4 years ago by Pike
Just landed the fix for the tests on our repository, with r=bhearsum.
comment:6 Changed 4 years ago by warner
- Owner changed from Pike to warner
- Status changed from new to assigned
- Milestone set to 0.7.6
comment:8 Changed 4 years ago by warner
- Status changed from assigned to closed
- Resolution set to fixed
applied, in [c1cb11a5d0377e42766c8d79b32edb2545ec62e9].
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
support empty check-in comments, fix files array for multiple check-ins