[Buildbot-devel] Git commit email parser?

Marc-Antoine Ruel maruel at chromium.org
Wed Oct 20 13:55:33 UTC 2010


I simply meant a stand alone process that receives emails and run "buildbot
sendchange".

M-A

Le 20 octobre 2010 06:09, Samuli Seppänen <samuli at openvpn.net> a écrit :

> Hi,
>
> What could be done in a separate process? I just imitated the existing
> *MaildirSource classes which all parse the message within buildbot and
> return a Change object which triggers the build. Anyways, here's the
> first fully functional version of the patch. It was tested on Buildbot
> 0.7.12 but it seems to apply cleanly against Git's master branch. It has
> not seen much testing yet, so consider this as alpha quality code.
>
> If you're interested in merging this functionality into the development
> tree, I'm more than happy to fix any issues with the patch, write test
> cases and documentation, etc. All other feedback is also welcome, as it
> has been a while since I last wrote any Python.
>
> Samuli
>
> > Note that could be done outside buildbot process too in a separate
> > process, it would maybe make more sense.
> >
> > Le 15 octobre 2010 09:43, Samuli Seppänen <samuli at openvpn.net
> > <mailto:samuli at openvpn.net>> a écrit :
> >
> >
> >     > Is there a way to parse the standard Git post-receive hook emails
> to
> >     > generate Change objects? If not, is adding support as easy as
> >     adding a
> >     > new class (e.g. GitMaildirSource) to "changes/mail.py"? I've
> written
> >     > some Python in the past, so I think I could do it.
> >     >
> >     I've now written the initial version of "GitMaildirSource" class - it
> >     will trigger a build when buildmaster gets a git commit mail to it's
> >     maildir. I still need to parse the email to get correct values for
> >     "comments", "files" and "branch" variables. I'll send a patch here
> >     once
> >     those things are taken care of.
> >
> >     Samuli
> >
>
>
>
> ------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> _______________________________________________
> 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/20101020/8e5c6eab/attachment.html>


More information about the devel mailing list