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
1=== modified file 'lib/lp/buildmaster/manager.py'
2--- lib/lp/buildmaster/manager.py 2010-04-23 15:03:02 +0000
3+++ lib/lp/buildmaster/manager.py 2010-05-27 13:35:57 +0000
4@@ -201,7 +201,10 @@
5 builder = getUtility(IBuilderSet)[self.slave.name]
6 # Builders that fail to reset should be disabled as per bug
7 # 563353.
8- builder.failBuilder(self.info)
9+ # XXX Julian bug=586362
10+ # This is disabled until this code is not also used for dispatch
11+ # failures where we *don't* want to disable the builder.
12+ # builder.failBuilder(self.info)
13 self._cleanJob(builder.currentjob)
14
15
16
17=== modified file 'lib/lp/buildmaster/tests/test_manager.py'
18--- lib/lp/buildmaster/tests/test_manager.py 2010-04-23 13:42:50 +0000
19+++ lib/lp/buildmaster/tests/test_manager.py 2010-05-27 13:35:57 +0000
20@@ -832,7 +832,9 @@
21
22 self.assertJobIsClean(job_id)
23
24- self.assertFalse(builder.builderok)
25+ # XXX Julian
26+ # Disabled test until bug 586362 is fixed.
27+ #self.assertFalse(builder.builderok)
28 self.assertEqual(None, builder.currentjob)
29
30 def testFailDispatchResult(self):