[Buildbot-devel] Updating scheduler to 0.8.x, pretty lost
Axel Hecht
l10n.moz at googlemail.com
Mon Dec 27 11:47:12 UTC 2010
Hi folks,
I've just started to look if I can update my scheduler code from 0.7.12+ to
0.8.3, and I'm pretty lost. Help?
The first thing I notice is that the BuildSet objects disappeared, which
makes my job tricky.
I have helper builds in my setup, which are used to parse configuration from
the net that's needed for the scheduler. To do things right, I wait for
those builds to finish before proceeding with the scheduler logic. I.e.,
pseudo-code would look like
if change is config_change:
bs=submitConfigBuildSet()
d = bs.waitUntilFinished()
d.addCallback(checkForRealBuilds)
else:
checkForRealBuilds()
Any recommendation on how to do BuildSet.waitUntilFinished() in a scheduler?
The follow up question I'll have is, my code likely adds some hundred
buildsets, same builder with different properties. Any recommendations on
how to issue those? Reading the code it looks like 100 times 10 db
connections or something like that, if just calling into db.create_buildset?
Real code for the first is
http://hg.mozilla.org/users/axel_mozilla.com/locale-inspector/file/730997d50111/l10ninsp/scheduler.py#l237,
the latter is in
http://hg.mozilla.org/users/axel_mozilla.com/locale-inspector/file/730997d50111/l10ninsp/scheduler.py#l325
Thanks
Axel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20101227/6c81c604/attachment.html>
More information about the devel
mailing list