[Buildbot-devel] mult-changesource patch

Hans Lellelid hans at velum.net
Fri Oct 3 13:58:25 UTC 2008



On Fri, 03 Oct 2008 09:57:28 -0400, Hans Lellelid <hans at velum.net> wrote:
> Sorry :)  Apparently my webmail app requires that I click the *upload*
> button :)
> 
> On Fri, 03 Oct 2008 15:52:53 +0200, Christian Unger
> <christian.unger at me.com> wrote:
>> unfortunately there is no no diff attached to your message
>>
>>
>>
>> cu
>> christian unger
>>
>>
>>
>>
>> On 03.10.2008, at 15:22, Hans Lellelid wrote:
>>
>>> Hi folks,
>>>
>>> After exchanging a couple emails with Dustin yesterday, I put
>>> together a
>>> basic patch to add multi changesource support to Buildbot (or more
>>> specifically tracking of change source to scheduler).  I wanted to
>>> get some
>>> feedback on this before I wrap it up and add it to a Trac enhancement
>>> ticket.
>>>
>>> What I did was to add a 'name' attribute to the ChangeSource (so far
>>> only
>>> to SVNPoller) and then added a 'sourcename' attribute to the Change
>>> object
>>> (so the system can keep track of which source a particular Change came
>>> from) and also an optional 'sourcename' attribute to the Scheduler
>>> class
>>> which works like the 'branch' attribute to limit the changes that a
>>> scheduler cares about.
>>>
>>> This all sounds very minor (and was only a handful of lines of
>>> code), but
>>> it was really important for us to be able to have a single
>>> buildmaster with
>>> many projects and this seemed to be the easiest path to that solution.
>>>
>>> A few notes:
>>> - This isn't really "multi-project" as much as multi-changesource and
>>> changesource filtering on schedulers (e.g. there's no change to the
>>> web
>>> frontend to track different projects)
>>> - I did add the source name to the logging messages, meaning that if
>>> it's
>>> not specifed you may see something like
>>> "SVNPoller(None:http://your.repo/url) initializing"
>>> - As mentioned I only added the parameter support to the SVNPoller,
>>> but am
>>> happy to add it to the other change source classes if this patch
>>> would be
>>> accepted
>>>
>>> The attached diff is against the Darcs trunk repo.
>>>
>>> Thanks-
>>> Hans
>>>
>>>
>>>
>>
> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win
>>> great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in
>>> the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Buildbot-devel mailing list
>>> Buildbot-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi-changesource-svnonly.patch
Type: application/octet-stream
Size: 3355 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20081003/d1d66c3a/attachment.obj>


More information about the devel mailing list