Bryan Noll
2007-Sep-27 22:06 UTC
[Cruisecontrolrb-users] weird problem - RHEL4 versus Ubuntu 7.04
I''ve added a project to cc.rb, and modified the config script so that it runs a shell script that contains the following: #! /bin/sh rake RAILS_ENV=test db:migrate rake RAILS_ENV=test test Here''s my problem. To set the scene, I''m intentionally making a test fail for the time being. When I run that script on the Ubuntu machine, and then do a ''echo $?'', I receive an ''1'' as a response... aka an error code, which is to my way of thinking, correct... and ends up making the cruise control build fail, which is what I want. When I do that exact same thing on the Red Hat machine, the rake test fails, but then when I do the ''echo $?'', I receive a ''0'' response code instead of the ''1''. This then indicates to cruise control that the build was good, which is not correct. Any ideas?
Jeremy Stell-Smith
2007-Sep-28 01:29 UTC
[Cruisecontrolrb-users] weird problem - RHEL4 versus Ubuntu 7.04
this looks like a ruby issue. Can you upgrade or downgrade the ruby you''re using to the latest version of 1.8.6 or any version of 1.8.5? On 9/27/07, Bryan Noll <bwnoll at gmail.com> wrote:> I''ve added a project to cc.rb, and modified the config script so that it > runs a shell script that contains the following: > > #! /bin/sh > rake RAILS_ENV=test db:migrate > rake RAILS_ENV=test test > > Here''s my problem. To set the scene, I''m intentionally making a test > fail for the time being. > > When I run that script on the Ubuntu machine, and then do a ''echo $?'', I > receive an ''1'' as a response... aka an error code, which is to my way of > thinking, correct... and ends up making the cruise control build fail, > which is what I want. > > When I do that exact same thing on the Red Hat machine, the rake test > fails, but then when I do the ''echo $?'', I receive a ''0'' response code > instead of the ''1''. This then indicates to cruise control that the > build was good, which is not correct. > > Any ideas? > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >
Bryan Noll
2007-Sep-28 15:41 UTC
[Cruisecontrolrb-users] weird problem - RHEL4 versus Ubuntu 7.04
This was it... the Ubuntu machine had 1.8.5 on it... the Red Hat machine had 1.8.6. Is there a patch or anything for this problem... or is the best solution just to roll back to 1.8.5? Rolf Russell wrote:> > Any chance that you are running ruby 1.8.6 on RedHat? It returns 0 > for failed builds and so doesn''t work with cc.rb. Bit of a nasty ruby > bug. > > --Rolf > > > > > > > > *Bryan Noll <bwnoll at gmail.com>* > Sent by: cruisecontrolrb-users-bounces at rubyforge.org > > 09/27/2007 04:06 PM > > > To > cruisecontrolrb-users at rubyforge.org > cc > > Subject > [Cruisecontrolrb-users] weird problem - RHEL4 versus Ubuntu 7.04 > > > > > > > > > > I''ve added a project to cc.rb, and modified the config script so that it > runs a shell script that contains the following: > > #! /bin/sh > rake RAILS_ENV=test db:migrate > rake RAILS_ENV=test test > > Here''s my problem. To set the scene, I''m intentionally making a test > fail for the time being. > > When I run that script on the Ubuntu machine, and then do a ''echo $?'', I > receive an ''1'' as a response... aka an error code, which is to my way of > thinking, correct... and ends up making the cruise control build fail, > which is what I want. > > When I do that exact same thing on the Red Hat machine, the rake test > fails, but then when I do the ''echo $?'', I receive a ''0'' response code > instead of the ''1''. This then indicates to cruise control that the > build was good, which is not correct. > > Any ideas? > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >
Alexey Verkhovsky
2007-Sep-28 15:54 UTC
[Cruisecontrolrb-users] Fwd: weird problem - RHEL4 versus Ubuntu 7.04
On 9/28/07, Bryan Noll <bwnoll at gmail.com> wrote:> This was it... the Ubuntu machine had 1.8.5 on it... the Red Hat machine > had 1.8.6. Is there a patch or anything for this problem... or is the > best solution just to roll back to 1.8.5?Either that, or upgrade Ruby to 1.8.6 patchlevel 110 (the most recent 1.8.6 patch release) -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com]
Bryan Noll
2007-Sep-28 16:16 UTC
[Cruisecontrolrb-users] weird problem - RHEL4 versus Ubuntu 7.04
Cool... thanks a bunch for the help fellas. I''m forwarding this on to the user list in case someone else out there in the wild runs into the same problem. Alexey Verkhovsky wrote:> On 9/28/07, Bryan Noll <bwnoll at gmail.com> wrote: > >> This was it... the Ubuntu machine had 1.8.5 on it... the Red Hat machine >> had 1.8.6. Is there a patch or anything for this problem... or is the >> best solution just to roll back to 1.8.5? >> > > Either that, or upgrade Ruby to 1.8.6 patchlevel 110 (the most recent > 1.8.6 patch release) > >