Merge lp:~julian-edwards/launchpad/land-bm-cowboy-bug-574993 into lp:launchpad

Proposed by Julian Edwards
Status: Merged
Merged at revision: 10931
Proposed branch: lp:~julian-edwards/launchpad/land-bm-cowboy-bug-574993
Merge into: lp:launchpad
Diff against target: 30 lines (+7/-2)
2 files modified
lib/lp/buildmaster/manager.py (+4/-1)
lib/lp/buildmaster/tests/test_manager.py (+3/-1)
To merge this branch: bzr merge lp:~julian-edwards/launchpad/land-bm-cowboy-bug-574993
Reviewer Review Type Date Requested Status
Michael Nelson (community) code Approve
Review via email: mp+26174@code.launchpad.net

Description of the change

This is a simple branch that lands some currently cowboyed code on cesium that
stops the buildd-manager from disabling builders when there's a communication
failure with the builder (these are usually transient).

The offending code is commented out now, and I've filed a new bug and included
it in the XXX in the code to make it easy to restore the functionality + test
later when the bug is fixed.

To post a comment you must log in.
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Thanks Julian.

If you're feeling pedantic you could update the XXX's:
https://dev.launchpad.net/PolicyandProcess/XXXPolicy

r=me

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/buildmaster/manager.py'
--- lib/lp/buildmaster/manager.py 2010-04-23 15:03:02 +0000
+++ lib/lp/buildmaster/manager.py 2010-05-27 13:35:57 +0000
@@ -201,7 +201,10 @@
201 builder = getUtility(IBuilderSet)[self.slave.name]201 builder = getUtility(IBuilderSet)[self.slave.name]
202 # Builders that fail to reset should be disabled as per bug202 # Builders that fail to reset should be disabled as per bug
203 # 563353.203 # 563353.
204 builder.failBuilder(self.info)204 # XXX Julian bug=586362
205 # This is disabled until this code is not also used for dispatch
206 # failures where we *don't* want to disable the builder.
207 # builder.failBuilder(self.info)
205 self._cleanJob(builder.currentjob)208 self._cleanJob(builder.currentjob)
206209
207210
208211
=== modified file 'lib/lp/buildmaster/tests/test_manager.py'
--- lib/lp/buildmaster/tests/test_manager.py 2010-04-23 13:42:50 +0000
+++ lib/lp/buildmaster/tests/test_manager.py 2010-05-27 13:35:57 +0000
@@ -832,7 +832,9 @@
832832
833 self.assertJobIsClean(job_id)833 self.assertJobIsClean(job_id)
834834
835 self.assertFalse(builder.builderok)835 # XXX Julian
836 # Disabled test until bug 586362 is fixed.
837 #self.assertFalse(builder.builderok)
836 self.assertEqual(None, builder.currentjob)838 self.assertEqual(None, builder.currentjob)
837839
838 def testFailDispatchResult(self):840 def testFailDispatchResult(self):