[Buildbot-devel] Continuous scheduler

Bailey, Darragh dbailey at hp.com
Wed Mar 7 15:20:40 UTC 2007


Is there any possibility that this could cause problems for buildbot if
a build keeps failing very shortly after it's started, i.e. within 2-3
seconds.

--
Regards,
Darragh Bailey

Systems Software Engineer
Hewlett Packard Galway Ltd.
+353 91 75-4674

> -----Original Message-----
> From: buildbot-devel-bounces at lists.sourceforge.net
[mailto:buildbot-devel-
> bounces at lists.sourceforge.net] On Behalf Of Patrick Farrell
> Sent: 06 March 2007 23:47
> To: Brian Warner
> Cc: buildbot-devel at lists.sourceforge.net
> Subject: Re: [Buildbot-devel] Continuous scheduler
> 
> Hi,
> 
> Thanks for your help! For reference here is the final version
> that we're using:
> 
> class ContinuousBuildScheduler(scheduler.BaseScheduler):
>      def __init__(self, name, builderNames):
>          scheduler.BaseScheduler.__init__(self, name)
>          self.builderNames = builderNames
>      def startService(self):
>          scheduler.BaseScheduler.startService(self)
>          reactor.callLater(0, self.fire)
>      def fire(self):
>          bs = buildset.BuildSet(self.builderNames,
>                                 sourcestamp.SourceStamp(), # build
HEAD
>                                 "continuous scheduler said to build")
>          d = bs.waitUntilFinished()
>          self.parent.submitBuildSet(bs)
>          d.addCallback(self.buildFinished)
>      def buildFinished(self, bss):
>          self.fire()
>      def listBuilderNames(self):
>          return self.builderNames
>      def getPendingBuildTimes(self):
>          return []
> 
> It does exactly what we're looking for.
> 
> Thanks again,
> 
> --
> Patrick Farrell
> 
>
------------------------------------------------------------------------
-
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel




More information about the devel mailing list