[Buildbot-devel] Send only one mail even when several builds fail
Marc-Antoine Ruel
maruel at chromium.org
Mon Oct 25 13:23:04 UTC 2010
Le 17 octobre 2010 05:19, David Engster <deng at randomsample.de> a écrit :
> I've set up buildbot running 5 different builders; now, when the build
> fails due to a commit, it mostly fails on all those builders, leading to
> five mails being sent. Is there some means to 'merge' those mails into
> one? Or maybe to stop sending further mails after the first was sent,
> since this is enough to get the committers attention?
>
> Cheers,
> David
>
I have something that has a similar behavior;
For a build on a certain revision, it only sends the email once if:
- there's a blamelist and a revision
- the slave is still connected
- no other build failed for the same revision
- the build[-1] didn't fail on this builder
- the slave and build step was whitelisted
- tree is open (you don't care about that)
The code is there;
http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/master/gatekeeper.py?view=markup
It's not usable as-is for you but you should be able to extract the
interesting code and inherit from mail.MailNotifier and instantiate this new
class instead of MailNotifier in your master.cfg. Note
that chromium_notifier.ChromiumNotifier is just a wrapper around
MailNotifier, you'll find the source code just beside gatekeeper.py.
<http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/master/gatekeeper.py?view=markup>
M-A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20101025/22d80d53/attachment.html>
More information about the devel
mailing list