From duelin_markers at hotmail.com Tue May 1 09:53:09 2007 From: duelin_markers at hotmail.com (John D Hume) Date: Tue, 01 May 2007 09:53:09 -0400 Subject: [Cruisecontrolrb-users] Remote builds Message-ID: All, We've just set up a remote build (on top of our seven normal builds) using project.build_command = 'ssh ouruser at remotebuildmachine ./build_our_app.sh' Is anyone else doing remote builds (either this way or some other)? What more have you done to make it clean? The issues we'll hopefully be resolving in the next day or two are: * The remote build's status throbber thingy acts funny. It will show the "( ! ) Builder down" spinner even while builds are being triggered by checkins. If you click [Build Now], the "Building" spinner will appear for a while, but disappear before the build has completed. (The list of builds correctly shows the incomplete build until it finishes.) * The cruise machine has a working copy of the code just to detect changes. Would be nice if it detected changes under the relevant tree without actually getting a copy. * The revision cruise thinks it's building isn't guaranteed to be the revision actually building, because build_our_app.sh just does an `svn up` before running rake. Need to see how to pass in a parameter in the build command so we can up to the right revision. I also just noticed that there are two "cruise build" processes running for that build. If anyone's already sorted this stuff out, please let us know. Otherwise I'll update as we get things figured out. Thanks. -john. thoughtworks, u.s. From mdeiters at msn.com Tue May 1 11:29:55 2007 From: mdeiters at msn.com (Matt Deiters) Date: Tue, 01 May 2007 10:29:55 -0500 Subject: [Cruisecontrolrb-users] Remote builds In-Reply-To: Message-ID: Hey humidor We are doing deployments when there are successful builds using a plugin I wrote. Basically if the build succeeds then you can define a command to execute, in our case a capistrano task. You could have it execute your execution of ./build_our_app.sh. Download it here http://rubyforge.org/projects/cc-post-build/ Matt >From: "John D Hume" >To: cruisecontrolrb-users at rubyforge.org >Subject: [Cruisecontrolrb-users] Remote builds >Date: Tue, 01 May 2007 09:53:09 -0400 > >All, >We've just set up a remote build (on top of our seven normal builds) using > project.build_command = 'ssh ouruser at remotebuildmachine >./build_our_app.sh' > >Is anyone else doing remote builds (either this way or some other)? What >more have you done to make it clean? > >The issues we'll hopefully be resolving in the next day or two are: >* The remote build's status throbber thingy acts funny. It will show the >"( >! ) Builder down" spinner even while builds are being triggered by >checkins. > If you click [Build Now], the "Building" spinner will appear for a >while, >but disappear before the build has completed. (The list of builds >correctly >shows the incomplete build until it finishes.) >* The cruise machine has a working copy of the code just to detect changes. >Would be nice if it detected changes under the relevant tree without >actually getting a copy. >* The revision cruise thinks it's building isn't guaranteed to be the >revision actually building, because build_our_app.sh just does an `svn up` >before running rake. Need to see how to pass in a parameter in the build >command so we can up to the right revision. > >I also just noticed that there are two "cruise build" processes running for >that build. > >If anyone's already sorted this stuff out, please let us know. Otherwise >I'll update as we get things figured out. > >Thanks. >-john. >thoughtworks, u.s. > > >_______________________________________________ >Cruisecontrolrb-users mailing list >Cruisecontrolrb-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From maui at ideeli.com Tue May 1 13:30:32 2007 From: maui at ideeli.com (Mark Uhrmacher) Date: Tue, 1 May 2007 13:30:32 -0400 Subject: [Cruisecontrolrb-users] Fwd: Problem with CC and rails_cron In-Reply-To: References: Message-ID: Hi all, I tried sending this last week but it never showed up on the list. Resending.. ---------- Forwarded message ---------- Date: Apr 27, 2007 11:24 AM Subject: Problem with CC and rails_cron To: cruisecontrolrb-users at rubyforge.org Hi everyone, I'm having a problem with CC with a plugin that creates its own table in init.rb. I can run rake RAILS_ENV=test db:test:purge;rake RAILS_ENV=test db:migrate; rake test from /projects/ without an error. However, I get an error right after the successful migration in the CC build.log as follows: [CruiseControl] Invoking Rake task "test" /usr/local/bin/ruby18 -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb" "test/unit/ecard_test.rb" "test/unit/color_test.rb" "test/unit/user_test.rb" "test/unit/common_question_test.rb" "test/unit/product_test.rb" "test/unit/image_test.rb" "test/unit/subscription_test.rb" "test/unit/blog_image_test.rb" "test/unit/post_test.rb" "test/unit/promotion_test.rb" "test/unit/carrier_test.rb" "test/unit/cart_test.rb" "test/unit/service_test.rb" "test/unit/offer_test.rb" "test/unit/comment_test.rb" "test/unit/sku_test.rb" "test/unit/sms_test.rb" "test/unit/batch_sms_test.rb" "test/unit/faq_test.rb" "test/unit/blog_comment_test.rb" "test/unit/line_item_test.rb" "test/unit/job_test.rb" "test/unit/gateway_subscription_notification_test.rb" "test/unit/entrant_test.rb" "test/unit/call_test.rb" "test/unit/order_test.rb" "test/unit/sweepstake_test.rb" "test/unit/category_test.rb" "test/unit/update_notification_test.rb" "test/unit/update_email_test.rb" "test/unit/invitation_test.rb" "test/unit/request_for_notification_test.rb" "test/unit/related_site_test.rb" -- create_table("rails_crons") -> 0.0048s -- add_column(:rails_crons, :concurrent, :boolean) -> 0.0232s /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1789:in `method_missing': undefined method `concurrent=' for # (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in `send' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in `attributes=' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1509:in `each' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1509:in `attributes=' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1354:in `initialize_without_callbacks' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:236:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:406:in `new' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:406:in `create' ... 12 levels... from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5 from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5:in `each' from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5 /usr/local/bin/ruby18 -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake- 0.7.2/lib/rake/rake_test_loader.rb" "test/functional/landing_controller_test.rb" "test/functional/store_controller_test.rb" "test/functional/update_emails_controller_test.rb" "test/functional/sms_controller_test.rb" "test/functional/admin_controller_test.rb" "test/functional/ivr_controller_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader Started It is worth noting that the rails cron plugin has its own internal migration in its init.rb: ------- vendor/plugin/rails_cron/init.rb start ------ require "rails_cron" require "acts_as_background" ActiveRecord::Base.send :include, ActsAsBackground unless RailsCron.table_exists? ActiveRecord::Schema.create_table(RailsCron.table_name) do |t| t.column :command, :text t.column :start, :integer t.column :finish, :integer t.column :every, :integer end end unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean end --- end file -- Any idea why these builds are failing? Environment: FreeBSD 6 CC 1.1 Rails 1.1.6 Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070501/32222d3b/attachment-0001.html From gedanken at io.com Tue May 1 14:38:27 2007 From: gedanken at io.com (Gedanken) Date: Tue, 1 May 2007 13:38:27 -0500 (CDT) Subject: [Cruisecontrolrb-users] Help! Project suddenly running as wrong user In-Reply-To: References: Message-ID: <20070501133412.N3120@eris.io.com> I have two nearly identical projects in cc.rb, and both have been building great for weeks. Yay! Today, i somehow broke one, and I have no idea how. As far as I know: - all files in both cc.rb project directories are owned by 'bob' - there is no mention of 'root' anywhere in either tree - cc.rb is running as user 'bob' But whenever i try to build one of the projects, it runs as user 'root' and fails. Clicking on the other build button succeeds because it runs as user bob. For the first project, all files (builder.pid, build-75.6 directory etc) are all owned by root, and i have no idea why!!! What is telling cc.rb to make all of these files owned by root?? Teh fact that the second project still builds fine as bob is killing me. -- gedanken From duelin_markers at hotmail.com Tue May 1 16:00:14 2007 From: duelin_markers at hotmail.com (John D Hume) Date: Tue, 01 May 2007 16:00:14 -0400 Subject: [Cruisecontrolrb-users] Remote builds In-Reply-To: Message-ID: Update on our progress: We decided the biggest of our three issues was >* The revision cruise thinks it's building isn't guaranteed to be the >revision actually building, because build_our_app.sh just does an `svn up` >before running rake. Need to see how to pass in a parameter in the build >command so we can up to the right revision. The challenge was that the project.build_command was set only when the configuration was loaded, which didn't happen before every build triggered by a commit. After digging around, we decided the easiest way forward was to modify Build.command to do a token replacement. (We looked at reloading the config on every build, but this seemed a big change just to get a revision number into our build_command.) We ended up with: # builder_plugins/installed/build_command_token_replacement.rb Build.class_eval do def command s = project.build_command or rake s.gsub(//, project.source_control.current_revision(project).to_s) end end #eof -john. From averkhov at thoughtworks.com Tue May 1 19:14:34 2007 From: averkhov at thoughtworks.com (Alexey Verkhovsky) Date: Tue, 1 May 2007 18:14:34 -0500 Subject: [Cruisecontrolrb-users] Fwd: Problem with CC and rails_cron In-Reply-To: Message-ID: I think it did show up the forst time around, but nobody responded because nobody has any idea as to what causes your problem. unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean end -- Alex Verkhovsky CC.rb team "Mark Uhrmacher" Sent by: cruisecontrolrb-users-bounces at rubyforge.org 05/01/2007 11:30 AM To cruisecontrolrb-users at rubyforge.org cc Subject [Cruisecontrolrb-users] Fwd: Problem with CC and rails_cron Hi all, I tried sending this last week but it never showed up on the list. Resending.. ---------- Forwarded message ---------- Date: Apr 27, 2007 11:24 AM Subject: Problem with CC and rails_cron To: cruisecontrolrb-users at rubyforge.org Hi everyone, I'm having a problem with CC with a plugin that creates its own table in init.rb. I can run rake RAILS_ENV=test db:test:purge;rake RAILS_ENV=test db:migrate; rake test from /projects/ without an error. However, I get an error right after the successful migration in the CC build.log as follows: [CruiseControl] Invoking Rake task "test" /usr/local/bin/ruby18 -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb" "test/unit/ecard_test.rb" "test/unit/color_test.rb" "test/unit/user_test.rb" "test/unit/common_question_test.rb" "test/unit/product_test.rb" "test/unit/image_test.rb" "test/unit/subscription_test.rb" "test/unit/blog_image_test.rb" "test/unit/post_test.rb" "test/unit/promotion_test.rb" "test/unit/carrier_test.rb" "test/unit/cart_test.rb" "test/unit/service_test.rb" "test/unit/offer_test.rb" "test/unit/comment_test.rb" "test/unit/sku_test.rb" "test/unit/sms_test.rb" "test/unit/batch_sms_test.rb" "test/unit/faq_test.rb" "test/unit/blog_comment_test.rb" "test/unit/line_item_test.rb" "test/unit/job_test.rb" "test/unit/gateway_subscription_notification_test.rb" "test/unit/entrant_test.rb" "test/unit/call_test.rb" "test/unit/order_test.rb" "test/unit/sweepstake_test.rb" "test/unit/category_test.rb" "test/unit/update_notification_test.rb" "test/unit/update_email_test.rb" "test/unit/invitation_test.rb" "test/unit/request_for_notification_test.rb" "test/unit/related_site_test.rb" -- create_table("rails_crons") -> 0.0048s -- add_column(:rails_crons, :concurrent, :boolean) -> 0.0232s /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1789:in `method_missing': undefined method `concurrent=' for # (NoMethodError) from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in `send' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1510:in `attributes=' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1509:in `each' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1509:in `attributes=' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1354:in `initialize_without_callbacks' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:236:in `initialize' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:406:in `new' from /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:406:in `create' ... 12 levels... from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in `load' from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5 from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5:in `each' from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb:5 /usr/local/bin/ruby18 -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader.rb" "test/functional/landing_controller_test.rb" "test/functional/store_controller_test.rb" "test/functional/update_emails_controller_test.rb" "test/functional/sms_controller_test.rb" "test/functional/admin_controller_test.rb" "test/functional/ivr_controller_test.rb" Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader Started It is worth noting that the rails cron plugin has its own internal migration in its init.rb: ------- vendor/plugin/rails_cron/init.rb start ------ require "rails_cron" require "acts_as_background" ActiveRecord::Base.send :include, ActsAsBackground unless RailsCron.table_exists? ActiveRecord::Schema.create_table(RailsCron.table_name) do |t| t.column :command, :text t.column :start, :integer t.column :finish, :integer t.column :every, :integer end end unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean end --- end file -- Any idea why these builds are failing? Environment: FreeBSD 6 CC 1.1 Rails 1.1.6 Thanks, Mark _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070501/e072ddc8/attachment.html From t.lucas at toolmantim.com Tue May 1 19:37:38 2007 From: t.lucas at toolmantim.com (Tim Lucas) Date: Wed, 2 May 2007 09:37:38 +1000 Subject: [Cruisecontrolrb-users] Fwd: Problem with CC and rails_cron In-Reply-To: References: Message-ID: <1B653679-FB17-49F7-9077-BCB29153A68C@toolmantim.com> Mark, On 02/05/2007, at 9:14 AM, Alexey Verkhovsky wrote: > unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" > ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean > end They forgot to reload the column info. Try this: unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean RailsCron.reload_column_information end -- tim From rsanheim at gmail.com Tue May 1 19:59:12 2007 From: rsanheim at gmail.com (Rob Sanheim) Date: Tue, 1 May 2007 18:59:12 -0500 Subject: [Cruisecontrolrb-users] setting failure email options? Message-ID: Hi How can I set what gets displayed in the build notification emails, similar to how the rails-core failure messages used to look? Ideally I'd like the changeset, the committer, an excerpt of the failure and the link to the dashboard. I really don't need the full trace... - Rob -- http://robsanheim.com http://seekingalpha.com From averkhov at thoughtworks.com Tue May 1 20:09:12 2007 From: averkhov at thoughtworks.com (Alexey Verkhovsky) Date: Tue, 1 May 2007 19:09:12 -0500 Subject: [Cruisecontrolrb-users] setting failure email options? In-Reply-To: Message-ID: To get a brief message instead of a full build log, you have to set Configuration.dashboard_url in config/site_config.rb. But you probably know this already. In CCrb 1.1, a brief message will only have a link to the build page, and nothing else. I would like to include Changeset and Build Errors sections in it for the next version (Rails-core guys and some other users also asked for this). The message template is app/views/buukd_mailer/build_report.rhtml. If you do change it, please submit a patch. Best regards, Alex Verkhovsky "Rob Sanheim" Sent by: cruisecontrolrb-users-bounces at rubyforge.org 05/01/2007 05:59 PM To cruisecontrolrb-users at rubyforge.org cc Subject [Cruisecontrolrb-users] setting failure email options? Hi How can I set what gets displayed in the build notification emails, similar to how the rails-core failure messages used to look? Ideally I'd like the changeset, the committer, an excerpt of the failure and the link to the dashboard. I really don't need the full trace... - Rob -- http://robsanheim.com http://seekingalpha.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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070501/4645833d/attachment-0001.html From fkc_email-ruby at yahoo.com Wed May 2 00:34:48 2007 From: fkc_email-ruby at yahoo.com (fkc_email-ruby at yahoo.com) Date: Tue, 1 May 2007 21:34:48 -0700 (PDT) Subject: [Cruisecontrolrb-users] CCTray access of remote CC.rb server Message-ID: <812584.297.qm@web82812.mail.mud.yahoo.com> Hi: So I modified the instructions in the manual which say to enter http://:3333 using th CruiseControl.NET Dashboard to http://hostname:3333 which doesn't work. CCTray reports an error. On the mongrel side I can see CC.rb can't route /XmlServerReport.aspx. I see in the controller there is a cctray format to respond. I'm using ruby 1.8.5, rails 1.2.3 and the latest CC.rb. Did I do something wrong? Thanks Forrest From gedanken at io.com Wed May 2 08:01:01 2007 From: gedanken at io.com (Gedanken) Date: Wed, 2 May 2007 07:01:01 -0500 (CDT) Subject: [Cruisecontrolrb-users] [fixed] build running as wrong user In-Reply-To: References: Message-ID: <20070502065925.U29101@eris.io.com> I had to manually kill the cruise process that had been launched for the project... restarting the main cruise process did not remove the root project process. -- gedanken From esad.talks at esse.at Wed May 2 10:06:10 2007 From: esad.talks at esse.at (Esad Hajdarevic) Date: Wed, 02 May 2007 16:06:10 +0200 Subject: [Cruisecontrolrb-users] deleting older builds Message-ID: <46389AD2.90009@esse.at> Hi, We currently have build history of 200 builds, and we basically need maybe last 20-30 shown, so I wanted to ask if it is possible to limit the number of builds the ccrb will keep? If not, can I simply delete old builds I don't need? Greetings, Esad From mdeiters at msn.com Wed May 2 10:26:48 2007 From: mdeiters at msn.com (Matt Deiters) Date: Wed, 02 May 2007 09:26:48 -0500 Subject: [Cruisecontrolrb-users] deleting older builds In-Reply-To: <46389AD2.90009@esse.at> Message-ID: sounds like you need to upgrade from 1.0 to 1.1 >From: Esad Hajdarevic >To: cruisecontrolrb-users at rubyforge.org >Subject: [Cruisecontrolrb-users] deleting older builds >Date: Wed, 02 May 2007 16:06:10 +0200 > >Hi, > >We currently have build history of 200 builds, and we basically need >maybe last 20-30 shown, so I wanted to ask if it is possible to limit >the number of builds the ccrb will keep? If not, can I simply delete old >builds I don't need? > >Greetings, > >Esad > >_______________________________________________ >Cruisecontrolrb-users mailing list >Cruisecontrolrb-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From fkc_email-ruby at yahoo.com Wed May 2 11:52:07 2007 From: fkc_email-ruby at yahoo.com (fkc_email-ruby at yahoo.com) Date: Wed, 2 May 2007 08:52:07 -0700 (PDT) Subject: [Cruisecontrolrb-users] test Message-ID: <410685.94071.qm@web82810.mail.mud.yahoo.com> HI: My message seems to have dissappeared into oblivion. Trying to see if my submission will make it Forrest From fkc_email-ruby at yahoo.com Wed May 2 12:15:06 2007 From: fkc_email-ruby at yahoo.com (fkc_email-ruby at yahoo.com) Date: Wed, 2 May 2007 09:15:06 -0700 (PDT) Subject: [Cruisecontrolrb-users] CCTray setup with remote CC.rb Message-ID: <74449.19438.qm@web82808.mail.mud.yahoo.com> HI All: Sorry about the test post, I posted this 2x before and never saw it on the list. I modified the CCTray instructions in the manual which say to put in http://:3333 in the "Via CruiseContro.Net Dashboard", which I'm assuming was local to the machine running CCTRay, with http://:3333 which returns a "failed to connect to server" error. On the mongrel side, I can see CC.rb can't route /XmlServerReports.aspx. I see in the controller code there is a cctray format that is there to respond to such but apparently it's not getting called correctly. Am I missing something? I'm running CC.rb 1.1 on RHEL 64, w/Ruby 1.8.5 and Rails 1.2.3. Thanks Forrest From fkc_email-ruby at yahoo.com Wed May 2 12:32:21 2007 From: fkc_email-ruby at yahoo.com (fkc_email-ruby at yahoo.com) Date: Wed, 2 May 2007 09:32:21 -0700 (PDT) Subject: [Cruisecontrolrb-users] CCTray setup with remote CC.rb Message-ID: <829119.84460.qm@web82814.mail.mud.yahoo.com> Hmm I meant replaced http://:3333 with http://( host name of CC.rb):3333. I delimited host name of CC.rb with < and > it seemed to have dissappeared after the yahoo mailer ----- Original Message ---- From: "fkc_email-ruby at yahoo.com" To: cruisecontrolrb-users at rubyforge.org Sent: Wednesday, May 2, 2007 9:15:06 AM Subject: [Cruisecontrolrb-users] CCTray setup with remote CC.rb HI All: Sorry about the test post, I posted this 2x before and never saw it on the list. I modified the CCTray instructions in the manual which say to put in http://:3333 in the "Via CruiseContro.Net Dashboard", which I'm assuming was local to the machine running CCTRay, with http://:3333 which returns a "failed to connect to server" error. On the mongrel side, I can see CC.rb can't route /XmlServerReports.aspx. I see in the controller code there is a cctray format that is there to respond to such but apparently it's not getting called correctly. Am I missing something? I'm running CC.rb 1.1 on RHEL 64, w/Ruby 1.8.5 and Rails 1.2.3. Thanks Forrest _______________________________________________ Cruisecontrolrb-users mailing list Cruisecontrolrb-users at rubyforge.org http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From seanhussey at gmail.com Wed May 2 16:03:02 2007 From: seanhussey at gmail.com (Sean Hussey) Date: Wed, 2 May 2007 16:03:02 -0400 Subject: [Cruisecontrolrb-users] Using TAP compliant tests with CruiseControl.rb Message-ID: Hi everyone, I've got a couple of projects that use testing harnesses that are TAP compliant. http://en.wikipedia.org/wiki/Test_Anything_Protocol I'm not a huge fan of this because (at least in the harnesses I'm using) the tests will display to the user that they're failing, but return a status of true. Programmatically, it's a big pain. Are there any plans to support TAP compliance within CC.rb? I'm guessing no, but it's worth asking before I decide whether or not I want to work on it. :) Thanks, Sean From fkc_email-ruby at yahoo.com Wed May 2 16:37:46 2007 From: fkc_email-ruby at yahoo.com (fkc_email-ruby at yahoo.com) Date: Wed, 2 May 2007 13:37:46 -0700 (PDT) Subject: [Cruisecontrolrb-users] CCTray setup with remote CC.rb Message-ID: <359422.71137.qm@web82807.mail.mud.yahoo.com> Ok, I figured this out. I added a new route for XmlServerReports.aspx. The one in routes.rb wa XmlStatusReports.aspx. Goes to show how humans make a bad grep. Forrest ----- Original Message ---- From: "fkc_email-ruby at yahoo.com" To: cruisecontrolrb-users at rubyforge.org Sent: Wednesday, May 2, 2007 9:32:21 AM Subject: Re: [Cruisecontrolrb-users] CCTray setup with remote CC.rb Hmm I meant replaced http://:3333 with http://( host name of CC.rb):3333. I delimited host name of CC.rb with < and > it seemed to have dissappeared after the yahoo mailer ----- Original Message ---- From: "fkc_email-ruby at yahoo.com" To: cruisecontrolrb-users at rubyforge.org Sent: Wednesday, May 2, 2007 9:15:06 AM Subject: [Cruisecontrolrb-users] CCTray setup with remote CC.rb HI All: Sorry about the test post, I posted this 2x before and never saw it on the list. I modified the CCTray instructions in the manual which say to put in http://:3333 in the "Via CruiseContro.Net Dashboard", which I'm assuming was local to the machine running CCTRay, with http://:3333 which returns a "failed to connect to server" error. On the mongrel side, I can see CC.rb can't route /XmlServerReports.aspx. I see in the controller code there is a cctray format that is there to respond to such but apparently it's not getting called correctly. Am I missing something? I'm running CC.rb 1.1 on RHEL 64, w/Ruby 1.8.5 and Rails 1.2.3. Thanks Forrest _______________________________________________ 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 maui at ideeli.com Thu May 3 14:53:27 2007 From: maui at ideeli.com (Mark Uhrmacher) Date: Thu, 3 May 2007 14:53:27 -0400 Subject: [Cruisecontrolrb-users] Fwd: Problem with CC and rails_cron In-Reply-To: <1B653679-FB17-49F7-9077-BCB29153A68C@toolmantim.com> References: <1B653679-FB17-49F7-9077-BCB29153A68C@toolmantim.com> Message-ID: Hi Everyone, This modification to init.rb worked great! However, there was one problem: the method call should be reset_column_information. Thanks, Mark On 5/1/07, Tim Lucas wrote: > > Mark, > > On 02/05/2007, at 9:14 AM, Alexey Verkhovsky wrote: > > > unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" > > ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean > > end > > They forgot to reload the column info. Try this: > > unless RailsCron.content_columns.map{|a|a.name}.include? "concurrent" > ActiveRecord::Schema.add_column :rails_crons, :concurrent, :boolean > RailsCron.reload_column_information > end > > -- 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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070503/6437db0f/attachment.html From jeffscadden at hotmail.com Fri May 4 02:21:36 2007 From: jeffscadden at hotmail.com (Jeff Scadden) Date: Fri, 4 May 2007 00:21:36 -0600 Subject: [Cruisecontrolrb-users] Calling a capistrano task Message-ID: Everyone:I am having a hard time figuring out how to call a capistrano task.I am looking for somewhere to call the capistrano deploy task (cap deploy).I have cruisecontrol.rb building, running migrations, and running unit test just fine.I also have capistrano deploying to my "production" sever(which is also the same server that cruisecontrol.rb is running on) from my workstation box (by calling cap deploy).what am I missing to bring these two things together. I want it to deploy on a successful build from cruisecontrol.rbThank you for your great work.- Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070504/fc416e48/attachment.html From mdeiters at msn.com Fri May 4 09:16:26 2007 From: mdeiters at msn.com (Matt Deiters) Date: Fri, 04 May 2007 08:16:26 -0500 Subject: [Cruisecontrolrb-users] Calling a capistrano task In-Reply-To: Message-ID: Hey Jeff, look at the builder plugin I created. I created it so that I could deploy successful builds using capistrano. But it can really execute anything at the command line on a successful build. Instructions: http://www.theagiledeveloper.com/articles/2007/05/01/build-action-plugin-for-cruisecontrol-rb Source: http://rubyforge.org/projects/cc-post-build/ Matt >From: Jeff Scadden >To: "cruisecontrolrb-users at rubyforge.org" > >Subject: [Cruisecontrolrb-users] Calling a capistrano task >Date: Fri, 4 May 2007 00:21:36 -0600 > >Everyone:I am having a hard time figuring out how to call a capistrano >task.I am looking for somewhere to call the capistrano deploy task (cap >deploy).I have cruisecontrol.rb building, running migrations, and running >unit test just fine.I also have capistrano deploying to my "production" >sever(which is also the same server that cruisecontrol.rb is running on) >from my workstation box (by calling cap deploy).what am I missing to bring >these two things together. I want it to deploy on a successful build from >cruisecontrol.rbThank you for your great work.- Jeff >_______________________________________________ >Cruisecontrolrb-users mailing list >Cruisecontrolrb-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From averkhov at thoughtworks.com Fri May 4 10:08:23 2007 From: averkhov at thoughtworks.com (Alexey Verkhovsky) Date: Fri, 4 May 2007 09:08:23 -0500 Subject: [Cruisecontrolrb-users] Calling a capistrano task In-Reply-To: Message-ID: > I am having a hard time figuring out how to call a capistrano task. Writing something like this in your Rakefile (or ./lib/tasks/) should put you on the right track: #untested task :deploy do system 'cap deploy' or raise "Capistrano deployment failed" end Then just add :deploy to the list of dependencies for your :cruise task. Best regards, Alex Verkhovsky -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070504/130b8e07/attachment.html From cory.harper at gmail.com Fri May 4 11:48:32 2007 From: cory.harper at gmail.com (cory) Date: Fri, 4 May 2007 09:48:32 -0600 Subject: [Cruisecontrolrb-users] cruisecontrolrb as windows service Message-ID: Hi All, Is there a simple way to install this as a windows service using mongrel service? Thanks. -cory From maui at ideeli.com Mon May 7 15:27:27 2007 From: maui at ideeli.com (Mark Uhrmacher) Date: Mon, 7 May 2007 15:27:27 -0400 Subject: [Cruisecontrolrb-users] Disappearing logs Message-ID: Hi all, With CC 1.1 running on FreeBSD: I recently converted from using the default CC task (ie. purge, migrate, test) to defining a cruise task that runs rcov over the tests and outputs its data into Custom Build Artifacts. It does a great job of generating and displaying rcov output but the other elements of the CC build display have disappeared (Build Changeset, Build Log, and Project Settings). A further clue is in the new Build Log output: -- Tear Here -- dir : /usr/home/maui/dve/cruisecontrolrb-1.1.0/projects/ideeli/work command : ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/usr/home/maui/dve/cruisecontrolrb-1.1.0/tasks/cc_build.rake'; ARGV << '--nosearch' << '--trace' << 'cc:build'; Rake.application.run" executed command : echo /usr/home/maui/dve/cruisecontrolrb-1.1.0/projects/ideeli/work maui$ ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/usr/home/maui/dve/cruisecontrolrb-1.1.0/tasks/cc_build.rake'; ARGV << '--nosearch' << '--trace' << 'cc:build'; Rake.application.run" >> /usr/home/maui/dve/cruisecontrolrb-1.1.0/projects/ideeli/build-673.2/build.log && ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/usr/home/maui/dve/cruisecontrolrb-1.1.0/tasks/cc_build.rake'; ARGV << '--nosearch' << '--trace' << 'cc:build'; Rake.application.run" >> /usr/home/maui/dve/cruisecontrolrb-1.1.0/projects/ideeli/build-673.2/build.log 2>&1 exitstatus: 1 STDERR TAIL START /usr/home/maui/dve/cruisecontrolrb-1.1.0/projects/ideeli/build-673.2/build.log doesn't exist STDERR TAIL END -- End -- The build.log file referenced above does exist now. Unfortunately it contains the output above. In addition I get this for project settings: -- Tear Here -- This project has no custom configuration. Maybe it doesn't need it. Otherwise, the manual can tell you how. -- End -- I do have a cruise_config.rb in the appropriate projects subdir but it isn't reading it. Here is me new rake task: task :testing do puts "testing called" RAILS_ENV = ENV['RAILS_ENV'] = 'test' abcs = ActiveRecord::Base.configurations case abcs["test"]["adapter"] when "mysql" ActiveRecord::Base.establish_connection(:test) else puts "Error, unable to establish connection to database" exit end end desc "This task runs tests against the cruisecontrol environment" task :cruise do Rake::Task["db:test:purge"].invoke Rake::Task["testing"].invoke Rake::Task["db:migrate"].invoke Rake::Task["test:coverage"].invoke end -- End -- Any ideas on why these files disappeared and what I need to do to fix this? Thanks, Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070507/a50b2447/attachment.html From SkriloffN at darden.virginia.edu Thu May 10 16:59:18 2007 From: SkriloffN at darden.virginia.edu (Skriloff, Nicholas) Date: Thu, 10 May 2007 16:59:18 -0400 Subject: [Cruisecontrolrb-users] build should break if tests do not pass. Message-ID: <97FBA4FCFB72C742B03F1D7FB3A53289A89DAB@MAIL02.darden.virginia.edu> Why does cruise control not report that the build is broken if the tests do NOT pass? How do I have cruise control send an email if the tests do not pass? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070510/01aab87d/attachment.html From mdeiters at msn.com Thu May 10 17:58:43 2007 From: mdeiters at msn.com (Matt Deiters) Date: Thu, 10 May 2007 16:58:43 -0500 Subject: [Cruisecontrolrb-users] build should break if tests do not pass. In-Reply-To: <97FBA4FCFB72C742B03F1D7FB3A53289A89DAB@MAIL02.darden.virginia.edu> Message-ID: Are you using ruby 1.8.6? If so, there is an issue with exit codes. Try using ruby 1.8.4 or 1.8.5 and you will see the build status as broken when your tests don't pass. Matt >From: "Skriloff, Nicholas" >To: >Subject: [Cruisecontrolrb-users] build should break if tests do not pass. >Date: Thu, 10 May 2007 16:59:18 -0400 > > > > > >Why does cruise control not report that the build is broken if the tests >do NOT pass? How do I have cruise control send an email if the tests >do not pass? > > > > > > > > > >_______________________________________________ >Cruisecontrolrb-users mailing list >Cruisecontrolrb-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From SkriloffN at darden.virginia.edu Fri May 11 07:49:15 2007 From: SkriloffN at darden.virginia.edu (Skriloff, Nicholas) Date: Fri, 11 May 2007 07:49:15 -0400 Subject: [Cruisecontrolrb-users] build should break if tests do not pass. References: <97FBA4FCFB72C742B03F1D7FB3A53289A89DAB@MAIL02.darden.virginia.edu> <3945c4270705101420u4c238593i475b9918df29c757@mail.gmail.com> Message-ID: <97FBA4FCFB72C742B03F1D7FB3A53289013584DB@MAIL02.darden.virginia.edu> . That does not appear to be the problem. Is there a ticket number I can review that explains the bug? There is one installation of ruby on this box. Tests run against sql server. D:\>ruby -v ruby 1.8.5 (2006-08-25) [i386-mswin32] Is there a simple fix I can do to the code or a file you can give me to drop in some directory? -----Original Message----- From: Alexey Verkhovsky [mailto:alexey.verkhovsky at gmail.com] Sent: Thursday, May 10, 2007 5:20 PM To: Skriloff, Nicholas Subject: Re: [Cruisecontrolrb-users] build should break if tests do not pass. On 5/10/07, Skriloff, Nicholas wrote: > Why does cruise control not report that the build is broken if the tests do > NOT pass? How do I have cruise control send an email if the tests do not > pass? It's a known Ruby 1.8,.6 bug that will be fixed in the 1.8.6 patch release, whenever that happens. Solution for now is to downgrade to Ruby 1.8.5. -- Alex Verkhovsky From SkriloffN at darden.virginia.edu Fri May 11 07:51:55 2007 From: SkriloffN at darden.virginia.edu (Skriloff, Nicholas) Date: Fri, 11 May 2007 07:51:55 -0400 Subject: [Cruisecontrolrb-users] build should break if tests do not pass. In-Reply-To: References: <97FBA4FCFB72C742B03F1D7FB3A53289A89DAB@MAIL02.darden.virginia.edu> Message-ID: <97FBA4FCFB72C742B03F1D7FB3A53289013584DC@MAIL02.darden.virginia.edu> I will try ruby 1.8.4 because we are on ruby 1.8.5. If some of our applications on this box depend on ruby 1.8.5, can ruby 1.8.4 be run together with 1.8.5 if I install it in a different directory? Also, if you have done this are their any things I should know about? -----Original Message----- From: Matt Deiters [mailto:mdeiters at msn.com] Sent: Thursday, May 10, 2007 5:59 PM To: Skriloff, Nicholas; cruisecontrolrb-users at rubyforge.org Subject: RE: [Cruisecontrolrb-users] build should break if tests do not pass. Are you using ruby 1.8.6? If so, there is an issue with exit codes. Try using ruby 1.8.4 or 1.8.5 and you will see the build status as broken when your tests don't pass. Matt >From: "Skriloff, Nicholas" >To: >Subject: [Cruisecontrolrb-users] build should break if tests do not pass. >Date: Thu, 10 May 2007 16:59:18 -0400 > > > > > >Why does cruise control not report that the build is broken if the tests >do NOT pass? How do I have cruise control send an email if the tests >do not pass? > > > > > > > > > >_______________________________________________ >Cruisecontrolrb-users mailing list >Cruisecontrolrb-users at rubyforge.org >http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users From mdeiters at msn.com Fri May 11 09:24:29 2007 From: mdeiters at msn.com (Matt Deiters) Date: Fri, 11 May 2007 08:24:29 -0500 Subject: [Cruisecontrolrb-users] build should break if tests do not pass. In-Reply-To: <97FBA4FCFB72C742B03F1D7FB3A53289013584DC@MAIL02.darden.virginia.edu> Message-ID: The problem was in ruby 1.8.6, if you are at 1.8.5...then it must be another issue. This is the bug I was referring to: http://rubyforge.org/pipermail/cruisecontrolrb-users/2007-April/000067.html Matt >From: "Skriloff, Nicholas" >To: >CC: "Matt Deiters" >Subject: RE: [Cruisecontrolrb-users] build should break if tests do not >pass. >Date: Fri, 11 May 2007 07:51:55 -0400 > >I will try ruby 1.8.4 because we are on ruby 1.8.5. If some of our >applications on this box depend on ruby 1.8.5, can ruby 1.8.4 be run >together with 1.8.5 if I install it in a different directory? Also, if >you have done this are their any things I should know about? > >-----Original Message----- >From: Matt Deiters [mailto:mdeiters at msn.com] >Sent: Thursday, May 10, 2007 5:59 PM >To: Skriloff, Nicholas; cruisecontrolrb-users at rubyforge.org >Subject: RE: [Cruisecontrolrb-users] build should break if tests do not >pass. > > >Are you using ruby 1.8.6? If so, there is an issue with exit codes. Try >using ruby 1.8.4 or 1.8.5 and you will see the build status as broken >when >your tests don't pass. > >Matt > > >From: "Skriloff, Nicholas" > >To: > >Subject: [Cruisecontrolrb-users] build should break if tests do not >pass. > >Date: Thu, 10 May 2007 16:59:18 -0400 > > > > > > > > > > > >Why does cruise control not report that the build is broken if the >tests > >do NOT pass? How do I have cruise control send an email if the tests > >do not pass? > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ > >Cruisecontrolrb-users mailing list > >Cruisecontrolrb-users at rubyforge.org > >http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > From jeremystellsmith at gmail.com Fri May 11 10:51:15 2007 From: jeremystellsmith at gmail.com (Jeremy Stell-Smith) Date: Fri, 11 May 2007 07:51:15 -0700 Subject: [Cruisecontrolrb-users] Fwd: build should break if tests do not pass. In-Reply-To: References: <97FBA4FCFB72C742B03F1D7FB3A53289013584DC@MAIL02.darden.virginia.edu> Message-ID: ---------- Forwarded message ---------- From: Jeremy Stell-Smith Date: May 11, 2007 7:50 AM Subject: Re: [Cruisecontrolrb-users] build should break if tests do not pass. To: Matt Deiters there is no known problem with broken tests not failing a build on 1.8.5. if you want to check to see if you can fail a build add a task like this to your rake file task :cruise do exit 1 end the build should fail. after that it's a question of how you are running your tests from rake. you can run the build manually and check the return code (it should be non-zero on a failed build) On 5/11/07, Matt Deiters wrote: > > > The problem was in ruby 1.8.6, if you are at 1.8.5...then it must be > another > issue. > > This is the bug I was referring to: > > http://rubyforge.org/pipermail/cruisecontrolrb-users/2007-April/000067.html > > > Matt > > >From: "Skriloff, Nicholas" > >To: > >CC: "Matt Deiters" > >Subject: RE: [Cruisecontrolrb-users] build should break if tests do not > >pass. > >Date: Fri, 11 May 2007 07:51:55 -0400 > > > >I will try ruby 1.8.4 because we are on ruby 1.8.5. If some of our > >applications on this box depend on ruby 1.8.5, can ruby 1.8.4 be run > >together with 1.8.5 if I install it in a different directory? Also, if > >you have done this are their any things I should know about? > > > >-----Original Message----- > >From: Matt Deiters [mailto:mdeiters at msn.com] > >Sent: Thursday, May 10, 2007 5:59 PM > >To: Skriloff, Nicholas; cruisecontrolrb-users at rubyforge.org > >Subject: RE: [Cruisecontrolrb-users] build should break if tests do not > >pass. > > > > > >Are you using ruby 1.8.6? If so, there is an issue with exit codes. Try > >using ruby 1.8.4 or 1.8.5 and you will see the build status as broken > >when > >your tests don't pass. > > > >Matt > > > > >From: "Skriloff, Nicholas" > > >To: > > >Subject: [Cruisecontrolrb-users] build should break if tests do not > >pass. > > >Date: Thu, 10 May 2007 16:59:18 -0400 > > > > > > > > > > > > > > > > > >Why does cruise control not report that the build is broken if the > >tests > > >do NOT pass? How do I have cruise control send an email if the tests > > >do not pass? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ > > >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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070511/a93d2a1c/attachment.html From SkriloffN at darden.virginia.edu Fri May 11 11:47:54 2007 From: SkriloffN at darden.virginia.edu (Skriloff, Nicholas) Date: Fri, 11 May 2007 11:47:54 -0400 Subject: [Cruisecontrolrb-users] Fwd: build should break if tests do notpass. In-Reply-To: References: <97FBA4FCFB72C742B03F1D7FB3A53289013584DC@MAIL02.darden.virginia.edu> Message-ID: <97FBA4FCFB72C742B03F1D7FB3A53289013585BF@MAIL02.darden.virginia.edu> The problem I had was that I was calling rake test:coverage instead of rake:test . Coverage found a broken test but cruise control did not see it as a broken test. Thank you everyone. ________________________________ From: cruisecontrolrb-users-bounces at rubyforge.org [mailto:cruisecontrolrb-users-bounces at rubyforge.org] On Behalf Of Jeremy Stell-Smith Sent: Friday, May 11, 2007 10:51 AM To: Cruise Users Subject: [Cruisecontrolrb-users] Fwd: build should break if tests do notpass. ---------- Forwarded message ---------- From: Jeremy Stell-Smith Date: May 11, 2007 7:50 AM Subject: Re: [Cruisecontrolrb-users] build should break if tests do not pass. To: Matt Deiters there is no known problem with broken tests not failing a build on 1.8.5. if you want to check to see if you can fail a build add a task like this to your rake file task :cruise do exit 1 end the build should fail. after that it's a question of how you are running your tests from rake. you can run the build manually and check the return code (it should be non-zero on a failed build) On 5/11/07, Matt Deiters wrote: The problem was in ruby 1.8.6, if you are at 1.8.5...then it must be another issue. This is the bug I was referring to: http://rubyforge.org/pipermail/cruisecontrolrb-users/2007-April/000067.h tml Matt >From: "Skriloff, Nicholas" < SkriloffN at darden.virginia.edu > >To: >CC: "Matt Deiters" < mdeiters at msn.com> >Subject: RE: [Cruisecontrolrb-users] build should break if tests do not >pass. >Date: Fri, 11 May 2007 07:51:55 -0400 > >I will try ruby 1.8.4 because we are on ruby 1.8.5. If some of our >applications on this box depend on ruby 1.8.5, can ruby 1.8.4 be run >together with 1.8.5 if I install it in a different directory? Also, if >you have done this are their any things I should know about? > >-----Original Message----- >From: Matt Deiters [mailto:mdeiters at msn.com] >Sent: Thursday, May 10, 2007 5:59 PM >To: Skriloff, Nicholas; cruisecontrolrb-users at rubyforge.org >Subject: RE: [Cruisecontrolrb-users] build should break if tests do not >pass. > > >Are you using ruby 1.8.6? If so, there is an issue with exit codes. Try >using ruby 1.8.4 or 1.8.5 and you will see the build status as broken >when >your tests don't pass. > >Matt > > >From: "Skriloff, Nicholas" < SkriloffN at darden.virginia.edu > > >To: > >Subject: [Cruisecontrolrb-users] build should break if tests do not >pass. > >Date: Thu, 10 May 2007 16:59:18 -0400 > > > > > > > > > > > >Why does cruise control not report that the build is broken if the >tests > >do NOT pass? How do I have cruise control send an email if the tests > >do not pass? > > > > > > > > > > > > > > > > > > > > > >_______________________________________________ > >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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070511/2f4498f8/attachment.html From abublic at gmail.com Mon May 14 10:03:37 2007 From: abublic at gmail.com (Artem Vasiliev) Date: Mon, 14 May 2007 18:03:37 +0400 Subject: [Cruisecontrolrb-users] build number to Ant script Message-ID: <872e2d490705140703p1fb34f03g581dc04d86425986@mail.gmail.com> Hi All! I've just migrated build process from CruiseControl for Java to new cruisecontrol.rb. All looks great but I'm missing one thing.. My project is in Java so I launch Ant builder from cruise_config.rb. In the end it creates and publishes war file. I'm used to having build number in this file's name, e.g. build 787 corresponds to services-20070514-1550-build.787.war. In Cruisecontrol for Java Ant was given ${label} property with value ' build.787' for this case; in cruisecontrol.rb Ant don't seem to have this info. May be there's some way to give this info to Ant in cruisecontrol.rb? Thanks in advance, Artem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070514/e94d4864/attachment.html From gedanken at io.com Mon May 14 12:56:53 2007 From: gedanken at io.com (Gedanken) Date: Mon, 14 May 2007 11:56:53 -0500 (CDT) Subject: [Cruisecontrolrb-users] migrations In-Reply-To: References: Message-ID: <20070514115600.Q2820@eris.io.com> Why doesn't cc.rb automatically run migrations? Shouldn't they be required? I am guessing there is probably a really good reason - maybe to avoid wiping out production data? Matt -- gedanken From abublic at gmail.com Mon May 14 13:11:42 2007 From: abublic at gmail.com (Artem) Date: Mon, 14 May 2007 21:11:42 +0400 Subject: [Cruisecontrolrb-users] build number to Ant script In-Reply-To: <20fd9dc50705140710h23d3a2f2mff48922275d8aa4@mail.gmail.com> References: <872e2d490705140703p1fb34f03g581dc04d86425986@mail.gmail.com> <20fd9dc50705140710h23d3a2f2mff48922275d8aa4@mail.gmail.com> Message-ID: <1651515852.20070514211142@gmail.com> Hello Jeff, Well, I'm aware of CC_BUILD_ARTIFACTS environment variable. Unfortunately this is not what I want. This way I would need to publish (make a link to) the whole /path/to/ccrb/projects/my_project directory to show the build numbers of war files; this is excessive. I would be happy if there were also CC_BUILD_NUMBER environment variable equal to 787 in this case. Regards, Artem JX> During the build process, you can copy artifacts (e.g. services.war) JX> to $CC_BUILD_ARTIFACTS directory, which is something like JX> "/path/to/ccrb/projects/my_project/build-787-success.in32s". Does it JX> work for you? JX> On 5/14/07, Artem Vasiliev wrote: >> Hi All! >> >> I've just migrated build process from CruiseControl for Java to new >> cruisecontrol.rb. All looks great but I'm missing one thing.. >> My project is in Java so I launch Ant builder from cruise_config.rb. >> In the end it creates and publishes war file. I'm used to having build >> number in this file's name, e.g. build 787 corresponds to >> services-20070514-1550-build.787.war. >> In Cruisecontrol for Java Ant was given ${label} property with value ' >> build.787' for this case; in cruisecontrol.rb Ant don't seem to have this >> info. >> May be there's some way to give this info to Ant in cruisecontrol.rb? >> >> Thanks in advance, >> Artem >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> -- Best regards, Artem mailto:abublic at gmail.com From averkhov at thoughtworks.com Mon May 14 15:32:16 2007 From: averkhov at thoughtworks.com (Alexey Verkhovsky) Date: Mon, 14 May 2007 14:32:16 -0500 Subject: [Cruisecontrolrb-users] build number to Ant script In-Reply-To: <1651515852.20070514211142@gmail.com> Message-ID: I think it makes sense. I added a story to JIRA (http://jira.public.thoughtworks.org/browse/CCRB-120). We'll get to it in a few weeks. Or, it's a good easy story to make a patch for. If you do, please remember to patch documentation, too. -- Alex Verkhovsky Artem Sent by: cruisecontrolrb-users-bounces at rubyforge.org 05/14/2007 11:11 AM Please respond to Artem To cruisecontrolrb-users at rubyforge.org, "Jeff Xiong" cc Subject Re: [Cruisecontrolrb-users] build number to Ant script Hello Jeff, Well, I'm aware of CC_BUILD_ARTIFACTS environment variable. Unfortunately this is not what I want. This way I would need to publish (make a link to) the whole /path/to/ccrb/projects/my_project directory to show the build numbers of war files; this is excessive. I would be happy if there were also CC_BUILD_NUMBER environment variable equal to 787 in this case. Regards, Artem JX> During the build process, you can copy artifacts (e.g. services.war) JX> to $CC_BUILD_ARTIFACTS directory, which is something like JX> "/path/to/ccrb/projects/my_project/build-787-success.in32s". Does it JX> work for you? JX> On 5/14/07, Artem Vasiliev wrote: >> Hi All! >> >> I've just migrated build process from CruiseControl for Java to new >> cruisecontrol.rb. All looks great but I'm missing one thing.. >> My project is in Java so I launch Ant builder from cruise_config.rb. >> In the end it creates and publishes war file. I'm used to having build >> number in this file's name, e.g. build 787 corresponds to >> services-20070514-1550-build.787.war. >> In Cruisecontrol for Java Ant was given ${label} property with value ' >> build.787' for this case; in cruisecontrol.rb Ant don't seem to have this >> info. >> May be there's some way to give this info to Ant in cruisecontrol.rb? >> >> Thanks in advance, >> Artem >> >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> -- Best regards, Artem mailto:abublic at gmail.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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070514/4db3a84c/attachment.html From abublic at gmail.com Tue May 15 03:02:29 2007 From: abublic at gmail.com (Artem Vasiliev) Date: Tue, 15 May 2007 11:02:29 +0400 Subject: [Cruisecontrolrb-users] build number to Ant script In-Reply-To: References: <1651515852.20070514211142@gmail.com> Message-ID: <872e2d490705150002s2544cedwf60cf5ca083ba29b@mail.gmail.com> I've made the required change (very simple indeed) locally but can't access cruisecontrol.rb's SVN repository yet to make a patch. I've submitted a ticket to rubyforge regarding this access problem ( http://rubyforge.org/tracker/index.php?func=detail&aid=10843&group_id=5&atid=102). For anyone interested here's the change I made: in app/models/build.rb, add following line to in_clean_environment_on_local_copy function body: ENV['CC_BUILD_LABEL'] = self.label I called it CC_BUILD_LABEL instead of CC_BUILD_NUMBER because the label is sometimes not a number; and this is more consistent with cruisecontrol.rb's code and cruisecontrol.java's "label" Ant property. Regards, Artem On 5/14/07, Alexey Verkhovsky wrote: > > > I think it makes sense. I added a story to JIRA ( > http://jira.public.thoughtworks.org/browse/CCRB-120). > We'll get to it in a few weeks. Or, it's a good easy story to make a patch > for. If you do, please remember to patch documentation, too. > > -- > Alex Verkhovsky > > > > > *Artem * > Sent by: cruisecontrolrb-users-bounces at rubyforge.org > > 05/14/2007 11:11 AM Please respond to > Artem > > To > cruisecontrolrb-users at rubyforge.org, "Jeff Xiong" > cc > > Subject > Re: [Cruisecontrolrb-users] build number to Ant script > > > > > > > Hello Jeff, > > Well, I'm aware of CC_BUILD_ARTIFACTS environment variable. Unfortunately > this > is not what I want. This way I would need to publish > (make a link to) the whole /path/to/ccrb/projects/my_project directory to > show > the build numbers of war files; this is excessive. I would be happy if > there > were also CC_BUILD_NUMBER environment variable equal to 787 in this case. > > Regards, > Artem > > JX> During the build process, you can copy artifacts (e.g. services.war) > JX> to $CC_BUILD_ARTIFACTS directory, which is something like > JX> "/path/to/ccrb/projects/my_project/build-787-success.in32s". Does it > JX> work for you? > > JX> On 5/14/07, Artem Vasiliev wrote: > >> Hi All! > >> > >> I've just migrated build process from CruiseControl for Java to new > >> cruisecontrol.rb. All looks great but I'm missing one thing.. > >> My project is in Java so I launch Ant builder from cruise_config.rb. > >> In the end it creates and publishes war file. I'm used to having build > >> number in this file's name, e.g. build 787 corresponds to > >> services-20070514-1550-build.787.war. > >> In Cruisecontrol for Java Ant was given ${label} property with value ' > >> build.787' for this case; in cruisecontrol.rb Ant don't seem to have > this > >> info. > >> May be there's some way to give this info to Ant in cruisecontrol.rb? > >> > >> Thanks in advance, > >> Artem > >> > >> _______________________________________________ > >> Cruisecontrolrb-users mailing list > >> Cruisecontrolrb-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > >> > >> > > > > > > -- > Best regards, > Artem mailto:abublic at gmail.com > > _______________________________________________ > 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: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070515/d3f98e65/attachment.html From gedanken at io.com Wed May 16 13:37:35 2007 From: gedanken at io.com (Gedanken) Date: Wed, 16 May 2007 12:37:35 -0500 (CDT) Subject: [Cruisecontrolrb-users] zombie build? In-Reply-To: References: Message-ID: <20070516123209.J69663@eris.io.com> I have a build that is 'stuck' and I am not sure why. I have 5 projects, and they have all worked fine up until a few days ago - Ive made a lot of changes, but I am at a loss as to how i broke it, or how to fix it. Everything seems to start up fine: gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects$ ps -ef | grep cruise bob 5082 5081 4 May04 ? 11:47:38 ruby /usr/local/cruisecontrolrb-1.0.0/public/dispatch.fcgi bob 5084 5082 0 May04 ? 00:04:01 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-rails bob 5789 5082 0 May04 ? 00:01:29 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-rails_DEMO bob 5791 5082 0 May04 ? 00:00:35 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build DataLogViewer bob 5793 5082 0 May04 ? 00:01:59 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-flex bob 24265 5082 0 May06 ? 00:07:38 ruby /usr/local/cruisecontrolrb-1.0.0/public/../config/../cruise build sample-server gedanken 24184 24149 0 13:32 pts/1 00:00:00 grep cruise 4 of the 5 projects all build fine. When I try to build DataLogViewer, the web interface says 'Build requested...' but spins forever (days). But the directory looks like: gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects/DataLogViewer$ ls build-10 build-13 build-13.3 build-3.1 build-6 build-9 build_requested build-11 build-13.1 build-13.4 build-4 build-7 builder.pid cruise_config.rb build-12 build-13.2 build-3 build-5 build-8 builder_status.sleeping work gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects/DataLogViewer$ cat builder.pid gedanken at envy:/usr/local/cruisecontrolrb-1.0.0/projects/DataLogViewer$ And never changes from sleepign to anything else... How do I debug this please? -- gedanken From marcus at ahnve.com Wed May 16 14:56:27 2007 From: marcus at ahnve.com (Marcus Ahnve) Date: Wed, 16 May 2007 20:56:27 +0200 Subject: [Cruisecontrolrb-users] Fwd: Mercurial support In-Reply-To: <4d4e79cc0705160819h1e799e74i39c9b61de5bd24d8@mail.gmail.com> References: <4d4e79cc0705160819h1e799e74i39c9b61de5bd24d8@mail.gmail.com> Message-ID: <4d4e79cc0705161156l2346d45dy994f51d7ddfd3275@mail.gmail.com> I've written a Mercurial plugin for cruisecontrol-rb, the files and tests are attached. I originally intended to write it as a plugin, but as I progressed I moved it to the models. The reason being that I never got the plugin feeling, unless I reproduced the functionality of Changeset and Revision, which felt quite redundant. To use it, drop the tests into tests/unit and the other two into app/models Cheers /Marcus -- http://marcus.ahnve.net -------------- next part -------------- A non-text attachment was scrubbed... Name: mercurial.rb Type: application/octet-stream Size: 1207 bytes Desc: not available Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070516/47cd9c5e/attachment-0004.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: mercurial_log_parser.rb Type: application/octet-stream Size: 1333 bytes Desc: not available Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070516/47cd9c5e/attachment-0005.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: mercurial_test.rb Type: application/octet-stream Size: 2345 bytes Desc: not available Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070516/47cd9c5e/attachment-0006.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: mercurial_log_parser_test.rb Type: application/octet-stream Size: 2771 bytes Desc: not available Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070516/47cd9c5e/attachment-0007.obj From yurigadow at givekind.org Fri May 18 15:06:39 2007 From: yurigadow at givekind.org (Yuri Gadow) Date: Fri, 18 May 2007 13:06:39 -0600 Subject: [Cruisecontrolrb-users] question on db:test:purge behavior Message-ID: <5311da7c0705181206l3cb603edv5b96367c84e3a681@mail.gmail.com> Had the same problem with our application, i.e., cruisecontrol.rb "rake test" attempts to create the table in the ninth migration over again. Commented out "rake db:test:purge" in tasks/cc_build.rake:49 and all is well so far. Can see the problem output at https://developing.givekind.org/cruisecontrol/builds/givekind_app/63.9 In case it makes a difference, in our app's environment.rb: config.active_record.schema_format = :sql and instead of the "cruise" command, cruise is started using mongrel_rails start --prefix=/cruisecontrol -p 3333 -d -e test we started with -e production, but then the app's rake migrations try to go to the production db, which doesn't exist, instead of test. Yuri > Alexey Verkhovsky averkhov at thoughtworks.com > Wed Mar 21 16:13:44 EDT 2007 > > If you want to get to the bottom of it, try to run the builder with > --trace option, like this: > > cruise build YourProject --trace > > and force the build. You will get a stack trace out of Rake that will tell > you what task is being executed. > > Otherwise, as the documentation says "if defaults do not work for you, > instead of trying to bend your app into working with CC.rb defaults, just > create a custom 'cruise' task in your build and be done with it". > > Alex > > >> Matthew Wright >> 03/21/2007 07:18 AM >> >> I saw cc.rb yesterday and gave it a try, what a nice project. Having >> setup 2 large cc (java) projects before, I have to say this is much >> easier to setup and has a great interface. Great job. >> >> In order to get my builds to work, I had to override the default cc >> behavior and remove the db:test:purge from the build. If I run the >> following in my project/work directory, the build succeeds: >> >> export RAILS_ENV=test >> rake db:test:purge && rake db:migrate && rake test >> >> If I run it via cc, I get this: >> >> /usr/bin/ruby1.8 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.2/ >> lib/rake/rake_test_loader.rb" Mysql::Error: Table 'plan_days' already >> exists: CREATE TABLE plan_days (`id` int(11) DEFAULT NULL >> auto_increment PRIMARY KEY, `plan_id` int(11) DEFAULT NULL, `day` int >> (11) DEFAULT NULL) ENGINE=InnoDB >> etc., etc. >> >> This is a table created in the 9th migration, so if the migrations >> were running twice because schema_info wasn't being updated, I would >> expect more errors than this one. >> >> I thought maybe a foreign key was preventing a migration from >> dropping a table or something, but I added drops in all the down >> methods of my migrations where fks are created. Just wondering if >> anyone else has seen this. . >> >> Matt From nmeersschaert at mac.com Fri May 18 15:10:56 2007 From: nmeersschaert at mac.com (Niels Meersschaert) Date: Fri, 18 May 2007 15:10:56 -0400 Subject: [Cruisecontrolrb-users] Email notifications Message-ID: I'm running into problems getting email notifications to work with Cruisecontrol. I get these errors in project_builder.log [error] [2007-05-18 13:48:23] Error sending e-mail - current server settings are : :password = nil :domain = "localhost.localdomain" :port = 25 :user_name = nil :address = "localhost" :authentication = nil [error] 502 Error: command not implemented [error] /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response' [error] /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok' [error] /usr/local/cruisecontrolrb-1.1.0/vendor/plugins/ action_mailer_tls/smtp_tls.rb:56:in `starttls' [error] /usr/local/cruisecontrolrb-1.1.0/vendor/plugins/ action_mailer_tls/smtp_tls.rb:19:in `do_start' [error] /usr/lib/ruby/1.8/net/smtp.rb:378:in `start' [error] /usr/lib/ruby/1.8/net/smtp.rb:316:in `start' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in `perform_delivery_smtp' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in `deliver!' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in `method_missing' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../builder_plugins/installed/email_notifier.rb:52:in `email' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../builder_plugins/installed/email_notifier.rb:41:in `build_finished' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:293:in `notify' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:291:in `notify' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:276:in `build' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:205:in `build_if_necessary' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/polling_scheduler.rb:13:in `run' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82 [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:81 [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in `builder' [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 [error] Error in plugin EmailNotifier: 502 Error: command not implemented [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:318:in `notify' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:276:in `build' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/project.rb:205:in `build_if_necessary' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ config/../app/models/polling_scheduler.rb:13:in `run' [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82 [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:81 [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in `builder' [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 I have trac on the same machine using localhost as the smtp server with no authentication & that works fine. Any suggestions on how to tweak the config? I've tried editing site_config.rb to the following, with no change: ActionMailer::Base.smtp_settings = { :address => "localhost" } Thanks, Niels From nmeersschaert at mac.com Fri May 18 15:41:52 2007 From: nmeersschaert at mac.com (Niels Meersschaert) Date: Fri, 18 May 2007 15:41:52 -0400 Subject: [Cruisecontrolrb-users] Email notifications In-Reply-To: References: Message-ID: <063DAB93-1EBE-4DDD-8F14-6AD1FB91F97E@mac.com> Yuri, Thanks for the suggestion, but unfortunately, I only have Postfix running on this server, so using :sendmail doesn't work. I'll keep trying some other variations, hopefully something will work, or someone else might have a suggestion on how to get this working. Thanks again, Niels On May 18, 2007, at 3:21 PM, Yuri Gadow wrote: > Niels, > > I had the same trouble and resolved it by using :sendmail instead > of :smtp (postfix is running on the same machine.) That's not a > good solution for most, but since you're settings are for > localhost, it may work for you too. > > So, > > ActionMailer::Base.delivery_method = :sendmail > > and no other settings. > > > Yuri > > On 5/18/07, Niels Meersschaert < nmeersschaert at mac.com> wrote: > I'm running into problems getting email notifications to work with > Cruisecontrol. > > I get these errors in project_builder.log > > [error] [2007-05-18 13:48:23] Error sending e-mail - current server > settings are : > :password = nil > :domain = "localhost.localdomain " > :port = 25 > :user_name = nil > :address = "localhost" > :authentication = nil > [error] 502 Error: command not implemented > > [error] /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response' > [error] /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok' > [error] /usr/local/cruisecontrolrb-1.1.0/vendor/plugins/ > action_mailer_tls/smtp_tls.rb:56:in `starttls' > [error] /usr/local/cruisecontrolrb-1.1.0 /vendor/plugins/ > action_mailer_tls/smtp_tls.rb:19:in `do_start' > [error] /usr/lib/ruby/1.8/net/smtp.rb:378:in `start' > [error] /usr/lib/ruby/1.8/net/smtp.rb:316:in `start' > [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../ > config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in > `perform_delivery_smtp' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in > `deliver!' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in > `method_missing' > [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../ > config/../builder_plugins/installed/email_notifier.rb:52:in `email' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../builder_plugins/installed/email_notifier.rb:41:in > `build_finished' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:293:in `notify' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:291:in `notify' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:276:in `build' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:205:in `build_if_necessary' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/polling_scheduler.rb:13:in `run' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82 > [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/ > builder:81 > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in > `builder' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 > [error] Error in plugin EmailNotifier: 502 Error: command not > implemented > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:318:in `notify' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:276:in `build' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/project.rb:205:in `build_if_necessary' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > config/../app/models/polling_scheduler.rb:13:in `run' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82 > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:81 > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in > `builder' > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 > > I have trac on the same machine using localhost as the smtp server > with no authentication & that works fine. Any suggestions on how to > tweak the config? I've tried editing site_config.rb to the > following, with no change: > > ActionMailer::Base.smtp_settings = { > :address => "localhost" > } > > Thanks, > > Niels > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > > > -- > Yuri Gadow > http://yuri.gadow.name/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070518/8ca0ad93/attachment.html From nmeersschaert at mac.com Fri May 18 17:10:34 2007 From: nmeersschaert at mac.com (Niels Meersschaert) Date: Fri, 18 May 2007 17:10:34 -0400 Subject: [Cruisecontrolrb-users] Email notifications In-Reply-To: References: <063DAB93-1EBE-4DDD-8F14-6AD1FB91F97E@mac.com> Message-ID: <32ECBCE1-C7DE-40E5-8977-44E3DFB1E655@mac.com> Yuri, While you're right about that, when I do that, I notice a slight variation from the trac output that seems to be preventing delivery with this technique. Although CruiseControl no longer balks about a plugin error, if I look at the postfix log file I see this for a message from CruiseControl: May 18 16:01:09 106732-dev1 postfix/pickup[25255]: 168793E4634: uid=0 from= For trac, I get May 18 15:00:30 106732-dev1 postfix/smtpd[22360]: connect from localhost[127.0.0.1] May 18 15:00:30 106732-dev1 postfix/smtpd[22360]: 8F14C3E45E6: client=localhost[127.0.0.1] May 18 This also affects the from id, causing it to ignore the user I had set in the site config file & instead use the user that was running cruisecontrol. Although postfix claimed it sent successfully, the messages weren't received by the addressees. Niels On May 18, 2007, at 4:21 PM, Yuri Gadow wrote: > Niels, > > I also only have postfix as well and it works fine with > the :sendmail option. For the most part, Postfix is a drop-in > replacement for Sendmail. > > Yuri > > On 5/18/07, Niels Meersschaert wrote: > Yuri, > > Thanks for the suggestion, but unfortunately, I only have Postfix > running on this server, so using :sendmail doesn't work. I'll keep > trying some other variations, hopefully something will work, or > someone else might have a suggestion on how to get this working. > > Thanks again, > > Niels > > On May 18, 2007, at 3:21 PM, Yuri Gadow wrote: > >> Niels, >> >> I had the same trouble and resolved it by using :sendmail instead >> of :smtp (postfix is running on the same machine.) That's not a >> good solution for most, but since you're settings are for >> localhost, it may work for you too. >> >> So, >> >> ActionMailer::Base.delivery_method = :sendmail >> >> and no other settings. >> >> >> Yuri >> >> On 5/18/07, Niels Meersschaert < nmeersschaert at mac.com> wrote: >> I'm running into problems getting email notifications to work with >> Cruisecontrol. >> >> I get these errors in project_builder.log >> >> [error] [2007-05-18 13:48:23] Error sending e-mail - current server >> settings are : >> :password = nil >> :domain = "localhost.localdomain " >> :port = 25 >> :user_name = nil >> :address = "localhost" >> :authentication = nil >> [error] 502 Error: command not implemented >> >> [error] /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response' >> [error] /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok' >> [error] /usr/local/cruisecontrolrb-1.1.0/vendor/plugins/ >> action_mailer_tls/smtp_tls.rb:56:in `starttls' >> [error] /usr/local/cruisecontrolrb-1.1.0 /vendor/plugins/ >> action_mailer_tls/smtp_tls.rb:19:in `do_start' >> [error] /usr/lib/ruby/1.8/net/smtp.rb:378:in `start' >> [error] /usr/lib/ruby/1.8/net/smtp.rb:316:in `start' >> [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../ >> config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in >> `perform_delivery_smtp' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in >> `deliver!' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in >> `method_missing' >> [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../ >> config/../builder_plugins/installed/email_notifier.rb:52:in `email' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../builder_plugins/installed/email_notifier.rb:41:in >> `build_finished' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:293:in `notify' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:291:in `notify' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:276:in `build' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:205:in `build_if_necessary' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/polling_scheduler.rb:13:in `run' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/ >> builder:82 >> [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/ >> builder:81 >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in >> `builder' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 >> [error] Error in plugin EmailNotifier: 502 Error: command not >> implemented >> >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:318:in `notify' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:276:in `build' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/project.rb:205:in `build_if_necessary' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ >> config/../app/models/polling_scheduler.rb:13:in `run' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/ >> builder:82 >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/ >> builder:81 >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in >> `builder' >> [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 >> >> I have trac on the same machine using localhost as the smtp server >> with no authentication & that works fine. Any suggestions on how to >> tweak the config? I've tried editing site_config.rb to the >> following, with no change: >> >> ActionMailer::Base.smtp_settings = { >> :address => "localhost" >> } >> >> Thanks, >> >> Niels >> _______________________________________________ >> Cruisecontrolrb-users mailing list >> Cruisecontrolrb-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >> >> >> >> -- >> Yuri Gadow >> http://yuri.gadow.name/ > > > > > -- > Yuri Gadow > http://yuri.gadow.name/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070518/0bdaf838/attachment-0001.html From jeremystellsmith at gmail.com Mon May 21 10:48:35 2007 From: jeremystellsmith at gmail.com (Jeremy Stell-Smith) Date: Mon, 21 May 2007 07:48:35 -0700 Subject: [Cruisecontrolrb-users] Email notifications In-Reply-To: <32ECBCE1-C7DE-40E5-8977-44E3DFB1E655@mac.com> References: <063DAB93-1EBE-4DDD-8F14-6AD1FB91F97E@mac.com> <32ECBCE1-C7DE-40E5-8977-44E3DFB1E655@mac.com> Message-ID: Niels, I'm not sure how to fix your problem, but at the company I currently work at, we just created a new gmail account and send the mail from there. Would that work for you? There are instructions on how to do that in the site_config.rb_example. Jeremy On 5/18/07, Niels Meersschaert wrote: > > Yuri, > While you're right about that, when I do that, I notice a slight variation > from the trac output that seems to be preventing delivery with this > technique. Although CruiseControl no longer balks about a plugin error, if > I look at the postfix log file I see this for a message from CruiseControl: > > May 18 16:01:09 106732-dev1 postfix/pickup[25255]: 168793E4634: uid=0 > from= > > For trac, I get > > May 18 15:00:30 106732-dev1 postfix/smtpd[22360]: > connect from localhost[127.0.0.1] > May 18 15:00:30 106732-dev1 postfix/smtpd[22360]: > 8F14C3E45E6: client=localhost[127.0.0.1] May 18 > > This also affects the from id, causing it to ignore the user I had set in > the site config file & instead use the user that was running cruisecontrol. > Although postfix claimed it sent successfully, the messages weren't received > by the addressees. > > Niels > > On May 18, 2007, at 4:21 PM, Yuri Gadow wrote: > > Niels, > > I also only have postfix as well and it works fine with the :sendmail > option. For the most part, Postfix is a drop-in replacement for Sendmail. > > Yuri > > On 5/18/07, Niels Meersschaert wrote: > > > > Yuri, > > Thanks for the suggestion, but unfortunately, I only have Postfix > > running on this server, so using :sendmail doesn't work. I'll keep trying > > some other variations, hopefully something will work, or someone else might > > have a suggestion on how to get this working. > > > > Thanks again, > > > > Niels > > > > On May 18, 2007, at 3:21 PM, Yuri Gadow wrote: > > > > Niels, > > > > I had the same trouble and resolved it by using :sendmail instead of > > :smtp (postfix is running on the same machine.) That's not a good solution > > for most, but since you're settings are for localhost, it may work for you > > too. > > > > So, > > > > ActionMailer::Base.delivery_method = :sendmail > > > > and no other settings. > > > > > > Yuri > > > > On 5/18/07, Niels Meersschaert < nmeersschaert at mac.com> wrote: > > > > > > I'm running into problems getting email notifications to work with > > > Cruisecontrol. > > > > > > I get these errors in project_builder.log > > > > > > [error] [2007-05-18 13:48:23] Error sending e-mail - current server > > > settings are : > > > :password = nil > > > :domain = "localhost.localdomain " > > > :port = 25 > > > :user_name = nil > > > :address = "localhost" > > > :authentication = nil > > > [error] 502 Error: command not implemented > > > > > > [error] /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response' > > > [error] /usr/lib/ruby/1.8/net/smtp.rb:653:in `getok' > > > [error] /usr/local/cruisecontrolrb-1.1.0/vendor/plugins/ > > > action_mailer_tls/smtp_tls.rb:56:in `starttls' > > > [error] /usr/local/cruisecontrolrb-1.1.0 /vendor/plugins/ > > > action_mailer_tls/smtp_tls.rb:19:in `do_start' > > > [error] /usr/lib/ruby/1.8/net/smtp.rb:378:in `start' > > > [error] /usr/lib/ruby/1.8/net/smtp.rb:316:in `start' > > > [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../ > > > config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:565:in > > > `perform_delivery_smtp' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:451:in > > > `deliver!' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../vendor/rails/actionmailer/lib/action_mailer/base.rb:333:in > > > `method_missing' > > > [error] /usr/local/cruisecontrolrb- 1.1.0/config/../script/../ > > > config/../builder_plugins/installed/email_notifier.rb:52:in `email' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../builder_plugins/installed/email_notifier.rb:41:in > > > `build_finished' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:293:in `notify' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:291:in `notify' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:276:in `build' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:205:in `build_if_necessary' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/polling_scheduler.rb:13:in `run' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82 > > > [error] /usr/local/cruisecontrolrb- 1.1.0 > > > /config/../script/builder:81 > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in > > > `builder' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 > > > [error] Error in plugin EmailNotifier: 502 Error: command not > > > implemented > > > > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:318:in `notify' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:276:in `build' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/project.rb:205:in `build_if_necessary' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/../ > > > config/../app/models/polling_scheduler.rb:13:in `run' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:82 > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../script/builder:81 > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:14:in > > > `builder' > > > [error] /usr/local/cruisecontrolrb-1.1.0/config/../cruise:66 > > > > > > I have trac on the same machine using localhost as the smtp server > > > with no authentication & that works fine. Any suggestions on how to > > > tweak the config? I've tried editing site_config.rb to the > > > following, with no change: > > > > > > ActionMailer::Base.smtp_settings = { > > > :address => "localhost" > > > } > > > > > > Thanks, > > > > > > Niels > > > _______________________________________________ > > > Cruisecontrolrb-users mailing list > > > Cruisecontrolrb-users at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > > > > > > > > > > -- > > Yuri Gadow > > http://yuri.gadow.name/ > > > > > > > > > -- > Yuri Gadow > http://yuri.gadow.name/ > > > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070521/fad8b70c/attachment.html From levicook at gmail.com Mon May 21 16:23:40 2007 From: levicook at gmail.com (Levi Cook) Date: Mon, 21 May 2007 15:23:40 -0500 Subject: [Cruisecontrolrb-users] Forcing builders to run sequentially Message-ID: Hi All -- I have several builds running under CC.rb that deploy and test against shared, remote server. Unfortunately, the common server sags and frequently fails if there are too many builds hitting it. By default, builders run in parallel. I need them to run sequentially. Anyone know if there is there an existing hook for this? Alternately, if I need to code this, pointers on where to look in the CC.rb code base would be appreciated. (ie: what controls a builder's life cycle). Thanks in advance, Levi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070521/1e6da35a/attachment.html From ketanpadegaonkar at gmail.com Tue May 22 00:07:25 2007 From: ketanpadegaonkar at gmail.com (Ketan Padegaonkar) Date: Tue, 22 May 2007 09:37:25 +0530 Subject: [Cruisecontrolrb-users] Forcing builders to run sequentially In-Reply-To: References: Message-ID: <46526C7D.8050001@gmail.com> Levi Cook wrote: > Hi All -- > > I have several builds running under CC.rb that deploy and test against > shared, remote server. Unfortunately, the common server sags and > frequently fails if there are too many builds hitting it. > > By default, builders run in parallel. I need them to run sequentially. > Anyone know if there is there an existing hook for this? Alternately, if > I need to code this, pointers on where to look in the CC.rb code base > would be appreciated. (ie: what controls a builder's life cycle). I would definitely be interested in this as well. In my case there is one physical project with 3 virtual projects in ccnet. One project just compiles, other runs smoke tests, the third runs the complete regression test suite. Since all the three are located at the same location, and need to start/stop tomcat for some tests, I need to have them run sequentially, fortunately there was a plugin available for ccnet that allowed me to do this. Is there any way this can be achieved in cc.rb ? -- Ketan Padegaonkar I blog... therefore I am... http://ketan.padegaonkar.name/ i'd solve a windows key problem with fdisk :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070522/09926122/attachment.bin From alexey.verkhovsky at gmail.com Tue May 22 01:38:47 2007 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Mon, 21 May 2007 23:38:47 -0600 Subject: [Cruisecontrolrb-users] Forcing builders to run sequentially In-Reply-To: <46526C7D.8050001@gmail.com> References: <46526C7D.8050001@gmail.com> Message-ID: <3945c4270705212238o7526889bg8d17ff825ca9eab@mail.gmail.com> > Levi Cook wrote: > > By default, builders run in parallel. I need them to run sequentially. I would just hack it in. Every builder grabs an exclusive lock on some file (the same for all three builders) before the build, or just waits until it can grab that lock. By the way, this can be pluginized, too. Best regards, Alex From ketanpadegaonkar at gmail.com Tue May 22 02:02:43 2007 From: ketanpadegaonkar at gmail.com (Ketan Padegaonkar) Date: Tue, 22 May 2007 11:32:43 +0530 Subject: [Cruisecontrolrb-users] Forcing builders to run sequentially In-Reply-To: <3945c4270705212238o7526889bg8d17ff825ca9eab@mail.gmail.com> References: <46526C7D.8050001@gmail.com> <3945c4270705212238o7526889bg8d17ff825ca9eab@mail.gmail.com> Message-ID: <46528783.5040707@gmail.com> Alexey Verkhovsky wrote: >> Levi Cook wrote: >>> By default, builders run in parallel. I need them to run sequentially. > > I would just hack it in. > > Every builder grabs an exclusive lock on some file (the same for all > three builders) before the build, or just waits until it can grab that > lock. > > By the way, this can be pluginized, too. Cool, just what I'd expected. How about a HOWTO on how to hack together a plugin? Not many people (like me) understand ruby/rails and would like some pointers on how I should go about putting my own stuff in. I'm having a hard time just fixing the issue of a hardcoded "nextBuildTime" in index_cctray.rxml to make it return something useful from the ProjectScheduler or whatever. This is needed for the CCTray that I've put together. It connects to cc.rb, but cc.rb has issues with date formatting :( -- Ketan Padegaonkar I blog... therefore I am... http://ketan.padegaonkar.name/ * Linux Viruscan..... Windows 95 found. Remove it? (Y/y) -- Unknown source -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature Url : http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070522/086358be/attachment-0001.bin From christos at 42linesofcode.com Wed May 23 09:18:06 2007 From: christos at 42linesofcode.com (Christos Zisopoulos) Date: Wed, 23 May 2007 15:18:06 +0200 Subject: [Cruisecontrolrb-users] Environment issues when using custom rake build task Message-ID: <22285CA8-E9B8-44F4-9BE2-D834AA63191E@42linesofcode.com> Hi there, When using a custom rake_task or when defining the default 'cruise' task in my Rakefile I get into a peculiar situation. The rake task runs in the 'test' environment which I define for most of the part, but not always... If I have a task that depends on "test:db:prepare" then for some weird reason the test:db:prepare" is executed in 'production' or whatever environment cruisecontroll is running in. I think I traced it down to the fact that at the end "test:db:prepare" depends on the default :environment Rake task which reads: task :environment do require(File.join(RAILS_ROOT, 'config', 'environment')) end This is what my custom task looks like task :cruise => "test:db:prepare" # Do whatever here should first invoke test:db:prepare end Any ideas what might be the problem? Cheers! -christos From jeremystellsmith at gmail.com Wed May 23 12:21:27 2007 From: jeremystellsmith at gmail.com (Jeremy Stell-Smith) Date: Wed, 23 May 2007 09:21:27 -0700 Subject: [Cruisecontrolrb-users] Environment issues when using custom rake build task In-Reply-To: <22285CA8-E9B8-44F4-9BE2-D834AA63191E@42linesofcode.com> References: <22285CA8-E9B8-44F4-9BE2-D834AA63191E@42linesofcode.com> Message-ID: this is a known bug in cruise, if you grab the latest from head, it should be fixed. it will also be fixed in the next release if you'd like to wait On 5/23/07, Christos Zisopoulos wrote: > > Hi there, > > When using a custom rake_task or when defining the default 'cruise' > task in my Rakefile I get into a peculiar situation. The rake task > runs in the 'test' environment which I define for most of the part, > but not always... > > If I have a task that depends on "test:db:prepare" then for some > weird reason the test:db:prepare" is executed in 'production' or > whatever environment cruisecontroll is running in. I think I traced > it down to the fact that at the end "test:db:prepare" depends on the > default :environment Rake task which reads: > > task :environment do > require(File.join(RAILS_ROOT, 'config', 'environment')) > end > > This is what my custom task looks like > > task :cruise => "test:db:prepare" > # Do whatever here should first invoke test:db:prepare > end > > Any ideas what might be the problem? > > Cheers! > -christos > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070523/708619a4/attachment.html From abublic at gmail.com Mon May 28 13:14:15 2007 From: abublic at gmail.com (Artem) Date: Mon, 28 May 2007 21:14:15 +0400 Subject: [Cruisecontrolrb-users] build number to Ant script In-Reply-To: References: <1651515852.20070514211142@gmail.com> Message-ID: <835672403.20070528211415@gmail.com> Hello Alexey, I've attached a small patch to CCRB-120. Best regards, Artem AV> I think it makes sense. I added a storyto JIRA AV> (http://jira.public.thoughtworks.org/browse/CCRB-120). AV> We'll get to it in a few weeks. Or,it's a good easy story to make a AV> patch for. If you do, please rememberto patch documentation, too. AV> -- AV> Alex Verkhovsky AV> Artem AV> Sent by: cruisecontrolrb-users-bounces at rubyforge.org AV> 05/14/2007 11:11 AM AV> Please respond to AV> Artem AV> To AV> cruisecontrolrb-users at rubyforge.org,"Jeff Xiong" cc AV> Subject AV> Re: [Cruisecontrolrb-users] build numberto Ant script AV> Hello Jeff, AV> Well, I'm aware of CC_BUILD_ARTIFACTS environment variable. Unfortunatelythis AV> is not what I want. This way I would need to publish AV> (make a link to) the whole /path/to/ccrb/projects/my_project directoryto show AV> the build numbers of war files; this is excessive. I would be happy ifthere AV> were also CC_BUILD_NUMBER environment variable equal to 787 in this case. AV> Regards, AV> Artem JX>> During the build process, you can copy artifacts (e.g. services.war) JX>> to $CC_BUILD_ARTIFACTS directory, which is something like JX>> "/path/to/ccrb/projects/my_project/build-787-success.in32s".Does it JX>> work for you? JX>> On 5/14/07, Artem Vasiliev wrote: >>> Hi All! >>> >>> I've just migrated build process from CruiseControl for Java tonew >>> cruisecontrol.rb. All looks great but I'm missing one thing.. >>> My project is in Java so I launch Ant builder from cruise_config.rb. >>> In the end it creates and publishes war file. I'm used to havingbuild >>> number in this file's name, e.g. build 787 corresponds to >>> services-20070514-1550-build.787.war. >>> In Cruisecontrol for Java Ant was given ${label} property withvalue ' >>> build.787' for this case; in cruisecontrol.rb Ant don't seem tohave this >>> info. >>> May be there's some way to give this info to Ant in cruisecontrol.rb? >>> >>> Thanks in advance, >>> Artem >>> >>> _______________________________________________ >>> Cruisecontrolrb-users mailing list >>> Cruisecontrolrb-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >>> >>> From huasen21 at gmail.com Tue May 29 05:10:32 2007 From: huasen21 at gmail.com (=?GB2312?B?9sTJ3Mmt?=) Date: Tue, 29 May 2007 17:10:32 +0800 Subject: [Cruisecontrolrb-users] How can I use CC.rb to build a java project? Message-ID: * I want to use CC.rb to buile a java project,but i don`t know how to do it .I use suck a commnd "cruise add sampleproject -u svn://localhost/sampleproject/" to put the subversion to the cc.rb, but when i do "cruise start -p 3333" ,it faild, the following are the errors .so can you tell me how to resove it or give me complete example to buile java project with ccrb? [error] wrong number of arguments (1 for 0) [error] ./script/../config/../app/models/project.rb:245:in `build_loop_failed' [error] ./script/../config/../app/models/project.rb:245:in `send' [error] ./script/../config/../app/models/project.rb:245:in `notify' [error] ./script/../config/../app/models/project.rb:243:in `collect' [error] ./script/../config/../app/models/project.rb:243:in `notify' [error] ./script/../config/../app/models/project.rb:161:in `build_if_necessary' [error] ./script/../config/../app/models/polling_scheduler.rb:13:in `run' [error] ./script/builder:78 [error] ./script/builder:77:in `catch' [error] ./script/builder:77 [error] cruise:13:in `load' [error] cruise:13:in `builder' [error] cruise:65:in `send' [error] cruise:65 [error] "\265?? ?\263\243" does not match 'name: value' pattern [error] ./script/../config/../app/models/subversion.rb:37:in `info' [error] ./script/../config/../app/models/subversion.rb:33:in `each_line' [error] ./script/../config/../app/models/subversion.rb:33:in `info' [error] ./script/../config/../lib/command_line.rb:89:in `call' [error] ./script/../config/../lib/command_line.rb:89:in `e' [error] ./script/../config/../lib/command_line.rb:87:in `popen' [error] ./script/../config/../lib/command_line.rb:87:in `e' [error] ./script/../config/../lib/command_line.rb:74:in `execute' [error] ./script/../config/../lib/command_line.rb:73:in `chdir' [error] ./script/../config/../lib/command_line.rb:73:in `execute' [error] ./script/../config/../app/models/subversion.rb:32:in `info' [error] ./script/../config/../app/models/subversion.rb:31:in `chdir' [error] ./script/../config/../app/models/subversion.rb:31:in `info' [error] ./script/../config/../app/models/subversion.rb:47:in `latest_revision' [error] ./script/../config/../app/models/project.rb:169:in `new_revisions' [error] ./script/../config/../app/models/project.rb:151:in `build_if_necessary' [error] ./script/../config/../app/models/polling_scheduler.rb:13:in `run' [error] ./script/builder:78 [error] ./script/builder:77:in `catch' [error] ./script/builder:77 [error] cruise:13:in `load' [error] cruise:13:in `builder' [error] cruise:65:in `send' [error] cruise:65 * -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20070529/3a5aee96/attachment.html From gigix1980 at gmail.com Tue May 29 05:15:16 2007 From: gigix1980 at gmail.com (Jeff Xiong) Date: Tue, 29 May 2007 17:15:16 +0800 Subject: [Cruisecontrolrb-users] How can I use CC.rb to build a java project? In-Reply-To: References: Message-ID: <20fd9dc50705290215vd119d33p93ab1c372f46bed6@mail.gmail.com> It's a Java project, huh? Please try to create a cruise_config.rb file in your project root, and put following in it: Project.configure do |project| project.build_command = 'ant' # you may need change this end Have a look at http://cruisecontrolrb.thoughtworks.com/documentation/manual for detail. On 5/29/07, ??? wrote: > > > I want to use CC.rb to buile a java project,but i don`t know how to > do it .I use suck a commnd "cruise add sampleproject -u > svn://localhost/sampleproject/" to put the subversion to the cc.rb, but > when i do "cruise start -p 3333" ,it faild, the following are the errors > .so can you tell me how to resove it or give me complete example to buile > java project with ccrb? > > > [error] wrong number of arguments (1 for 0) > [error] > ./script/../config/../app/models/project.rb:245:in > `build_loop_failed' > [error] > ./script/../config/../app/models/project.rb:245:in `send' > [error] > ./script/../config/../app/models/project.rb:245:in `notify' > [error] > ./script/../config/../app/models/project.rb:243:in > `collect' > [error] > ./script/../config/../app/models/project.rb:243:in `notify' > [error] > ./script/../config/../app/models/project.rb:161:in > `build_if_necessary' > [error] > ./script/../config/../app/models/polling_scheduler.rb:13:in > `run' > [error] ./script/builder:78 > [error] ./script/builder:77:in `catch' > [error] ./script/builder:77 > [error] cruise:13:in `load' > [error] cruise:13:in `builder' > [error] cruise:65:in `send' > [error] cruise:65 > [error] "\265 ?? ?\263\243" does not match 'name: value' pattern > [error] > ./script/../config/../app/models/subversion.rb:37:in `info' > [error] > ./script/../config/../app/models/subversion.rb:33:in > `each_line' > [error] > ./script/../config/../app/models/subversion.rb:33:in `info' > [error] ./script/../config/../lib/command_line.rb:89:in > `call' > [error] ./script/../config/../lib/command_line.rb:89:in > `e' > [error] ./script/../config/../lib/command_line.rb:87:in > `popen' > [error] ./script/../config/../lib/command_line.rb:87:in > `e' > [error] ./script/../config/../lib/command_line.rb:74:in > `execute' > [error] ./script/../config/../lib/command_line.rb:73:in > `chdir' > [error] ./script/../config/../lib/command_line.rb:73:in > `execute' > [error] > ./script/../config/../app/models/subversion.rb:32:in `info' > [error] > ./script/../config/../app/models/subversion.rb:31:in > `chdir' > [error] > ./script/../config/../app/models/subversion.rb:31:in `info' > [error] > ./script/../config/../app/models/subversion.rb:47:in > `latest_revision' > [error] > ./script/../config/../app/models/project.rb:169:in > `new_revisions' > [error] > ./script/../config/../app/models/project.rb:151:in > `build_if_necessary' > [error] > ./script/../config/../app/models/polling_scheduler.rb:13:in > `run' > [error] ./script/builder:78 > [error] ./script/builder:77:in `catch' > [error] ./script/builder:77 > [error] cruise:13:in `load' > [error] cruise:13:in `builder' > [error] cruise:65:in `send' > [error] cruise:65 > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -- Jeff Xiong Software Journeyman - http://gigix.thoughtworkers.org Open Source Contributor - http://rubyworks.rubyforge.org Technical Evangelist - http://www.infoq.com/cn/