[Buildbot-devel] How to synchronise parallel builds for correct mail notification

Erik mail654 at gmx.de
Wed Sep 4 06:14:51 UTC 2013


Hi Jared,

Jared Grubb <jared.grubb at ...> writes:
> 
> So you want all the builds to run concurrently, but you want to serialize
the mail notifications. I dont
> think this is possible in buildbot right now, since the emails are
generated right after the build
> completes, so there's not an obvious place to synchronize them that I can
think of.
> 

I wonder that noone else had this problem already.
>From a theoretical point of view a solution should be quite easy, I think. 

If one build is finished, currently you look if the previous build was
already finished and send a mail in case of build failure or build is missing.

That should be changed like this:
If one build is finished, you look if previous build was finished and if
not, you look if previous build is still running (Buildmaster should know
that). If so you wait (with timeout) for previous build completion and
decide then to send mail.

I think for a buildbot developer it should be easy to implement.


> If this is important to you and you'd like to write a patch, we'd be happy
to work with you to help you get around
> the codebase and find a good way to do it. If you are not able to write
the patch, at least file a Trac issue and
> maybe someone will take it up. More volunteers are always welcome though :) 
> 

Sure. Unfortunately I have not the time to improve my Python skills and dive
into buildbot code base, sorry.

It would be great if any of the buildbot developer could pick up this issue.


Erik


> On Sep 1, 2013, at 23:59, Erik <mail654 at ...> wrote:
> > Dustin J. Mitchell <dustin <at> v.igoro.us> writes:
> >> What is the problem, exactly?
> > 
> > The problem was described in my original post, here a copy:
> > 
> > I'm using buildbot to build several projects (every project/target
> > combination is one "builder") on some buildslaves.
> > 
> > I enabled all builders on all buildslaves to have the best efficiency.
> > I configured mail notification with mode="problem".
> > 
> > Unfortunately some buildslaves are much faster than others, so it can happen
> > one build (on a fast slave) is
> > finished, before previous build (on a slow slave) was finished.
> > If this unfinished build will not compile (and the next build also), the
> > commiter of source code changes for
> > both builds were notified about the problem.
> > But the second commiter did not cause this compile problem.
> > 
> > How can I synchronise the builds, that mail notification for a failed build
> > only be send if the prev build was finished?
> > 
> > Is this possible with Blocker class or Locks?
> > 
> > Some example code would be great, because I'm not very good in python
> > programming.
> > 
> > 
> > 
> > Thank you,
> > 
> > Erik
> > 
> > 
> >
------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Buildbot-devel mailing list
> > Buildbot-devel at ...
> > https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> 
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> 








More information about the devel mailing list