From Nick.Adamson at generaldynamics.uk.com Thu Jul 8 06:42:28 2010 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Thu, 8 Jul 2010 11:42:28 +0100 Subject: [Cruisecontrolrb-users] Why is CCRB constantly building. Message-ID: <634C6DD300F1EE46879A1A84896F361402DF116A@GDUKADH850.uk1.r-org.net> Hi All. I'm seeing something very odd with CCRB. A couple of days ago our build box died and a new hard disk was put in. To get CCRB back up and running I downloaded it from the web, un packed it and added the project as normal. Now when I run CCRB it constantly tries to build the project even though there hasn't been a new checkin. output says: build 3202 started. build 3202 done. build 3202 started. build 3202 done. build 3202 started. build 3202 done. the cruisecontrol.rb file in the project folder is the default one set by CCRB add. Any ideas what could be happening? This is on a windows XP box. Thanks. Nick. Nick Adamson Software Engineer Advanced Projects and Technology General Dynamics United Kingdom Limited Bryn Brithdir, Oakdale Business Park, Blackwood, South Wales, NP12 4AA Telephone: +44 (0)1495 23 6467 Email: Nick.Adamson at generaldynamics.uk.com Website: www.generaldynamics.uk.com To help reduce waste paper, please only print this email if you really need to. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2071 bytes Desc: Signature.gif URL: From thewoolleyman at gmail.com Thu Jul 8 12:12:23 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Thu, 8 Jul 2010 09:12:23 -0700 Subject: [Cruisecontrolrb-users] Why is CCRB constantly building. In-Reply-To: <634C6DD300F1EE46879A1A84896F361402DF116A@GDUKADH850.uk1.r-org.net> References: <634C6DD300F1EE46879A1A84896F361402DF116A@GDUKADH850.uk1.r-org.net> Message-ID: On Thu, Jul 8, 2010 at 3:42 AM, wrote: > Hi All. > I'm seeing something very odd with CCRB. > > A couple of days ago our build box died and a new hard disk was put in. > > To get CCRB back up and running I downloaded it from the web, un packed it > and added the project as normal. > Now when I run CCRB it constantly tries to build the project even though > there hasn't been a new checkin. > output says: > build 3202 started. > build 3202 done. > build 3202 started. > build 3202 done. > build 3202 started. > build 3202 done. > > the cruisecontrol.rb file in the project folder is the default one set by > CCRB add. > Any ideas what could be happening? > This is on a windows XP box. > > Try the same project on a new box? Try forcing a checkin to the repo? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nick.Adamson at generaldynamics.uk.com Fri Jul 9 08:22:34 2010 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Fri, 9 Jul 2010 13:22:34 +0100 Subject: [Cruisecontrolrb-users] Why is CCRB constantly building. In-Reply-To: References: <634C6DD300F1EE46879A1A84896F361402DF116A@GDUKADH850.uk1.r-org.net> Message-ID: <634C6DD300F1EE46879A1A84896F361402DF143A@GDUKADH850.uk1.r-org.net> Hi Chad. Doing a new check in to SVN didn't help. It almost looks like there's parallel builds going on. The content of the project folder in cruise data is quite interesting. It looks like this: build-3213 build-3213-failed.in0s build-3213-failed.in1s build-3213-failed.in2s build-3213-failed.in3s build-3213-failed.in4s build-3213-failed.in5s build-3213-failed.in7s build-3213-failed.in8s build-3213-failed.in9s build-3213-failed.in10s build-3213-failed.in12s build-3213-failed.in55s build-3214 build-3214-failed.in1s build-3214-failed.in2sbuild-3214-failed.in3s build-3214-failed.in4s build-3214-failed.in7s build-3214-failed.in8s build-3214-failed.in10s Work builder.lock builder_status.building builder_status.error builder_status.sleeping cruise_config.rb source_control.err I've not triggered any builds from the dash board or anything like that. I don't really want to try it on another machine as in the end it has to run on this build box. Any more ideas? Thanks. Nick. -----Original Message----- From: cruisecontrolrb-users-bounces at rubyforge.org [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Chad Woolley Sent: 08 July 2010 17:12 To: cruisecontrolrb-users at rubyforge.org Subject: Re: [Cruisecontrolrb-users] Why is CCRB constantly building. On Thu, Jul 8, 2010 at 3:42 AM, wrote: Hi All. I'm seeing something very odd with CCRB. A couple of days ago our build box died and a new hard disk was put in. To get CCRB back up and running I downloaded it from the web, un packed it and added the project as normal. Now when I run CCRB it constantly tries to build the project even though there hasn't been a new checkin. output says: build 3202 started. build 3202 done. build 3202 started. build 3202 done. build 3202 started. build 3202 done. the cruisecontrol.rb file in the project folder is the default one set by CCRB add. Any ideas what could be happening? This is on a windows XP box. Try the same project on a new box? Try forcing a checkin to the repo? From thewoolleyman at gmail.com Fri Jul 9 12:30:07 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 9 Jul 2010 09:30:07 -0700 Subject: [Cruisecontrolrb-users] Why is CCRB constantly building. In-Reply-To: <634C6DD300F1EE46879A1A84896F361402DF143A@GDUKADH850.uk1.r-org.net> References: <634C6DD300F1EE46879A1A84896F361402DF116A@GDUKADH850.uk1.r-org.net> <634C6DD300F1EE46879A1A84896F361402DF143A@GDUKADH850.uk1.r-org.net> Message-ID: On Fri, Jul 9, 2010 at 5:22 AM, wrote: > Doing a new check in to SVN didn't help. > It almost looks like there's parallel builds going on. Turn off concurrent/parallel builds in the cruise site config. > The content of the project folder in cruise data is quite interesting. > It looks like this: > > build-3213 > build-3213-failed.in0s > build-3213-failed.in1s > build-3213-failed.in2s > build-3213-failed.in3s > build-3213-failed.in4s > build-3213-failed.in5s > build-3213-failed.in7s > build-3213-failed.in8s > build-3213-failed.in9s > build-3213-failed.in10s > build-3213-failed.in12s > build-3213-failed.in55s > build-3214 > build-3214-failed.in1s > build-3214-failed.in2sbuild-3214-failed.in3s > build-3214-failed.in4s > build-3214-failed.in7s > build-3214-failed.in8s > build-3214-failed.in10s What are the timestamps? Are these happening right after another? > I don't really want to try it on another machine as in the end it has to > run on this build box. > Any more ideas? Debug ccrb code and see what is happening. From Nick.Adamson at generaldynamics.uk.com Mon Jul 12 04:04:31 2010 From: Nick.Adamson at generaldynamics.uk.com (Nick.Adamson at generaldynamics.uk.com) Date: Mon, 12 Jul 2010 09:04:31 +0100 Subject: [Cruisecontrolrb-users] Why is CCRB constantly building. In-Reply-To: References: <634C6DD300F1EE46879A1A84896F361402DF116A@GDUKADH850.uk1.r-org.net> <634C6DD300F1EE46879A1A84896F361402DF143A@GDUKADH850.uk1.r-org.net> Message-ID: <634C6DD300F1EE46879A1A84896F361402DF14D2@GDUKADH850.uk1.r-org.net> Hi Chad. The builds for each project are happening one at a time but as soon as one finishes the next one for the same revision number starts. I'll switch off the parallel builds option but my understanding of this is that this is mostly aimed at builds for multiple projects. As you say, it probably looks like a case of getting debugging. Thanks. Nick. -----Original Message----- From: cruisecontrolrb-users-bounces at rubyforge.org [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Chad Woolley Sent: 09 July 2010 17:30 To: cruisecontrolrb-users at rubyforge.org Subject: Re: [Cruisecontrolrb-users] Why is CCRB constantly building. On Fri, Jul 9, 2010 at 5:22 AM, wrote: > Doing a new check in to SVN didn't help. > It almost looks like there's parallel builds going on. Turn off concurrent/parallel builds in the cruise site config. > The content of the project folder in cruise data is quite interesting. > It looks like this: > > build-3213 > build-3213-failed.in0s > build-3213-failed.in1s > build-3213-failed.in2s > build-3213-failed.in3s > build-3213-failed.in4s > build-3213-failed.in5s > build-3213-failed.in7s > build-3213-failed.in8s > build-3213-failed.in9s > build-3213-failed.in10s > build-3213-failed.in12s > build-3213-failed.in55s > build-3214 > build-3214-failed.in1s > build-3214-failed.in2sbuild-3214-failed.in3s > build-3214-failed.in4s > build-3214-failed.in7s > build-3214-failed.in8s > build-3214-failed.in10s What are the timestamps? Are these happening right after another? > I don't really want to try it on another machine as in the end it has to > run on this build box. > Any more ideas? Debug ccrb code and see what is happening. _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From todd.sedano at sv.cmu.edu Wed Jul 14 11:29:32 2010 From: todd.sedano at sv.cmu.edu (Todd Sedano) Date: Wed, 14 Jul 2010 08:29:32 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: I'm switching to Bundler for a rails 2.3 project. Is there anything magical that I should do on my CI machine? I did do a "sudo gem install bundler." I'm guessing that I want to do a "bundle install" each time there is a source code change, or even better, a change to the Gemfile. Should I modify my preinitializer.rb ? I tried the following, but I still need to periodically log into the machine, cd into .cruise/projects/NAME/work and run bundle install. Any thoughts? Modifying cruise.rake like this should help..... maybe we can add this to the documentation? require 'rubygems' require 'rake' require 'fileutils' require "bundler" desc "Task for cruise Control" task :cruise do RAILS_ENV = ENV['RAILS_ENV'] = 'test' sh "bundle install" Bundler.setup(:default, :test) -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Wed Jul 14 20:01:26 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 14 Jul 2010 17:01:26 -0700 Subject: [Cruisecontrolrb-users] Bundler and cruisecontrol.rb In-Reply-To: References: Message-ID: On Wed, Jul 14, 2010 at 8:29 AM, Todd Sedano wrote: > > I'm switching to Bundler for a rails 2.3 project. Is there anything magical > that I should do on my CI machine? I did do a "sudo gem install bundler." > I'm guessing that I want to do a "bundle install" each time there is a > source code change, or even better, a change to the Gemfile. Should I modify > my preinitializer.rb ? > I tried the following,?but I still need to periodically log into the > machine, cd into .cruise/projects/NAME/work and run bundle install. > Any thoughts? > > Modifying cruise.rake like this should help..... maybe we can add this to > the documentation? > > require 'rubygems' > require 'rake' > require 'fileutils' > require "bundler" > > desc "Task for cruise Control" > task :cruise do > RAILS_ENV = ENV['RAILS_ENV'] = 'test' > > sh "bundle install" > Bundler.setup(:default, :test) I'm not sure if this is a problem with bundler or not, but we run 'bundle install' in a separate parallel interpreter session kicked off before the tests run (in their own process). Historically (e.g. with config.gems or geminstaller) , this was necessary to ensure that the RubyGems cache was not out of date and missing newly-installed gems. Bundler may not have that problem, though. Can anyone prove or disprove that you need to run 'bundle install' in a separate process from your tests? -- Chad From bodarotech at gmail.com Mon Jul 26 22:08:03 2010 From: bodarotech at gmail.com (Mike Papper) Date: Mon, 26 Jul 2010 19:08:03 -0700 Subject: [Cruisecontrolrb-users] Adding Deploy Button to GUI Message-ID: <0D86E7F1-9FFF-4432-9AC0-548C0C172512@gmail.com> Hello, has anyone tried to add a "deploy" button. This would look like the "build now" but be positioned for every successful build (on the main projects page where it displays the status of the last 5 builds per project). It would then run capistrano with that tag. Something we've been thinking about so I thought I would check and see if someone has done this already. Also, I was going to put a new action into one of the controllers but maybe the "plugins" is some way of extending CruiseControl in a more modular way? Any insight on this? Mike From thewoolleyman at gmail.com Mon Jul 26 22:47:55 2010 From: thewoolleyman at gmail.com (Chad Woolley) Date: Mon, 26 Jul 2010 19:47:55 -0700 Subject: [Cruisecontrolrb-users] Adding Deploy Button to GUI In-Reply-To: <0D86E7F1-9FFF-4432-9AC0-548C0C172512@gmail.com> References: <0D86E7F1-9FFF-4432-9AC0-548C0C172512@gmail.com> Message-ID: On Mon, Jul 26, 2010 at 7:08 PM, Mike Papper wrote: > Hello, has anyone tried to add a "deploy" button. This would look like the > "build now" but be positioned for every successful build (on the main > projects page where it displays the status of the last 5 builds per > project). It would then run capistrano with that tag. Your email made me have an idea: There should be a deploy button, but with a configurable webhook which passes the build number. That would allow anyone to hook any cross-platform deploy hook, and wouldn't require anything to be run on the cruise server (or added to the codebase to do so). From donnoman at gmail.com Mon Jul 26 23:46:57 2010 From: donnoman at gmail.com (Donovan Bray) Date: Mon, 26 Jul 2010 20:46:57 -0700 Subject: [Cruisecontrolrb-users] Adding Deploy Button to GUI In-Reply-To: <0D86E7F1-9FFF-4432-9AC0-548C0C172512@gmail.com> References: <0D86E7F1-9FFF-4432-9AC0-548C0C172512@gmail.com> Message-ID: <2F29DCB6-C159-49B7-B74E-17DB9875B33E@gmail.com> I have a project that has a cap task to do the deploy, we use it just to have a button to deploy to our test server. You can set it to trigger on a successful build of a different project if you like. On Jul 26, 2010, at 7:08 PM, Mike Papper wrote: > Hello, has anyone tried to add a "deploy" button. This would look like the "build now" but be positioned for every successful build (on the main projects page where it displays the status of the last 5 builds per project). It would then run capistrano with that tag. > > Something we've been thinking about so I thought I would check and see if someone has done this already. > > Also, I was going to put a new action into one of the controllers but maybe the "plugins" is some way of extending CruiseControl in a more modular way? Any insight on this? > > Mike > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From btguthrie at gmail.com Tue Jul 27 00:52:19 2010 From: btguthrie at gmail.com (Brian Guthrie) Date: Tue, 27 Jul 2010 10:22:19 +0530 Subject: [Cruisecontrolrb-users] Adding Deploy Button to GUI In-Reply-To: References: <0D86E7F1-9FFF-4432-9AC0-548C0C172512@gmail.com> Message-ID: On Tue, Jul 27, 2010 at 8:17 AM, Chad Woolley wrote: > On Mon, Jul 26, 2010 at 7:08 PM, Mike Papper wrote: >> Hello, has anyone tried to add a "deploy" button. This would look like the >> "build now" but be positioned for every successful build (on the main >> projects page where it displays the status of the last 5 builds per >> project). It would then run capistrano with that tag. > > Your email made me have an idea: ?There should be a deploy button, but > with a configurable webhook which passes the build number. ?That would > allow anyone to hook any cross-platform deploy hook, and wouldn't > require anything to be run on the cruise server (or added to the > codebase to do so). I've thought about adding a deploy button before; I like the webhooks idea. (That'd also be a nice mechanism for handling chained builds across multiple servers.) I admit, though, that I'm not sure how the details would work here. Is the idea that CCRB would POST to the given URL on deploy, and whoever's running on the other end of that is expected to know how to deploy the app? That seems like more trouble than just asking CCRB to run a Cap/Rake task for you. Brian