[Buildbot-devel] Help with Buildbot MessagePub Status Plugin
Marc-Antoine Ruel
maruel at chromium.org
Wed Mar 10 16:16:08 UTC 2010
Maybe you could be interested in http://codereview.chromium.org/809001 which
is somewhat a generalization of your code. You should look at the
corresponding unit test to see how to write fake http receiver.
<http://codereview.chromium.org/809001/diff/1/3?context=&column_width=80>I'm
still modifying it significantly. I'll try to upstream this this week to
buildbot but I want to make sure this works correctly first. In any case,
your code is simple enough you can keep it as-is too.
MessagePub seems cool but too bad it's interesting feature (SMS) is US-only.
- If you want the RSS/Atom functionality, a
pubsubhubbub<http://code.google.com/p/pubsubhubbub/> hub
could do the deal and lower the load on your buildbot master. The RSS feed *
could* be based off StatusPush but may not be too.
- If you want a gtalk/email notifier, maybe Google AppEngine could do the
deal, its free limit should be well under what most people need; 2000
emails/day and ~650k gtalk message per day.
http://code.google.com/intl/fr/appengine/docs/quotas.html
- Keep in mind buildbot can already send emails with MailNotifier so even
using GAE for emails is moot.
- XMPP and twitter support shouldn't be very hard to write directly into
buildbot but fun to unit test.
Sorry I now see it looks like an advertisement but it's not meant to. You
could probably achieve the same functionality than GAE with raw django with
a self-hosted server, I just never went down that path.
Just sayin'.
M-A
2010/3/10 Sai Venkatakrishnan <saidesertrose2004 at gmail.com>
> Hi all,
>
> I have been using buildbot for sometime and now currently working on
> writing a custom status notification. I want to post data to messagepub (For
> those not familiar http://messagepub.com/) so that it can multiplex
> message to the team at mail, chat and twitter. I used mail.py in
> buildbot/status and webhook_status.py under contrib as reference.
>
>
> Here is the code as github gist http://gist.github.com/327825 (I don't
> want to clutter mail so gist :). The usage is as normal notifier append it
> to the status array in buildmasterconfig dict.
>
> from buildbot.status import messagepub
>
> c['status'].append(messagepub.Notifier(recipient="test at blah.com",
> key="your messagepub access key"))
>
> I can see the master startup that the notifier gets added. But after that
> it doesn't seem to function at all. I am not able to get the log messages.
> Can any of you buildbot internals experts help me out why this doesn't seem
> to work... Incentive for fixing this is "Code can add it as contrib and give
> awesome notifications using messagepub. Even SMS and voice channels are
> available :)".
>
>
> Please let me know what I am doing wrong in the code? Smack me in the head
> if I have done something silly :P.
>
> P.S Is there any way to test plugin in buildbot without running the build.
> Unit tests run fine but thing doesn't seem to work as a whole...
>
> --
> Regards,
> Sai
>
> http://developer-in-test.blogspot.com
> Fork me @ http://github.com/saivenkat/
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20100310/3eee3618/attachment.html>
More information about the devel
mailing list