Closed mahmoudimus closed 10 years ago
lgtm
fixes #30
-d passing
.we can add autoscaling to destroy these nodes after x minutes of doing nothing.
@coderanger - I originally wanted 2 make it just kitchen converge
, kitchen verify
and if successful, destroy it
My reasoning was you can just manually retrigger the acceptance job from jenkins when it fails and continually verify the instance until it passes (w/o incurring the cost of having 2 spin up an entire instance again)
@mahmoudimus Not unreasonable but that isn't what this does :-)
@coderanger yep - let me change it to that.
@mjallday so it's not 1/2 dozen - one 6 of another
ping @coderanger addressed comments
I really don't think this is a good idea, it only works if you assume only one build is in progress at a time. It removes more or less all the benefit of running each test on an isolated system. If the concern if just about speed, we should look in to baking partial AMIs instead. :-1:
@coderanger fair, but most likely, we'll have 1 build in progress @ a time for a particular svc, since there's a different machine running balanced-acceptance and precog-acceptance.
Until then, this is a quick dev workflow hack for us until we can bake partial AMIs which we've been told is not the time to prioritize this.
if the issue is that we need 2 reap, can we use autoscaling for this? /cc @mjallday
I guess, but why not just do it all by hand then? With this, there is no easy way to kill the instance while a build is "in progress". The auto-scaling thing is not actually a thing, thats not a feature of EC2.
@coderanger i think the issue here is to address the issue of having to debug an instance and seeing why it's failing since we don't have error logs relayed from test-kitchen.
It will be very easy once we bake an AMI though, until then, I think we need this.
vote merge this and update our reaper to term old kitchen instances (doing that anyway). if its not useful now that we have acceptance working or interferes w/ |line revert.
We should probably make a fab script or jenkins job that does a kitchen destroy then, just because there are going to be times when we need a big ol' reset button. Or at least document the process (SSH to builder, cd to folder, run bundle exec kitchen destroy) so people can do it :)
Closing.
ping @balanced-cookbooks/chefs