[Buildbot-devel] cvs vs. win again

Stephen Farrar stephen.farrar at cisra.canon.com.au
Fri Aug 12 02:12:59 UTC 2005


Hi Stephen,

Yes, I have the same problem on windows.  I didn't have the time to 
track down or fix the problem, so instead I set alwaysUseLatest=True in 
the arguments to step.CVS .  This tells buildbot not to use the -D option.

This obviously is not optimal.  My guess is that somewhere in buildbot 
the function that spawns processes is not correct for windows.  That 
function needs to do argument quoting carefully, because it's easy to 
get it wrong.

Could someone who knows more about buildbot can help us out here?

Stephen


Stephen Davis wrote:

> Anyone?  Bueller?
>
> Surely someone out there must be using buildbot + cvs on windows...
>
> stephen
>
> On Aug 9, 2005, at 3:50 PM, Stephen Davis wrote:
>
>> This is bugging me again so I will bug the list again.
>>
>> cvsnt on Windows is cheesing the "-D Tue, ..." CVS timestamp.  If I  
>> compare my OS X box and my windows box, I see:
>>
>> OS X:
>> ---
>> starting cvs operation
>> cvs -z3 -q update -dP -D Tue, 09 Aug 2005 19:50:36 -0000
>>  in dir /Volumes//slave/MyApp-XC/MyApp (timeout 1200 secs)
>>  argv: ['cvs', '-z3', '-q', 'update', '-dP', '-D', 'Tue, 09 Aug  2005 
>> 19:50:36 -0000']
>>
>> Windows
>> ---
>> starting cvs operation
>> C:\WINDOWS\system32\cmd.exe /c cvs - d 
>> :pserver:buildbot at cvs.mycompany.com:/cvs/root -z3 -r -q checkout - d 
>> MyApp -D Tue, 09 Aug 2005 19:50:36 -0000 MyApp
>>  in dir E:\slave-cw\MyApp-W32 (timeout 1200 secs)
>>  argv: ['C:\\WINDOWS\\system32\\cmd.exe', '/c', 'cvs', '-d',  
>> ':pserver:buildbot at cvs.mycompany.com:/cvs/root', '-z3', '-r', '-q',  
>> 'checkout', '-d', 'MyApp', '-D', 'Tue, 09 Aug 2005 19:50:36 -0000',  
>> 'MyApp']
>> cvs checkout: cwd=E:\slave-cw\MyApp-W32 ,current=E:\slave-cw\MyApp-W32
>> cvs server: cannot find module `09' - ignored
>> cvs server: cannot find module `Aug' - ignored
>> cvs server: cannot find module `2005' - ignored
>> cvs server: cannot find module `19:50:36' - ignored
>> cvs server: cannot find module `-0000' - ignored
>> cvs [checkout aborted]: cannot expand modules
>>
>> I'm guessing that the Windows one is breaking the -D pieces into  
>> separate arguments because it is being passed to cmd.exe instead of  
>> being executed directly.  It seems like the -D pieces need to be  
>> quoted in the original argv[] list and then maybe they won't be  
>> broken up by cmd.exe.  Ignore the fact that the above windows step  
>> is doing a full checkout, it happens for updates too.
>>
>> I poked around in the CVS step's computeSourceRevision() in process/ 
>> step.py and I changed:
>>
>>             return formatdate(when)
>> to
>>
>>             return "\"%s\"" % (formatdate(when),)
>>
>> Alas, this works for Windows but horks on OS X:  cvs [checkout  
>> aborted]: Can't parse date/time: "Tue, 09 Aug 2005 22:39:43 -0000"
>>
>> Any suggestions?
>>
>> stephen
>>
>>
>> -------------------------------------------------------
>> SF.Net email is Sponsored by the Better Software Conference & EXPO
>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle  
>> Practices
>> Agile & Plan-Driven Development * Managing Projects & Teams *  
>> Testing & QA
>> Security * Process Improvement & Measurement * http://www.sqe.com/ 
>> bsce5sf
>> _______________________________________________
>> Buildbot-devel mailing list
>> Buildbot-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>>
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle 
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing 
> & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> 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