[Buildbot-devel] Problem with Triggerable Schedulers

Gareth Armstrong gareth.armstrong at hp.com
Mon Aug 31 15:05:14 UTC 2009


Hello Folks,

I would like to pick your brains on a problem that I have.  I have 
recently changed projects and am in the process of putting in place a 
buildbot for my new group.  Having a little time to experiment, I 
decided to get a little more elaborate with my buildbot setup.

Throwing KISS to the wind, I set up some Triggerable schedulers and 
Triggers steps similar to the example given for Triggerable Scheduler in 
Section 4.5.7 of the current buildbot manual 
(http://djmitche.github.com/buildbot/docs/0.7.11/#Triggerable-Scheduler). My 
set master and slaves are run on Rhel5 with Twisted 8.20 and buildbot 
0.7.11p3.

I have a base scheduler with a builder which contains a buildfactory 
something like this:

          bf = BuildFactory()
         whenever_build_scheduler_name = ('%s-whenever-build-scheduler' %
                                          self.proj_info['name'])
         bf.addStep(Trigger(schedulerNames=[whenever_build_scheduler_name],
                            waitForFinish=True,
                            updateSourceStamp=True,
                            haltOnFailure=True))

         pkg_scheduler_name = ('%s-package-scheduler' %
                               self.proj_info['name'])
         bf.addStep(Trigger(schedulerNames=[pkg_scheduler_name],
                            waitForFinish=True,
                            updateSourceStamp=True,
                            haltOnFailure=True))

         test_scheduler_name = ('%s-test-scheduler' %
                                self.proj_info['name'])
         bf.addStep(Trigger(schedulerNames=[test_scheduler_name],
                            waitForFinish=True,
                            updateSourceStamp=True,
                            haltOnFailure=True))

Firing the main scheduler works great and the three triggered schedulers 
are queued.  However, whether or not the buildfactory of the first of 
these triggered schedulers passes or fails, the upstream scheduler (the 
one that launched the others) considering itself to be still building.

Are there are gotchas or is this a bug?

All the best,

Gareth

-- 
-------------------------------------------------------------------------------
  Gareth ARMSTRONG
  HP Communications&  Media Solutions
  Email  : gareth.armstrong at hp.com
  Phone  : +33 (0)4.76.14.43.89
-------------------------------------------------------------------------------






More information about the devel mailing list