[Buildbot-commits] [Buildbot] #184: New build step for synchronizing concurrent builds: Blocker

Buildbot buildbot-devel at lists.sourceforge.net
Thu Aug 26 10:07:59 UTC 2010


#184: New build step for synchronizing concurrent builds: Blocker
------------------------+---------------------------------------------------
Reporter:  gward        |       Owner:  gward     
    Type:  enhancement  |      Status:  assigned  
Priority:  major        |   Milestone:  0.8.+     
 Version:  0.7.6        |    Keywords:  buildcoord
------------------------+---------------------------------------------------

Comment(by chrb):

 dustin, your link to buildbot.net/trac/report/34 in the last comment links
 to a non-existent report.

 I would like to see something like this that supports merging the
 buildpath. I was thinking of using triggers as gward suggested - creating
 some trigger that requires ''n'' previous buildsteps to have succeeded,
 like:
 {{{
 from buildbot.process.buildstep import SUCCESS
 class SyncTrigger(Trigger):

     def __init__(self, required):
         self.required = required
         self.triggers = 0

     def start(self):
         p = self.build.getProperties()
         if 'reset' in p:
             self.triggers = 0
         if 'done' in p and self.triggers < self.required :
             self.triggers += 1
             i = self.required - self.triggers
             self.step_status.setText(['waiting for '+i+' builds'])
             return self.finished(SUCCESS)
         else:
             return Trigger.start(self)
 }}}
 You would need to send a trigger with 'reset' keyword from the Build that
 initiates the flow-control split, and triggers with 'done' keyword at the
 end of each concurrent Build.

-- 
Ticket URL: <http://buildbot.net/trac/ticket/184#comment:19>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list