[Buildbot-devel] Git commit email parser?

Samuli Seppänen samuli at openvpn.net
Wed Oct 20 10:09:36 UTC 2010


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
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: GitMaildirSource.patch
Type: text/x-patch
Size: 2464 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20101020/4ba02213/attachment.bin>


More information about the devel mailing list