[Buildbot-commits] [SPAM] [Buildbot] #801: getLastFinishedBuild() fails with simultaneous builds
Buildbot
buildbot-devel at lists.sourceforge.net
Mon Apr 19 15:45:04 UTC 2010
#801: getLastFinishedBuild() fails with simultaneous builds
---------------------+------------------------------------------------------
Reporter: maruel | Owner: maruel
Type: defect | Status: new
Priority: critical | Milestone: undecided
Version: master | Keywords:
---------------------+------------------------------------------------------
If you connect 2 slaves on a builder and call
IBuilderStatus.getLastFinishedBuild() on the builder, it will fail to
return the last completed build if both are building simultaneously.
This function should be changed to do a loop instead but a trivial loop
won't work since IBuilderStatus.getBuild() may return None when it has
pending requests, it should still be clamped when it hits the end of the
build list in case there is no finished build yet.
This currently breaks console view with simultaneous builds.
I want to write a unit test first. :)
--
Ticket URL: <http://buildbot.net/trac/ticket/801>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list