[Buildbot-devel] source change for sf.net hosted CVS

Mark Pauley mpauley at apple.com
Thu Feb 1 21:56:40 UTC 2007


Sorry guys, been busy... you know how it is ;)

I'm still working on the CVSPolledSource merge.
I'm just hacking through the tests now.  Thanks to the p4poller  
tests, think I have a pretty good idea of how to test this sucker.

One issue I'd like to mention is that CVS is file-centric, that is  
CVS has a different version number for every file.
Currently, my hack is to just check a repository out to a given  
sandbox location on the master, and perform cvs update on that  
directory, and then examine the logs to get the details.
I shouldn't need to do this for the tests, all of the data is static,  
but still the solution smells weak and requires something that none  
of the other source change modules require.

This is not now p4 operates apparently, and I think my method is a  
big fat hacky hack.  It works, but it's ugly.  Can anyone else think  
of a better way to do this?


_Mark

On Jan 22, 2007, at 3:23 PM, Mark Pauley wrote:

> Okay, I'll try to have this done in a few days.
>
> thanks
>
> _Mark
>
> On Jan 22, 2007, at 12:54 PM, Stefan Kost wrote:
>
>> Hi Mark,
>>
>> yes! I would like to give it a shot, thanks for the offer.
>>
>> Stefan
>>
>> Mark Pauley wrote:
>>> I have a cvs polling change-source implementation.  Anyone  
>>> interested in
>>> my trying to push this upstream?
>>>
>>> _Mark
>>>
>>> On Jan 21, 2007, at 9:16 AM, Stefan Kost wrote:
>>>
>>>> Hi Brian,
>>>>
>>>> the mail idea wont work well for sf.net hosted project as there  
>>>> is a
>>>> sync delay
>>>> between the developer cvs and the read only cvs. I was looking at
>>>>    http://buildbot.cvs.sourceforge.net/buildbot/buildbot/contrib/
>>>>
>>>> viewcvspoll.py seems to directl access the viewcvs mysql  
>>>> database :(
>>>> fakechange.py from the commit-hook looks good, but then one  
>>>> still has
>>>> to handle
>>>> the delay and I am not sure if they have twisted installed on the
>>>> sf.net cvs
>>>> machines.
>>>>
>>>> Any other ideas? I wonder if something like this could work -  
>>>> checking
>>>> out the
>>>> ChangeLog every e.g. 30 minutes and testing if it has been changed.
>>>>
>>>> Stefan
>>>>
>>>> Brian Warner wrote:
>>>>> "ensonic" <ensonic at hora-obscura.de> writes:
>>>>>
>>>>>
>>>>>> this might be a FAQ. How do I trigger source changes from a  
>>>>>> sf.net
>>>>>> hosted
>>>>>> CVS. I can't install 'buildbot' there to do 'buildbot sendchange'
>>>>>> from the
>>>>>> commithook.
>>>>>
>>>>>
>>>>> For sf.net, I'd suggest using email. There are a couple of  
>>>>> ChangeSources
>>>>> which acquire mail in one way or another, and then parse them to
>>>>> determine
>>>>> which files were changed (by whom, with which comments, etc). The
>>>>> existing
>>>>> code knows how to poll a maildir for new messages, but it  
>>>>> shouldn't
>>>>> be to
>>>>> hard to add others. The parsing function depends upon what code is
>>>>> emitting
>>>>> the mail message.. for sf.net CVS I think you'll want to use  
>>>>> syncmail.
>>>>>
>>>>> The usual approach is to make sure your commithook sends mail to a
>>>>> mailing
>>>>> list (usually named PROJECT-commits), and then subscribe your
>>>>> buildmaster's
>>>>> account to this list. Then each time a file is changed, everybody
>>>>> (including
>>>>> the buildmaster) gets email about it, and the buildmaster turns  
>>>>> that
>>>>> email
>>>>> into a Change object that triggers a new build.
>>>>>
>>>>> http://buildbot.sourceforge.net/manual-0.7.5.html#Other-mail- 
>>>>> notification-ChangeSources
>>>>>
>>>>> contains some information on these sorts of change sources, but it
>>>>> probably
>>>>> needs to be expanded a bit.
>>>>>
>>>>> hope that helps,
>>>>>  -Brian
>>>>
>>>>
>>>> ------------------------------------------------------------------- 
>>>> ------
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>>> share your
>>>> opinions on IT & business topics through brief surveys - and  
>>>> earn cash
>>>> http://www.techsay.com/default.php? 
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Buildbot-devel mailing list
>>>> Buildbot-devel at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>>
>>
>>
>> --------------------------------------------------------------------- 
>> ----
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to  
>> share your
>> opinions on IT & business topics through brief surveys - and earn  
>> cash
>> http://www.techsay.com/default.php? 
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>





More information about the devel mailing list