[Buildbot-devel] Dependent schedulers not being triggered

Kenneth Lareau Ken.Lareau at nominum.com
Fri Feb 16 02:49:32 UTC 2007


Follow-up to my previous message: I have no idea if I'm going in the
right direction here, but I decided to run a few commands from within
a manhole connection:

 >>> pprint.pprint([vars(a) for a in 
gc.get_referrers(buildbot.process.builder.Builder) if isinstance(a, 
buildbot.process.builder.Builder) and (repr(a).find('benchmarking') != -1)])

An example entry from the output:

  {'attaching_slaves': [],
   'botmaster': <buildbot.master.BotMaster instance at 0xb721994c>,
   'buildFactory': <buildbot.process.factory.BuildFactory instance at 
0xb6f34f2c>,
   'buildable': [],
   'builddir': 'dcs-dist-head-benchmarking-0',
   'builder_status': <buildbot.status.builder.BuilderStatus instance at 
0xb42936ac>,
   'building': [],
   'locks': [<buildbot.locks.SlaveLock instance at 0xb6f314cc>],
   'name': 'benchmark dcs-dist benchmarking-0',
   'slavenames': ['benchmarking-0'],
   'slaves': [<buildbot.process.builder.SlaveBuilder instance at 
0xb31ec74c>],
   'watchers': {'detach_all': [], 'attach': [], 'idle': [], 'detach': []}}


I compared this to a working builder:

 >>> pprint.pprint([vars(a) for a in 
gc.get_referrers(buildbot.process.builder.Builder) if isinstance(a, 
buildbot.process.builder.Builder) and (repr(a).find('dcs-dist head') != 
-1)])

An example entry from the output:

  {'attaching_slaves': [],
   'botmaster': <buildbot.master.BotMaster instance at 0xb721994c>,
   'buildFactory': <buildbot.process.factory.BuildFactory instance at 
0xb6f707ac>,
   'buildable': [],
   'builddir': 'dcs-dist-head-rhel-4-i386-0',
   'builder_status': <buildbot.status.builder.BuilderStatus instance at 
0xb44257cc>,
   'building': [],
   'expectations': <buildbot.status.progress.Expectations instance at 
0xb30b3d4c>,
   'locks': [<buildbot.locks.SlaveLock instance at 0xb6f6eb2c>],
   'name': 'dcs-dist head rhel-4-i386-0',
   'slavenames': ['rhel-4-i386-0'],
   'slaves': [<buildbot.process.builder.SlaveBuilder instance at 
0xb31fe90c>],
   'watchers': {'detach_all': [], 'attach': [], 'idle': [], 'detach': []}}


The one difference I note between the entries is the latter has an
'expectations' key; note that the latter is run from a periodic
scheduler, while the former is run from a dependent scheduler.  Is
this an expected difference, or will it help in debugging this issue
at all?


Ken Lareau
Nominum, Inc.




More information about the devel mailing list