[Buildbot-devel] Discussion on source steps

Dmitry Nezhevenko dion at dion.org.ua
Mon Jun 6 15:58:40 UTC 2011


On Mon, May 16, 2011 at 01:33:10PM +0530, Pradeepkumar Gayam wrote:
> After discussion with tomprince on IRC I am going to implement source steps 
> on master-side. Please tell anything I should know regarding this.

Hi,

I was out of buildbot for a long time, so maybe my knowledge is a bit
outdated. Currently every (at least in 0.8.3) every VCS has "Step" on
master that is basically just a frontend/wrapper for "Command" on slave.
This means that most of VCS-specific logic may be done on slave and "Step"
actually just passes arguments to slave.

Is it going to be changed? Am I right that new VCS steps will just use
"ShellCommand"-like feature of slave? So there will be no VCS-related code
on slave at all and every piece of login will be implemented on Master?

I'm asking because I've already implemented own VCS step for one of
proprietary SCM's. The main issue is that it has no "git clean"-like
single command to cleanup everything for next "full" build. But it has a
way to get list of "modified" files, list of "not tracked" files, list of
"missing" files, etc. And to perform actual cleanup I need to call CLI tool 
~6-7 times (get modified file list, revert them; get "no tracked" files,
remove them, etc, etc). I'm pretty sure that not every VCS provides
"clean" command. 

So how this is going to be handled?

-- 
WBR, Dmitry




More information about the devel mailing list