Skip to content

Commit

Permalink
Workaround for buildbot#601, when a build is locked it may not be in …
Browse files Browse the repository at this point in the history
…currentBui

lds, but also not in the cache or on disk. In that case, the BuilderStatus eventGenerator ends up not returning any builds.
 - I'm not sure of the correct fix, so just ignore failures looking up the most
   recent build.
  • Loading branch information
ddunbar committed Jul 24, 2009
1 parent c47a9f5 commit 98b64bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildbot/status/builder.py
Expand Up @@ -1737,6 +1737,11 @@ def eventGenerator(self, branches=[], categories=[]):
for Nb in range(1, self.nextBuildNumber+1):
b = self.getBuild(-Nb)
if not b:
# HACK: If this is the first build we are looking at, it is
# possible it's in progress but locked before it has written a
# pickle; in this case keep looking.
if Nb == 1:
continue
break
if branches and not b.getSourceStamp().branch in branches:
continue
Expand Down

0 comments on commit 98b64bf

Please sign in to comment.