[Buildbot-devel] A tool for using Buildbot with KVM virtual machines
Kristian Nielsen
knielsen at knielsen-hq.org
Mon Jan 18 21:24:11 UTC 2010
Dustin Sallings <dustin at spy.net> writes:
> On Jan 18, 2010, at 6:00, Kristian Nielsen wrote:
>
>> f.addStep(Compile(command=["runvm", "vm-image.qcow2", """
>> cvs checkout myproject
>> cd myproject
>> ./configure
>> make
>> """]))
>
>
> Would you consider turning this into a latent slave?
>
> <http://djmitche.github.com/buildbot/docs/0.7.12/#On_002dDemand-_0028_0022Latent_0022_0029-Buildslaves>
Yes, might be an idea.
It should actually be really simple.
In start_instance(), spawn a process "runvm <extra_args> <image> "read dummy".
In stop_instance(), close the stdin of started process, and wait for other end
to close its stdout.
I just need to read up on how to manage spawned processes in Twisted (and
Python). Will try to give it a go.
Could be a nice second example of a Latent build slave, and might be useful
for someone.
- Kristian.
More information about the devel
mailing list