From apsoto at gmail.com Thu Feb 5 13:17:46 2009 From: apsoto at gmail.com (Alex Soto) Date: Thu, 5 Feb 2009 10:17:46 -0800 Subject: [Cruisecontrolrb-users] Running behind a proxy Message-ID: <7AA2C98D-8735-460A-A4C3-A77D93BD4BF4@gmail.com> Hi there I checked out the latest from github since I saw posts that relative urls was fixed in trunk, but I'm still not having any luck getting assets to appear. Is running behind a proxy under a path such as /cruise something anyon has had luck with and might be able to provide some tips? Thanks, Alex From sam_g at beezwax.net Thu Feb 5 14:30:50 2009 From: sam_g at beezwax.net (Sam Goldstein) Date: Thu, 5 Feb 2009 11:30:50 -0800 Subject: [Cruisecontrolrb-users] Running behind a proxy In-Reply-To: <7AA2C98D-8735-460A-A4C3-A77D93BD4BF4@gmail.com> References: <7AA2C98D-8735-460A-A4C3-A77D93BD4BF4@gmail.com> Message-ID: <69e25e6a0902051130u485ac166yd29984bc3fd51637@mail.gmail.com> Are you having trouble serving static assets (images/css/etc)? I've had this happen before when Apache's permissions are set too strictly. Apache will serve the dynamic requests through mongrel (or whatever you're using) but won't have permission to access static assets on the file system. ~sam goldstein On Thu, Feb 5, 2009 at 10:17 AM, Alex Soto wrote: > Hi there > I checked out the latest from github since I saw posts that relative urls > was fixed in trunk, but I'm still not having any luck getting assets to > appear. > > Is running behind a proxy under a path such as /cruise something anyon has > had luck with and might be able to provide some tips? > > Thanks, > Alex > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From apsoto at gmail.com Thu Feb 5 15:38:13 2009 From: apsoto at gmail.com (Alex Soto) Date: Thu, 5 Feb 2009 12:38:13 -0800 Subject: [Cruisecontrolrb-users] Running behind a proxy In-Reply-To: <69e25e6a0902051130u485ac166yd29984bc3fd51637@mail.gmail.com> References: <7AA2C98D-8735-460A-A4C3-A77D93BD4BF4@gmail.com> <69e25e6a0902051130u485ac166yd29984bc3fd51637@mail.gmail.com> Message-ID: <333744CB-37F8-4AEF-A8F1-09F1FF8E163B@gmail.com> Unfortunately no. I have the cruise available at http://hostname/cruise but all the urls in the app show /javascripts/... /projects/project_name /builds/project_name/5799 etc. Initially I was running the last official release (1.3) was released on 2008-04-24 according to rubyforge. I saw a mailing list post from May 2008 that this was fixed, and I thought running the latest source would fix this, but still not having any luck. Here's my apache config (obfuscated a bit), in case its of any help: ServerName HOSTNAME ProxyRequests Off Order deny,allow Allow from all ProxyPass /cruise http://localhost:3333/ ProxyPassReverse /cruise http://localhost:3333/ On Feb 5, 2009, at 11:30 AM, Sam Goldstein wrote: > Are you having trouble serving static assets (images/css/etc)? > > I've had this happen before when Apache's permissions are set too > strictly. Apache will serve the dynamic requests through mongrel > (or whatever you're using) but won't have permission to access > static assets on the file system. > > ~sam goldstein > > On Thu, Feb 5, 2009 at 10:17 AM, Alex Soto wrote: > Hi there > I checked out the latest from github since I saw posts that relative > urls was fixed in trunk, but I'm still not having any luck getting > assets to appear. > > Is running behind a proxy under a path such as /cruise something > anyon has had luck with and might be able to provide some tips? > > Thanks, > Alex > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From jonathan.naor at mail.huji.ac.il Thu Feb 12 01:26:01 2009 From: jonathan.naor at mail.huji.ac.il (Jonathan Naor) Date: Thu, 12 Feb 2009 08:26:01 +0200 Subject: [Cruisecontrolrb-users] C++ eclipse makefile issues Message-ID: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> Hi, Might be a bit off-topic, but just in case someone has already encountered a similar problem: We have a C++ project set to build continuously via cruisecontrol.rb. The IDE used for development is eclipse, which automatically generates a makefile for the project. The problem is that each time a new subdirectory is added, eclipse generates a "sub-makefile" (called subdir.mk) - which must be added to sourcecontrol manually for the project to compile on the build machine. People fail to do this and the build is continuously failing. Any ideas? Thanks, Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bil.Kleb at NASA.gov Thu Feb 12 05:17:58 2009 From: Bil.Kleb at NASA.gov (Bil Kleb) Date: Thu, 12 Feb 2009 05:17:58 -0500 Subject: [Cruisecontrolrb-users] C++ eclipse makefile issues In-Reply-To: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> References: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> Message-ID: <4993F756.3090008@NASA.gov> Jonathan Naor wrote: > Hi, Hi. > [...] The problem is that each time a new > subdirectory is added, eclipse generates a "sub-makefile" (called > subdir.mk ) - which must be added to sourcecontrol > manually for the project to compile on the build machine. Add a pre-commit hook that runs 'make -n'. If it returns an error code (e.g., because subdir.mk is missing), reject the commit. Regards, -- Bil Kleb http://fun3d.larc.nasa.gov http://twitter.com/bil_kleb From matt at mattwynne.net Thu Feb 12 05:52:25 2009 From: matt at mattwynne.net (Matt Wynne) Date: Thu, 12 Feb 2009 10:52:25 +0000 Subject: [Cruisecontrolrb-users] C++ eclipse makefile issues In-Reply-To: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> References: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> Message-ID: <889910FD-0CA1-4CA2-92A7-2FDA41D7BE28@mattwynne.net> On 12 Feb 2009, at 06:26, Jonathan Naor wrote: > Hi, > > Might be a bit off-topic, but just in case someone has already > encountered a similar problem: > We have a C++ project set to build continuously via > cruisecontrol.rb. The IDE used for development is eclipse, which > automatically generates a makefile for the project. The problem is > that each time a new subdirectory is added, eclipse generates a "sub- > makefile" (called subdir.mk) - which must be added to sourcecontrol > manually for the project to compile on the build machine. People > fail to do this and the build is continuously failing. > Any ideas? What kind of ideas are you looking for? Ways to run the build without the sub-makefiles, or ways to automatically add them to source control when eclipse generates them? Matt Wynne http://blog.mattwynne.net http://www.songkick.com From jonathan.naor at mail.huji.ac.il Thu Feb 12 06:08:22 2009 From: jonathan.naor at mail.huji.ac.il (Jonathan Naor) Date: Thu, 12 Feb 2009 13:08:22 +0200 Subject: [Cruisecontrolrb-users] C++ eclipse makefile issues In-Reply-To: <4993F756.3090008@NASA.gov> References: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> <4993F756.3090008@NASA.gov> Message-ID: <4a5a7af0902120308i5399861fn539f75fa7434d1bf@mail.gmail.com> Thanks for the idea; however ideally I don't want users to worry about the subdir.mk's at all. (Having the Debug/Release directory in source control is in itself not very esthetic.) I was thinking along the lines of having eclipse create one big makefile with all the subdir.mk's expanded inside it, but I don't know how to do this. On Thu, Feb 12, 2009 at 12:17 PM, Bil Kleb wrote: > Jonathan Naor wrote: > >> Hi, >> > > Hi. > > [...] The problem is that each time a new subdirectory is added, eclipse >> generates a "sub-makefile" (called subdir.mk ) - which >> must be added to sourcecontrol manually for the project to compile on the >> build machine. >> > > Add a pre-commit hook that runs 'make -n'. If it returns an > error code (e.g., because subdir.mk is missing), reject the commit. > > Regards, > -- > Bil Kleb > http://fun3d.larc.nasa.gov > http://twitter.com/bil_kleb > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.naor at mail.huji.ac.il Thu Feb 12 06:31:19 2009 From: jonathan.naor at mail.huji.ac.il (Jonathan Naor) Date: Thu, 12 Feb 2009 13:31:19 +0200 Subject: [Cruisecontrolrb-users] C++ eclipse makefile issues In-Reply-To: <889910FD-0CA1-4CA2-92A7-2FDA41D7BE28@mattwynne.net> References: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> <889910FD-0CA1-4CA2-92A7-2FDA41D7BE28@mattwynne.net> Message-ID: <4a5a7af0902120331t5e0b3b59x3911d369d1d04aa8@mail.gmail.com> If possible I'd rather not have the sub-makefiles in source control at all. Is there a way to automatically expand the sub-makefiles when they are included in the "master" makefile? Then I would only need to have this file in svn to build the project. On Thu, Feb 12, 2009 at 12:52 PM, Matt Wynne wrote: > > On 12 Feb 2009, at 06:26, Jonathan Naor wrote: > > Hi, >> >> Might be a bit off-topic, but just in case someone has already encountered >> a similar problem: >> We have a C++ project set to build continuously via cruisecontrol.rb. The >> IDE used for development is eclipse, which automatically generates a >> makefile for the project. The problem is that each time a new subdirectory >> is added, eclipse generates a "sub-makefile" (called subdir.mk) - which >> must be added to sourcecontrol manually for the project to compile on the >> build machine. People fail to do this and the build is continuously failing. >> Any ideas? >> > > What kind of ideas are you looking for? Ways to run the build without the > sub-makefiles, or ways to automatically add them to source control when > eclipse generates them? > > Matt Wynne > http://blog.mattwynne.net > http://www.songkick.com > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Thu Feb 12 11:11:28 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Thu, 12 Feb 2009 09:11:28 -0700 Subject: [Cruisecontrolrb-users] C++ eclipse makefile issues In-Reply-To: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> References: <4a5a7af0902112226w31093162ra44320f91a85c5e8@mail.gmail.com> Message-ID: On Wed, Feb 11, 2009 at 11:26 PM, Jonathan Naor wrote: > Hi, > > Might be a bit off-topic, but just in case someone has already encountered a > similar problem: > We have a C++ project set to build continuously via cruisecontrol.rb. The > IDE used for development is eclipse, which automatically generates a > makefile for the project. The problem is that each time a new subdirectory > is added, eclipse generates a "sub-makefile" (called subdir.mk) - which must > be added to sourcecontrol manually for the project to compile on the build > machine. People fail to do this and the build is continuously failing. > Any ideas? Add logic to the build to add the directory to source control. From twalker at comverge.com Fri Feb 13 15:19:18 2009 From: twalker at comverge.com (tim walker) Date: Fri, 13 Feb 2009 13:19:18 -0700 Subject: [Cruisecontrolrb-users] Basic auth on cc-rb server? Message-ID: Hi, Is there a easy way to enable basic user authentication to the ccrb server? Thanks very much, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Fri Feb 13 16:14:30 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 13 Feb 2009 14:14:30 -0700 Subject: [Cruisecontrolrb-users] Basic auth on cc-rb server? In-Reply-To: References: Message-ID: Put it behind a proxy using apache or nginx. Search the archive of the ccrb user and/or dev lists, this has been discussed before. -- Chad On Fri, Feb 13, 2009 at 1:19 PM, tim walker wrote: > Hi, > > Is there a easy way to enable basic user authentication to the ccrb server? > > Thanks very much, > > Tim > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > From apsoto at gmail.com Fri Feb 13 16:46:41 2009 From: apsoto at gmail.com (Alex Soto) Date: Fri, 13 Feb 2009 13:46:41 -0800 Subject: [Cruisecontrolrb-users] Basic auth on cc-rb server? In-Reply-To: References: Message-ID: Here's an example apache config from my setup. Note you need some more setup than this, but hopefully it gets you rolling. Good luck ServerName build.foo.com AuthType Basic AuthName "Build" AuthUserFile /var/www/build/build.htpasswd Require valid-user BalancerMember http://localhost:3333 ProxyPass / balancer://cruisecontrol/ On Feb 13, 2009, at 1:14 PM, Chad Woolley wrote: > Put it behind a proxy using apache or nginx. Search the archive of > the ccrb user and/or dev lists, this has been discussed before. > > -- Chad > > On Fri, Feb 13, 2009 at 1:19 PM, tim walker > wrote: >> Hi, >> >> Is there a easy way to enable basic user authentication to the ccrb >> server? >> >> Thanks very much, >> >> Tim >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From talrep at gmail.com Fri Feb 13 16:53:59 2009 From: talrep at gmail.com (Dmitry Verkhovsky) Date: Fri, 13 Feb 2009 23:53:59 +0200 Subject: [Cruisecontrolrb-users] Basic auth on cc-rb server? In-Reply-To: References: Message-ID: Hi, I'm using htpasswd plugin ( http://github.com/maiha/htpasswd/tree/master ). Just do script/install plugin, and add one line to application.rb . htpasswd :user=>"maiha", :pass=>"berryz" D. On Fri, Feb 13, 2009 at 10:19 PM, tim walker wrote: > Hi, > > Is there a easy way to enable basic user authentication to the ccrb server? > > > Thanks very much, > > Tim > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From twalker at comverge.com Fri Feb 13 18:09:11 2009 From: twalker at comverge.com (tim walker) Date: Fri, 13 Feb 2009 16:09:11 -0700 Subject: [Cruisecontrolrb-users] Basic auth on cc-rb server? In-Reply-To: Message-ID: That was awesome and exactly what I needed. I had scanned the archives and saw more invasive solutions and was about to hack the rails application directly but, well, no need! FWIW - this is the command I needed to install the plugin: ruby script/plugin install http://wota.jp/svn/rails/plugins/branches/stable/htpasswd Best regards, Tim On 2/13/09 2:53 PM, "Dmitry Verkhovsky" wrote: > Hi, > > I'm using htpasswd plugin ( http://github.com/maiha/htpasswd/tree/master ). > Just do script/install plugin, and add one line to application.rb . > > > htpasswd :user=>"maiha", :pass=>"berryz" > > > D. > On Fri, Feb 13, 2009 at 10:19 PM, tim walker wrote: >> Hi, >> >> Is there a easy way to enable basic user authentication to the ccrb server? >> >> Thanks very much, >> >> Tim >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> > > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.t.hinze at gmail.com Mon Feb 16 13:26:56 2009 From: paul.t.hinze at gmail.com (Paul Hinze) Date: Mon, 16 Feb 2009 12:26:56 -0600 Subject: [Cruisecontrolrb-users] Bazaar and CCrb, Possible? Message-ID: <20090216182656.GA6813@vpr1000> Hi All, I work in a dev group that has recently switched to Bazaar for our source code management. I'd like to set up a continuous integration server for our RoR development, but it looks like CCrb only supports Subversion "officially". I see that git support has of late become relatively stable, which is good news for the potential of eventual Bazaar support. Here's my question: what's the state of Bazaar support in CCrb? If it's nonexistent, how would I go about implementing it? Would I just dive right into trunk and build up a patch to submit, or is there a plugin architecture I could/should leverage? Many thanks, and I look forward to contributing! Paul -- { :name => 'Paul Hinze', :mail => 'paul.t.hinze at gmail.com', :www => 'http://phinze.com', :irc => 'phinze' } From thewoolleyman at gmail.com Mon Feb 16 14:00:14 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Mon, 16 Feb 2009 12:00:14 -0700 Subject: [Cruisecontrolrb-users] Bazaar and CCrb, Possible? In-Reply-To: <20090216182656.GA6813@vpr1000> References: <20090216182656.GA6813@vpr1000> Message-ID: On Mon, Feb 16, 2009 at 11:26 AM, Paul Hinze wrote: > Here's my question: what's the state of Bazaar support in CCrb? If it's > nonexistent, how would I go about implementing it? Would I just dive > right into trunk and build up a patch to submit, or is there a plugin > architecture I could/should leverage? I don't know the state of Bazaar, I'd guess it is nonexistent. Go ahead and fork it on github and dive in. There are a few working SCM implementations, and some abstraction on top of it. Dig in and you should find out more, and ask here (and post the link to your fork) if you have more questions. -- Chad From apsoto at gmail.com Mon Feb 16 15:43:48 2009 From: apsoto at gmail.com (Alex Soto) Date: Mon, 16 Feb 2009 12:43:48 -0800 (PST) Subject: [Cruisecontrolrb-users] Running behind a proxy In-Reply-To: <333744CB-37F8-4AEF-A8F1-09F1FF8E163B@gmail.com> References: <7AA2C98D-8735-460A-A4C3-A77D93BD4BF4@gmail.com> <69e25e6a0902051130u485ac166yd29984bc3fd51637@mail.gmail.com> <333744CB-37F8-4AEF-A8F1-09F1FF8E163B@gmail.com> Message-ID: <22045442.post@talk.nabble.com> Just updating this thread to see if I can catch someone else's eye about running ccrb proxied under a subdir. Alex Soto wrote: > > Unfortunately no. > > I have the cruise available at > http://hostname/cruise > > but all the urls in the app show > /javascripts/... > /projects/project_name > /builds/project_name/5799 > > etc. > > Initially I was running the last official release (1.3) was released > on 2008-04-24 according to rubyforge. > > I saw a mailing list post from May 2008 that this was fixed, and I > thought running the latest source would fix this, but still not having > any luck. > > Here's my apache config (obfuscated a bit), in case its of any help: > > > ServerName HOSTNAME > > ProxyRequests Off > > > Order deny,allow > Allow from all > > > ProxyPass /cruise http://localhost:3333/ > ProxyPassReverse /cruise http://localhost:3333/ > > > > On Feb 5, 2009, at 11:30 AM, Sam Goldstein wrote: > >> Are you having trouble serving static assets (images/css/etc)? >> >> I've had this happen before when Apache's permissions are set too >> strictly. Apache will serve the dynamic requests through mongrel >> (or whatever you're using) but won't have permission to access >> static assets on the file system. >> >> ~sam goldstein >> >> On Thu, Feb 5, 2009 at 10:17 AM, Alex Soto wrote: >> Hi there >> I checked out the latest from github since I saw posts that relative >> urls was fixed in trunk, but I'm still not having any luck getting >> assets to appear. >> >> Is running behind a proxy under a path such as /cruise something >> anyon has had luck with and might be able to provide some tips? >> >> Thanks, >> Alex >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -- View this message in context: http://www.nabble.com/Running-behind-a-proxy-tp21857811p22045442.html Sent from the CruiseControl.rb - Users mailing list archive at Nabble.com. From twalker at comverge.com Fri Feb 20 18:34:26 2009 From: twalker at comverge.com (tim walker) Date: Fri, 20 Feb 2009 16:34:26 -0700 Subject: [Cruisecontrolrb-users] Etc.getpwuid error in rake gems Message-ID: Hi Guys, Kind of a weird problem going on. Hope someone has a thought on what might be going on. 1) I am starting cruisecontrol from ./cruisecontrolrb/cruise start ?d (so it runs as a daemon) from an SSH connection to the server running cruise. Everything works fine. 2) When I log out of my SSH connection, I get the following error on the next build. ruby -e require 'rubygems' rescue nil; require 'rake'; load '/Users/deploy/cruisecontrolrb/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear /Library/Ruby/Site/1.8/rubygems.rb:723:in `getpwuid': can't find user for 503 (ArgumentError) from /Library/Ruby/Site/1.8/rubygems.rb:723:in `set_paths' from /Library/Ruby/Site/1.8/rubygems.rb:719:in `each' from /Library/Ruby/Site/1.8/rubygems.rb:719:in `set_paths' from /Library/Ruby/Site/1.8/rubygems.rb:526:in `path' from /Library/Ruby/Site/1.8/rubygems/source_index.rb:66:in `installed_spec_directories' from /Library/Ruby/Site/1.8/rubygems/source_index.rb:56:in `from_installed_gems' from /Library/Ruby/Site/1.8/rubygems.rb:736:in `source_index' from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:21:in `initialize' from /Library/Ruby/Site/1.8/rubygems.rb:684:in `new' from /Library/Ruby/Site/1.8/rubygems.rb:684:in `searcher' from /Library/Ruby/Site/1.8/rubygems.rb:683:in `synchronize' from /Library/Ruby/Site/1.8/rubygems.rb:683:in `searcher' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:34:in `require' from -e:1 Any ideas? Seems like it?s looking for a local user for the rake gems:install or something but there isn?t one. Oddly this has been working for quite sometime and this just started to manifest for a reason yet unknown. Thanks very much in advance for any help or clues. Sincerely, Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From apsoto at gmail.com Fri Feb 20 18:56:51 2009 From: apsoto at gmail.com (Alex Soto) Date: Fri, 20 Feb 2009 15:56:51 -0800 Subject: [Cruisecontrolrb-users] Etc.getpwuid error in rake gems In-Reply-To: References: Message-ID: This probably doesn't solve the root of the problem, but you could try to run it using nohup. On Feb 20, 2009, at 3:34 PM, tim walker wrote: > Hi Guys, > > Kind of a weird problem going on. Hope someone has a thought on what > might be going on. > > 1) I am starting cruisecontrol from ./cruisecontrolrb/cruise start ? > d (so it runs as a daemon) from an SSH connection to the server > running cruise. Everything works fine. > > 2) When I log out of my SSH connection, I get the following error on > the next build. > > ruby -e require 'rubygems' rescue nil; require 'rake'; load '/Users/ > deploy/cruisecontrolrb/tasks/cc_build.rake'; ARGV << '--nosearch' << > 'cc:build'; Rake.application.run; ARGV.clear /Library/Ruby/Site/1.8/ > rubygems.rb:723:in `getpwuid': can't find user for 503 (ArgumentError) > from /Library/Ruby/Site/1.8/rubygems.rb:723:in `set_paths' > from /Library/Ruby/Site/1.8/rubygems.rb:719:in `each' > from /Library/Ruby/Site/1.8/rubygems.rb:719:in `set_paths' > from /Library/Ruby/Site/1.8/rubygems.rb:526:in `path' from / > Library/Ruby/Site/1.8/rubygems/source_index.rb:66:in > `installed_spec_directories' > from /Library/Ruby/Site/1.8/rubygems/source_index.rb:56:in > `from_installed_gems' > from /Library/Ruby/Site/1.8/rubygems.rb:736:in `source_index' > from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:86:in > `init_gemspecs' > from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:21:in > `initialize' > from /Library/Ruby/Site/1.8/rubygems.rb:684:in `new' > from /Library/Ruby/Site/1.8/rubygems.rb:684:in `searcher' > from /Library/Ruby/Site/1.8/rubygems.rb:683:in `synchronize' > from /Library/Ruby/Site/1.8/rubygems.rb:683:in `searcher' > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:34:in > `require' from -e:1 > > Any ideas? Seems like it?s looking for a local user for the rake > gems:install or something but there isn?t one. Oddly this has been > working for quite sometime and this just started to manifest for a > reason yet unknown. > > Thanks very much in advance for any help or clues. > > Sincerely, > > Tim > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Fri Feb 20 19:03:09 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 20 Feb 2009 17:03:09 -0700 Subject: [Cruisecontrolrb-users] Etc.getpwuid error in rake gems In-Reply-To: References: Message-ID: or just make an init script. IF this is linux, there's examples in the ccrb source (look in daemon dir) On Fri, Feb 20, 2009 at 4:56 PM, Alex Soto wrote: > This probably doesn't solve the root of the problem, but you could try to > run it using nohup. > > On Feb 20, 2009, at 3:34 PM, tim walker wrote: > > Hi Guys, > > Kind of a weird problem going on. Hope someone has a thought on what might > be going on. > > 1) I am starting cruisecontrol from ./cruisecontrolrb/cruise start ?d (so it > runs as a daemon) from an SSH connection to the server running cruise. > Everything works fine. > > 2) When I log out of my SSH connection, I get the following error on the > next build. > > ruby -e require 'rubygems' rescue nil; require 'rake'; load > '/Users/deploy/cruisecontrolrb/tasks/cc_build.rake'; ARGV << '--nosearch' << > 'cc:build'; Rake.application.run; ARGV.clear > /Library/Ruby/Site/1.8/rubygems.rb:723:in `getpwuid': can't find user for > 503 (ArgumentError) > from /Library/Ruby/Site/1.8/rubygems.rb:723:in `set_paths' > from /Library/Ruby/Site/1.8/rubygems.rb:719:in `each' > from /Library/Ruby/Site/1.8/rubygems.rb:719:in `set_paths' > from /Library/Ruby/Site/1.8/rubygems.rb:526:in `path' from > /Library/Ruby/Site/1.8/rubygems/source_index.rb:66:in > `installed_spec_directories' > from /Library/Ruby/Site/1.8/rubygems/source_index.rb:56:in > `from_installed_gems' > from /Library/Ruby/Site/1.8/rubygems.rb:736:in `source_index' > from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:86:in > `init_gemspecs' > from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:21:in > `initialize' > from /Library/Ruby/Site/1.8/rubygems.rb:684:in `new' > from /Library/Ruby/Site/1.8/rubygems.rb:684:in `searcher' > from /Library/Ruby/Site/1.8/rubygems.rb:683:in `synchronize' > from /Library/Ruby/Site/1.8/rubygems.rb:683:in `searcher' > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:34:in `require' > from -e:1 > > Any ideas? Seems like it's looking for a local user for the rake > gems:install or something but there isn't one. Oddly this has been working > for quite sometime and this just started to manifest for a reason yet > unknown. > > Thanks very much in advance for any help or clues. > > Sincerely, > > Tim > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > From sebastian.nowak at gmail.com Sat Feb 21 12:35:49 2009 From: sebastian.nowak at gmail.com (Sebastian Nowak) Date: Sat, 21 Feb 2009 18:35:49 +0100 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build Message-ID: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> Hello, I wonder if there is possible to do something like this: - on every commit CC execute rake test - once a day CC execute rake test:coverage In my idea I want to do time-consumming artifacts not every commit. Is this possible and make sense? -- Pozdrawiam, Sebastian Nowak http://blog.sebastiannowak.net XMPP: seban at chrome.pl From alexey.verkhovsky at gmail.com Sat Feb 21 14:32:56 2009 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Sat, 21 Feb 2009 12:32:56 -0700 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build In-Reply-To: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> References: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> Message-ID: <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> On Sat, Feb 21, 2009 at 10:35 AM, Sebastian Nowak wrote: > Hello, > I wonder if there is possible to do something like this: > - on every commit CC execute rake test > - once a day CC execute rake test:coverage This sounds like a piece of logic that you can easily implement within the Rake build. The idea with CC.rb is that it doesn't provide unusual fancy features - if you need them, you either put it in the build or hack the tool itself. It's rather simple, and written in an interpreted language. Therefore, easy to hack. -- Alexey Verkhovsky http://alex-verkhovsky.blogspot.com/ CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: From bret at pettichord.com Sat Feb 21 17:19:52 2009 From: bret at pettichord.com (Bret Pettichord) Date: Sat, 21 Feb 2009 16:19:52 -0600 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build In-Reply-To: <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> References: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> Message-ID: Another approach would be to create a separate project that ran the test:coverage rake task, no? This project could have a time-driven trigger. Or it might run only when the other project's task isn't running. Bret On Sat, Feb 21, 2009 at 1:32 PM, Alexey Verkhovsky < alexey.verkhovsky at gmail.com> wrote: > On Sat, Feb 21, 2009 at 10:35 AM, Sebastian Nowak < > sebastian.nowak at gmail.com> wrote: > >> Hello, >> I wonder if there is possible to do something like this: >> - on every commit CC execute rake test >> - once a day CC execute rake test:coverage > > > This sounds like a piece of logic that you can easily implement within the > Rake build. > > The idea with CC.rb is that it doesn't provide unusual fancy features - if > you need them, you either put it in the build or hack the tool itself. It's > rather simple, and written in an interpreted language. Therefore, easy to > hack. > > -- > Alexey Verkhovsky > http://alex-verkhovsky.blogspot.com/ > CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -- Bret Pettichord GTalk: bpettichord at gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer, Watir, http://www.watir.com Blog (Essays), http://www.io.com/~wazmo/blog MiniBlog (Links), http://feeds.feedburner.com/bretshotlist Training, http://www.watircraft.com/watir-training -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexey.verkhovsky at gmail.com Sat Feb 21 20:23:10 2009 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Sat, 21 Feb 2009 18:23:10 -0700 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build In-Reply-To: References: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> Message-ID: <3945c4270902211723k29166046xb7aa268f7eb150a@mail.gmail.com> On Sat, Feb 21, 2009 at 3:19 PM, Bret Pettichord wrote: > Another approach would be to create a separate project that ran the > test:coverage rake task, no? Sure, that could be another option. -- Alexey Verkhovsky http://alex-verkhovsky.blogspot.com/ CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Sun Feb 22 00:09:32 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Sat, 21 Feb 2009 22:09:32 -0700 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build In-Reply-To: <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> References: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> Message-ID: On Sat, Feb 21, 2009 at 12:32 PM, Alexey Verkhovsky wrote: > On Sat, Feb 21, 2009 at 10:35 AM, Sebastian Nowak > wrote: >> >> Hello, >> I wonder if there is possible to do something like this: >> - on every commit CC execute rake test >> - once a day CC execute rake test:coverage > > This sounds like a piece of logic that you can easily implement within the > Rake build. > > The idea with CC.rb is that it doesn't provide unusual fancy features - if > you need them, you either put it in the build or hack the tool itself. It's > rather simple, and written in an interpreted language. Therefore, easy to > hack. I looked at the source briefly. You'd have to make a custom trigger that ran only periodically, I think? Does anyone have code to do this? I think Jeremy mentioned it once... From twalker at comverge.com Mon Feb 23 15:39:28 2009 From: twalker at comverge.com (tim walker) Date: Mon, 23 Feb 2009 13:39:28 -0700 Subject: [Cruisecontrolrb-users] Etc.getpwuid error in rake gems In-Reply-To: Message-ID: Thanks guys. Messing with this this morning. Very helpful. T On 2/20/09 5:03 PM, "Chad Woolley" wrote: > or just make an init script. IF this is linux, there's examples in > the ccrb source (look in daemon dir) > > On Fri, Feb 20, 2009 at 4:56 PM, Alex Soto wrote: >> This probably doesn't solve the root of the problem, but you could try to >> run it using nohup. >> >> On Feb 20, 2009, at 3:34 PM, tim walker wrote: >> >> Hi Guys, >> >> Kind of a weird problem going on. Hope someone has a thought on what might >> be going on. >> >> 1) I am starting cruisecontrol from ./cruisecontrolrb/cruise start ?d (so it >> runs as a daemon) from an SSH connection to the server running cruise. >> Everything works fine. >> >> 2) When I log out of my SSH connection, I get the following error on the >> next build. >> >> ruby -e require 'rubygems' rescue nil; require 'rake'; load >> '/Users/deploy/cruisecontrolrb/tasks/cc_build.rake'; ARGV << '--nosearch' << >> 'cc:build'; Rake.application.run; ARGV.clear >> /Library/Ruby/Site/1.8/rubygems.rb:723:in `getpwuid': can't find user for >> 503 (ArgumentError) >> from /Library/Ruby/Site/1.8/rubygems.rb:723:in `set_paths' >> from /Library/Ruby/Site/1.8/rubygems.rb:719:in `each' >> from /Library/Ruby/Site/1.8/rubygems.rb:719:in `set_paths' >> from /Library/Ruby/Site/1.8/rubygems.rb:526:in `path' from >> /Library/Ruby/Site/1.8/rubygems/source_index.rb:66:in >> `installed_spec_directories' >> from /Library/Ruby/Site/1.8/rubygems/source_index.rb:56:in >> `from_installed_gems' >> from /Library/Ruby/Site/1.8/rubygems.rb:736:in `source_index' >> from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:86:in >> `init_gemspecs' >> from /Library/Ruby/Site/1.8/rubygems/gem_path_searcher.rb:21:in >> `initialize' >> from /Library/Ruby/Site/1.8/rubygems.rb:684:in `new' >> from /Library/Ruby/Site/1.8/rubygems.rb:684:in `searcher' >> from /Library/Ruby/Site/1.8/rubygems.rb:683:in `synchronize' >> from /Library/Ruby/Site/1.8/rubygems.rb:683:in `searcher' >> from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:34:in `require' >> from -e:1 >> >> Any ideas? Seems like it's looking for a local user for the rake >> gems:install or something but there isn't one. Oddly this has been working >> for quite sometime and this just started to manifest for a reason yet >> unknown. >> >> Thanks very much in advance for any help or clues. >> >> Sincerely, >> >> Tim >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From bret at pettichord.com Tue Feb 24 14:38:29 2009 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 24 Feb 2009 13:38:29 -0600 Subject: [Cruisecontrolrb-users] intermittent git errors on windows Message-ID: A couple of weeks ago, I moved the Watir project to git and github and updated to using the latest version of ccrb from master. It runs on a windows2003 slice hosted at www.watirbuild.com. Since then I have been getting these intermittent errors. They happen several times a day. Any suggestions? Bret [error] C:/Documents and Settings/Administrator/.cruise/projects/ie_core_tests/work Administrator$ git fetch origin fatal: read error (Invalid argument) [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:70:in `execute_with_error_log' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:52:in `execute_in_local_copy' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:51:in `chdir' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:51:in `execute_in_local_copy' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:104:in `git' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:96:in `load_new_changesets_from_origin' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:66:in `new_revisions' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:54:in `up_to_date?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/change_in_source_control_trigger.rb:11:in `build_necessary?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in `build_necessary?' [error] c:/ruby/lib/ruby/1.8/fileutils.rb:1029:in `any?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in `each' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in `any?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in `build_necessary?' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:211:in `build_if_necessary' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/polling_scheduler.rb:13:in `run' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:79 [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:78:in `catch' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:78 [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:47:in `load' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:47:in `builder' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:10:in `send' [error] ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:10:in `run' [error] ./lib/cruise_control/../../script/../config/../cruise:5 -- Bret Pettichord GTalk: bpettichord at gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer, Watir, http://www.watir.com Blog (Essays), http://www.io.com/~wazmo/blog MiniBlog (Links), http://feeds.feedburner.com/bretshotlist Training, http://www.watircraft.com/watir-training -------------- next part -------------- An HTML attachment was scrubbed... URL: From adam at goucher.ca Tue Feb 24 15:26:35 2009 From: adam at goucher.ca (Adam Goucher) Date: Tue, 24 Feb 2009 15:26:35 -0500 Subject: [Cruisecontrolrb-users] intermittent git errors on windows In-Reply-To: References: Message-ID: <49A457FB.80002@goucher.ca> Gogole would seem to imply this is a git issue more than a cc.rb one. Did you see http://osdir.com/ml/version-control.msysgit/2008-01/msg00117.html ? They discuss this error wrt git itself. -adam > A couple of weeks ago, I moved the Watir project to git and github and > updated to using the latest version of ccrb from master. It runs on a > windows2003 slice hosted at www.watirbuild.com > . > > Since then I have been getting these intermittent errors. They happen > several times a day. Any suggestions? > > Bret > > [error] C:/Documents and > Settings/Administrator/.cruise/projects/ie_core_tests/work > Administrator$ git fetch origin > fatal: read error (Invalid argument) > > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:70:in > `execute_with_error_log' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:52:in > `execute_in_local_copy' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:51:in > `chdir' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:51:in > `execute_in_local_copy' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:104:in > `git' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:96:in > `load_new_changesets_from_origin' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:66:in > `new_revisions' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:54:in > `up_to_date?' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/change_in_source_control_trigger.rb:11:in > `build_necessary?' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in > `build_necessary?' > [error] c:/ruby/lib/ruby/1.8/fileutils.rb:1029:in `any?' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in > `each' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in > `any?' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in > `build_necessary?' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:211:in > `build_if_necessary' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/polling_scheduler.rb:13:in > `run' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:79 > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:78:in > `catch' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:78 > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:47:in > `load' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:47:in > `builder' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:10:in > `send' > [error] > ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:10:in > `run' > [error] ./lib/cruise_control/../../script/../config/../cruise:5 > > > > -- > Bret Pettichord > GTalk: bpettichord at gmail.com > CTO, WatirCraft LLC, http://www.watircraft.com > Lead Developer, Watir, http://www.watir.com > Blog (Essays), http://www.io.com/~wazmo/blog > > MiniBlog (Links), http://feeds.feedburner.com/bretshotlist > Training, http://www.watircraft.com/watir-training > ------------------------------------------------------------------------ > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > From bret at pettichord.com Tue Feb 24 23:02:04 2009 From: bret at pettichord.com (Bret Pettichord) Date: Tue, 24 Feb 2009 22:02:04 -0600 Subject: [Cruisecontrolrb-users] intermittent git errors on windows In-Reply-To: <49A457FB.80002@goucher.ca> References: <49A457FB.80002@goucher.ca> Message-ID: Thanks. It looks like a problem with msysgit. I posted a note here: http://code.google.com/p/msysgit/issues/detail?id=197 Bret On Tue, Feb 24, 2009 at 2:26 PM, Adam Goucher wrote: > Gogole would seem to imply this is a git issue more than a cc.rb one. Did > you see http://osdir.com/ml/version-control.msysgit/2008-01/msg00117.html? They discuss this error wrt git itself. > > -adam > >> A couple of weeks ago, I moved the Watir project to git and github and >> updated to using the latest version of ccrb from master. It runs on a >> windows2003 slice hosted at www.watirbuild.com > >. >> >> >> Since then I have been getting these intermittent errors. They happen >> several times a day. Any suggestions? >> >> Bret >> >> [error] C:/Documents and >> Settings/Administrator/.cruise/projects/ie_core_tests/work Administrator$ >> git fetch origin fatal: read error (Invalid argument) >> >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:70:in >> `execute_with_error_log' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:52:in >> `execute_in_local_copy' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:51:in >> `chdir' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/abstract_adapter.rb:51:in >> `execute_in_local_copy' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:104:in >> `git' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:96:in >> `load_new_changesets_from_origin' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:66:in >> `new_revisions' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../lib/source_control/git.rb:54:in >> `up_to_date?' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/change_in_source_control_trigger.rb:11:in >> `build_necessary?' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in >> `build_necessary?' >> [error] c:/ruby/lib/ruby/1.8/fileutils.rb:1029:in `any?' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in >> `each' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in >> `any?' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:234:in >> `build_necessary?' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/project.rb:211:in >> `build_if_necessary' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/../config/../app/models/polling_scheduler.rb:13:in >> `run' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:79 >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:78:in >> `catch' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/../../script/builder:78 >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:47:in >> `load' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:47:in >> `builder' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:10:in >> `send' >> [error] >> ./lib/cruise_control/../../script/../config/../lib/cruise_control/init.rb:10:in >> `run' >> [error] ./lib/cruise_control/../../script/../config/../cruise:5 >> >> >> >> -- >> Bret Pettichord >> GTalk: bpettichord at gmail.com >> CTO, WatirCraft LLC, http://www.watircraft.com >> Lead Developer, Watir, http://www.watir.com >> Blog (Essays), http://www.io.com/~wazmo/blog< >> http://www.io.com/%7Ewazmo/blog> >> MiniBlog (Links), http://feeds.feedburner.com/bretshotlist >> Training, http://www.watircraft.com/watir-training >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -- Bret Pettichord GTalk: bpettichord at gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer, Watir, http://www.watir.com Blog (Essays), http://www.io.com/~wazmo/blog MiniBlog (Links), http://feeds.feedburner.com/bretshotlist Training, http://www.watircraft.com/watir-training -------------- next part -------------- An HTML attachment was scrubbed... URL: From duskglow at gmail.com Wed Feb 25 14:29:51 2009 From: duskglow at gmail.com (Russell Miller) Date: Wed, 25 Feb 2009 11:29:51 -0800 Subject: [Cruisecontrolrb-users] rale limit builds Message-ID: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> Hi everyone, Is there a quick and easy way to say "only this number of builds can occur at one time, and any others will have to wait until they're done"? --Russell From jeremy.lightsmith at gmail.com Wed Feb 25 15:33:35 2009 From: jeremy.lightsmith at gmail.com (Jeremy Lightsmith) Date: Wed, 25 Feb 2009 12:33:35 -0800 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> Message-ID: <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> There is if that number of builds is 1. In the site_config.rb file there should be a line about serializing builds that you can uncomment. Jeremy On Wed, Feb 25, 2009 at 11:29 AM, Russell Miller wrote: > Hi everyone, > > Is there a quick and easy way to say "only this number of builds can > occur at one time, and any others will have to wait until they're > done"? > > --Russell > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nick at ekenosen.net Wed Feb 25 16:02:01 2009 From: nick at ekenosen.net (nicholas a. evans) Date: Wed, 25 Feb 2009 16:02:01 -0500 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> Message-ID: <276ff9870902251302m6aeaf26fu746a6eefa8b1a355@mail.gmail.com> I've been meaning to look into this myself (to see how tricky it would be to implement). We've got 26 builds on our server, and the server really comes crashing to a halt once more than four or five of them are building at once. I don't really want to serialize the builds to just one at a time, but that's what I've done for now. -- Nick On Wed, Feb 25, 2009 at 2:29 PM, Russell Miller wrote: > Hi everyone, > > Is there a quick and easy way to say "only this number of builds can > occur at one time, and any others will have to wait until they're > done"? > > --Russell > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > From duskglow at gmail.com Wed Feb 25 16:14:56 2009 From: duskglow at gmail.com (Russell Miller) Date: Wed, 25 Feb 2009 13:14:56 -0800 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <276ff9870902251302m6aeaf26fu746a6eefa8b1a355@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <276ff9870902251302m6aeaf26fu746a6eefa8b1a355@mail.gmail.com> Message-ID: <4eea36270902251314g1b6d2269ybb771238974b643a@mail.gmail.com> On Wed, Feb 25, 2009 at 1:02 PM, nicholas a. evans wrote: > I've been meaning to look into this myself (to see how tricky it would > be to implement). ?We've got 26 builds on our server, and the server > really comes crashing to a halt once more than four or five of them > are building at once. ?I don't really want to serialize the builds to > just one at a time, but that's what I've done for now. > We have cruisecontrolrb set up to automatically build our puppet manifests. We have about 50 manifests, and it turns out that if you run too many sequentially the whole process falls on its knees for some reason. I've been trying to figure out why, but I'd like to be able to say "run 7 builds at a time" instead of having to rely on the insanely complex locking mechanism we use now (that doesn't seem to scale very well). --Russell From duskglow at gmail.com Wed Feb 25 16:15:31 2009 From: duskglow at gmail.com (Russell Miller) Date: Wed, 25 Feb 2009 13:15:31 -0800 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <4eea36270902251314g1b6d2269ybb771238974b643a@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <276ff9870902251302m6aeaf26fu746a6eefa8b1a355@mail.gmail.com> <4eea36270902251314g1b6d2269ybb771238974b643a@mail.gmail.com> Message-ID: <4eea36270902251315i44358cc2t3666a690edee19ed@mail.gmail.com> > We have cruisecontrolrb set up to automatically build our puppet > manifests. ?We have ?about 50 manifests, and it turns out that if you > run too many sequentially the whole process falls on its knees for > some reason. ?I've been trying to figure out why, but I'd like to be > able to say "run 7 builds at a time" instead of having to rely on the > insanely complex locking mechanism we use now (that doesn't seem to > scale very well). > That sould read "concurrently", not "sequentially". Sorry. --Russell From bret at pettichord.com Wed Feb 25 16:19:06 2009 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 25 Feb 2009 15:19:06 -0600 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> Message-ID: Just FYI, i was not able to get this to work for me. Instead I ended up serializing my builds. I have two projects that follow the same repository (different rake tasks). So my guess was that both builders launched at the same time. One moment there were 0, the next moment, 2. Bret On Wed, Feb 25, 2009 at 2:33 PM, Jeremy Lightsmith < jeremy.lightsmith at gmail.com> wrote: > There is if that number of builds is 1. In the site_config.rb file there > should be a line about serializing builds that you can uncomment. > > Jeremy > > > On Wed, Feb 25, 2009 at 11:29 AM, Russell Miller wrote: > >> Hi everyone, >> >> Is there a quick and easy way to say "only this number of builds can >> occur at one time, and any others will have to wait until they're >> done"? >> >> --Russell >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -- Bret Pettichord GTalk: bpettichord at gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer, Watir, http://www.watir.com Blog (Essays), http://www.io.com/~wazmo/blog MiniBlog (Links), http://feeds.feedburner.com/bretshotlist Training, http://www.watircraft.com/watir-training -------------- next part -------------- An HTML attachment was scrubbed... URL: From duskglow at gmail.com Wed Feb 25 16:32:34 2009 From: duskglow at gmail.com (Russell Miller) Date: Wed, 25 Feb 2009 13:32:34 -0800 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> Message-ID: <4eea36270902251332o6f046e2fte9d24e7184a6f204@mail.gmail.com> On Wed, Feb 25, 2009 at 1:19 PM, Bret Pettichord wrote: > Just FYI, i was not able to get this to work for me. Instead I ended up > serializing my builds. > I can't even get serialization to work. It's just ignoring that config option. Have I mentioned I really dislike ruby? :) --Russell From bret at pettichord.com Wed Feb 25 16:56:53 2009 From: bret at pettichord.com (Bret Pettichord) Date: Wed, 25 Feb 2009 15:56:53 -0600 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <4eea36270902251332o6f046e2fte9d24e7184a6f204@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> <4eea36270902251332o6f046e2fte9d24e7184a6f204@mail.gmail.com> Message-ID: I don't think i was clear. I have two builds. one is triggered when the other succeeds. I did it this way because i couldn't the serialize config option to work. Not complaining, just describing. Bret On Wed, Feb 25, 2009 at 3:32 PM, Russell Miller wrote: > On Wed, Feb 25, 2009 at 1:19 PM, Bret Pettichord > wrote: > > Just FYI, i was not able to get this to work for me. Instead I ended up > > serializing my builds. > > > I can't even get serialization to work. It's just ignoring that config > option. > > Have I mentioned I really dislike ruby? :) > > --Russell > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -- Bret Pettichord GTalk: bpettichord at gmail.com CTO, WatirCraft LLC, http://www.watircraft.com Lead Developer, Watir, http://www.watir.com Blog (Essays), http://www.io.com/~wazmo/blog MiniBlog (Links), http://feeds.feedburner.com/bretshotlist Training, http://www.watircraft.com/watir-training -------------- next part -------------- An HTML attachment was scrubbed... URL: From duskglow at gmail.com Wed Feb 25 17:36:29 2009 From: duskglow at gmail.com (Russell Miller) Date: Wed, 25 Feb 2009 14:36:29 -0800 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> <4eea36270902251332o6f046e2fte9d24e7184a6f204@mail.gmail.com> Message-ID: <4eea36270902251436o10a5f24fy4d7a0dbb6d3c3714@mail.gmail.com> On Wed, Feb 25, 2009 at 1:56 PM, Bret Pettichord wrote: > I don't think i was clear. I have two builds. one is triggered when the > other succeeds. I did it this way because i couldn't the serialize config > option to work. > I did get it to work, turns out the site_config.rb file to modify is in /root/.cruise instead. This really isn't an acceptable solution for the long term, but it'll at least let me go back and try to figure out why all of the builds were stomping on each other without everything being horribly broken. --Russell From thewoolleyman at gmail.com Wed Feb 25 18:21:56 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 25 Feb 2009 16:21:56 -0700 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: <4eea36270902251436o10a5f24fy4d7a0dbb6d3c3714@mail.gmail.com> References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> <4eea36270902251332o6f046e2fte9d24e7184a6f204@mail.gmail.com> <4eea36270902251436o10a5f24fy4d7a0dbb6d3c3714@mail.gmail.com> Message-ID: On Wed, Feb 25, 2009 at 3:36 PM, Russell Miller wrote: > I did get it to work, turns out the site_config.rb file to modify is > in /root/.cruise instead. ? This really isn't an acceptable solution > for the long term, but it'll at least let me go back and try to figure > out why all of the builds were stomping on each other without > everything being horribly broken. All user-specific files are supposed to live in ~/.cruise. This is by design, so you can update the cruise application code without risk of losing any data. It also makes it easy to backup or migrate all your user data if necessary. In what way is this unacceptable? Also, looks like you are running as root. This is almost never a good idea - create a non-root user and run everything as that user, using sudo as necessary. -- Chad From duskglow at gmail.com Wed Feb 25 19:01:03 2009 From: duskglow at gmail.com (Russell Miller) Date: Wed, 25 Feb 2009 16:01:03 -0800 Subject: [Cruisecontrolrb-users] rale limit builds In-Reply-To: References: <4eea36270902251129n6269044dvefdceb06ce2d3878@mail.gmail.com> <648eacf20902251233ra89fa8fyadce35774663ae96@mail.gmail.com> <4eea36270902251332o6f046e2fte9d24e7184a6f204@mail.gmail.com> <4eea36270902251436o10a5f24fy4d7a0dbb6d3c3714@mail.gmail.com> Message-ID: <4eea36270902251601x37f09541r9e02c6dc83b327df@mail.gmail.com> On Wed, Feb 25, 2009 at 3:21 PM, Chad Woolley wrote: > All user-specific files are supposed to live in ~/.cruise. ?This is by > design, so you can update the cruise application code without risk of > losing any data. ?It also makes it easy to backup or migrate all your > user data if necessary. > > In what way is this unacceptable? > It's not, I'm trying to help the other guy who said it didn't work, by saying how I got it to work. > Also, looks like you are running as root. ?This is almost never a good > idea - create a non-root user and run everything as that user, using > sudo as necessary. > Unfortunately, I inherited this, and that's not something I'm ready to try changing at the moment. --Russell From sascha at taccon.com Wed Feb 25 15:44:03 2009 From: sascha at taccon.com (Sascha Depold) Date: Wed, 25 Feb 2009 21:44:03 +0100 Subject: [Cruisecontrolrb-users] Using cruisecontrol via subdomain Message-ID: <45DDD957-4024-4EC4-A5B0-7EF8B4AC3628@taccon.com> Hi folks, I know this problem is less a cruisecontrol one, but rather an apache problem, but maybe someone is interested in the answer. How can I redirect from my.subdomain.com to localhost:3333 on my server? Furthermore I want to deny other domains on the server to use the 3333 port. So foo.mydomain.com should redirect on the server to localhost:3333 but foo.mydomain2.com:3333 should be denied by apache. Hopefully you understand what I mean :D Thank you all for answers. From apsoto at gmail.com Wed Feb 25 22:00:40 2009 From: apsoto at gmail.com (Alex Soto) Date: Wed, 25 Feb 2009 19:00:40 -0800 Subject: [Cruisecontrolrb-users] Using cruisecontrol via subdomain In-Reply-To: <45DDD957-4024-4EC4-A5B0-7EF8B4AC3628@taccon.com> References: <45DDD957-4024-4EC4-A5B0-7EF8B4AC3628@taccon.com> Message-ID: <82B44F72-BE90-4E5D-9AB5-CD502E8ED056@gmail.com> Check the archive, I posted an apache config that does this within the last month. On Feb 25, 2009, at 12:44 PM, Sascha Depold wrote: > Hi folks, > > I know this problem is less a cruisecontrol one, but rather an > apache problem, but maybe someone is interested in the answer. > How can I redirect from my.subdomain.com to localhost:3333 on my > server? > > Furthermore I want to deny other domains on the server to use the > 3333 port. > > So > foo.mydomain.com should redirect on the server to localhost:3333 > but > foo.mydomain2.com:3333 should be denied by apache. > > Hopefully you understand what I mean :D > > Thank you all for answers. > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From usselmann.m at icg-online.de Fri Feb 27 09:40:06 2009 From: usselmann.m at icg-online.de (Manfred Usselmann) Date: Fri, 27 Feb 2009 15:40:06 +0100 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build In-Reply-To: References: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> Message-ID: <20090227154006.e9060f24.usselmann.m@icg-online.de> On Sat, 21 Feb 2009 22:09:32 -0700 Chad Woolley wrote: > On Sat, Feb 21, 2009 at 12:32 PM, Alexey Verkhovsky > wrote: > > On Sat, Feb 21, 2009 at 10:35 AM, Sebastian Nowak > > wrote: > >> > >> Hello, > >> I wonder if there is possible to do something like this: > >> - on every commit CC execute rake test > >> - once a day CC execute rake test:coverage > > > > This sounds like a piece of logic that you can easily implement > > within the Rake build. > > > > The idea with CC.rb is that it doesn't provide unusual fancy > > features - if you need them, you either put it in the build or hack > > the tool itself. It's rather simple, and written in an interpreted > > language. Therefore, easy to hack. > > I looked at the source briefly. You'd have to make a custom trigger > that ran only periodically, I think? > > Does anyone have code to do this? I think Jeremy mentioned it once... I had a similiar need and created my own scheduler using rufus/scheduler. I did setup a separate project for the full rebuild which uses this scheduler: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project-specific configuration for CruiseControl.rb Struct.new( "RebuildDef", :cronline, :type ) #type = :full or :quick Project.configure do |project| # // Build the project by invoking rake task 'custom' _OR_ by invoking shell script project.rake_task = 'cruise' build_defs = [ Struct::RebuildDef.new( '0 12 * * 1-6', :quick ), Struct::RebuildDef.new( '0 23 * * 1-6', :quick ), Struct::RebuildDef.new( '0 12 * * 0', :full ) ] project.scheduler = CronScheduler.new( project, build_defs ) end - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - cruisecontrol/lib/builder_plugins/cron_scheduler.rb - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - require 'rubygems' require 'rufus/scheduler' class CronScheduler def initialize(project, build_defs) @project = project @last_build_loop_error_source = nil @last_build_loop_error_time = nil @build_defs = build_defs end def run scheduler = Rufus::Scheduler.new() scheduler.start @build_defs.each do |build_def| puts "Creating cron job #{build_def.cronline} #{build_def.type}..." scheduler.schedule(build_def.cronline) do puts "Job #{build_def.cronline} #{build_def.type} running..." begin ENV['CC_BUILD_TYPE'] = "#{build_def.type}" case build_def.type when :quick # Quick build if new revision available or build requested @project.build_if_necessary when :full # Compulsory full rebuild @project.remove_build_requested_flag_file if @project.build_requested? @project.build(@project.source_control.latest_revision, ['Scheduled full rebuild']) end clean_last_build_loop_error throw :reload_project if @project.config_modified? rescue => e log_error(e) unless (same_error_as_before(e) and last_logged_less_than_an_hour_ago) end end end scheduler.join end def same_error_as_before(error) @last_build_loop_error_source and (error.backtrace.first == @last_build_loop_error_source) end def last_logged_less_than_an_hour_ago @last_build_loop_error_time and @last_build_loop_error_time >= 1.hour.ago end def log_error(error) begin CruiseControl::Log.error(error) rescue STDERR.puts(error.message) STDERR.puts(error.backtrace.map { |l| " #{l}"}.join("\n")) end @last_build_loop_error_source = error.backtrace.first @last_build_loop_error_time = Time.now end def clean_last_build_loop_error @last_build_loop_error_source = @last_build_loop_error_time = nil end end - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From thewoolleyman at gmail.com Fri Feb 27 16:20:09 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 27 Feb 2009 14:20:09 -0700 Subject: [Cruisecontrolrb-users] Periodicaly 'full' build In-Reply-To: <20090227154006.e9060f24.usselmann.m@icg-online.de> References: <1cd6f2670902210935j6c4a4603r3ec12f13f670f9e0@mail.gmail.com> <3945c4270902211132q41d8f570he371bea08b7e376@mail.gmail.com> <20090227154006.e9060f24.usselmann.m@icg-online.de> Message-ID: On Fri, Feb 27, 2009 at 7:40 AM, Manfred Usselmann wrote: > I had a similiar need and created my own scheduler using > rufus/scheduler. ?I did setup a separate project for the full rebuild > which uses this scheduler: This is nice, thanks. I'd like to see something like this included in cruise itself. Not sure if Alexey would want to freeze the scheduler gem into cruise. If not it could be a simple specific-hours and/or minute-interval-based schedule. This should handle most cases, I doubt everyone needs full cron-level granularity of control. -- Chad