Franck Dehay
2008-May-06 09:37 UTC
[Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)
Dear all, I am a recent user of this great tool for rails development and I have an issue with version 1.3.0. Sorry if I duplicate the question but I have been over the whole mailing list archives and could not find any answer. I have set up cruisecontrolrb on my home server (which runs WinXP, sorry, but it is better for the girlfriend to use than some linux distrib which I use on my laptop) to check on the dev of my ROR apps. I have set up the cruisecontrolrb not to use the personal folder as it had right access problems so I set up the CRUISE_ROOT_DATA to d:\work\ccror My project''s builds do fail because I have been a bad boy and did not write too many tests and some migrations fail as well. I am setting cc to fix that! The problem then is that I clicked on the Build now button to have it started and as expected, the build fails after 10 seconds but ccrb keeps on building it again an again (got 2900 builds overnights:)). While investigating, I found a "build_requested" file in my project folder which I guess was created when I clicked the "build now" button. It seems that the default behaviour is for this file not to be deleted when the build fails. Is there a way to change this? I can stop the neverending build loop by deleting the "build_requested" file Thanks again for this great tool! I have been an user of cc on other projects and this is much easier to use. _________________________________________________________________ Votre contact a choisi Hotmail, l''e-mail ultra s?curis?. Cr?ez un compte gratuitement ! http://www.windowslive.fr/hotmail/default.asp -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20080506/0ab819da/attachment.html>
Manfred Usselmann
2008-May-06 11:30 UTC
[Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)
Hi Franck, On Tue, 6 May 2008 11:37:56 +0200 Franck Dehay <fdehay at hotmail.com> wrote:> > Dear all, > > I am a recent user of this great tool for rails development and I > have an issue with version 1.3.0. Sorry if I duplicate the question > but I have been over the whole mailing list archives and could not > find any answer. I have set up cruisecontrolrb on my home server > (which runs WinXP, sorry, but it is better for the girlfriend to use > than some linux distrib which I use on my laptop) to check on the dev > of my ROR apps. I have set up the cruisecontrolrb not to use the > personal folder as it had right access problems so I set up the > CRUISE_ROOT_DATA to d:\work\ccror My project''s builds do fail because > I have been a bad boy and did not write too many tests and some > migrations fail as well. I am setting cc to fix that! The problem > then is that I clicked on the Build now button to have it started and > as expected, the build fails after 10 seconds but ccrb keeps on > building it again an again (got 2900 builds overnights:)). While > investigating, I found a "build_requested" file in my project folder > which I guess was created when I clicked the "build now" button. It > seems that the default behaviour is for this file not to be deleted > when the build fails. Is there a way to change this? I can stop the > neverending build loop by deleting the "build_requested" fileIt es meant to be deleted by it seems not to work under windows. I had the same problem and as a workaround modified app\models\project.rb (around line 463): def remove_build_requested_flag_file #!!! MU change: build_requested_flag_file partially contains ''\'' instead of ''/'' under windows #FileUtils.rm_f(Dir[build_requested_flag_file]) FileUtils.rm_f(Dir[build_requested_flag_file.gsub(''\\'',''/'')]) end There are also other areas where path names contain a mixture of ''\'' and ''/'' under windows. HTH, Manfred
Franck Dehay
2008-May-06 15:50 UTC
[Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)
Hello Manfred, Thanks a lot for your response! Seemed quite plausible that it would come from the fact I was using Windows! I''ll look in the code (thanks for the details) but I doubt I''ll dare update it. May be next release will sort this out, in the meantime I''ll try not to push the button. Regards Franck > Date: Tue, 6 May 2008 13:30:50 +0200> From: usselmann.m at icg-online.de> To: cruisecontrolrb-users at rubyforge.org> CC: fdehay at hotmail.com> Subject: Re: [Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)> > Hi Franck,> > On Tue, 6 May 2008 11:37:56 +0200> Franck Dehay <fdehay at hotmail.com> wrote:> > > > > Dear all,> > > > I am a recent user of this great tool for rails development and I> > have an issue with version 1.3.0. Sorry if I duplicate the question> > but I have been over the whole mailing list archives and could not> > find any answer. I have set up cruisecontrolrb on my home server> > (which runs WinXP, sorry, but it is better for the girlfriend to use> > than some linux distrib which I use on my laptop) to check on the dev> > of my ROR apps. I have set up the cruisecontrolrb not to use the> > personal folder as it had right access problems so I set up the> > CRUISE_ROOT_DATA to d:\work\ccror My project''s builds do fail because> > I have been a bad boy and did not write too many tests and some> > migrations fail as well. I am setting cc to fix that! The problem> > then is that I clicked on the Build now button to have it started and> > as expected, the build fails after 10 seconds but ccrb keeps on> > building it again an again (got 2900 builds overnights:)). While> > investigating, I found a "build_requested" file in my project folder> > which I guess was created when I clicked the "build now" button. It> > seems that the default behaviour is for this file not to be deleted> > when the build fails. Is there a way to change this? I can stop the> > neverending build loop by deleting the "build_requested" file> > It es meant to be deleted by it seems not to work under windows. I had> the same problem and as a workaround modified app\models\project.rb> (around line 463):> > def remove_build_requested_flag_file> #!!! MU change: build_requested_flag_file partially contains ''\'' instead of ''/'' under windows > #FileUtils.rm_f(Dir[build_requested_flag_file])> FileUtils.rm_f(Dir[build_requested_flag_file.gsub(''\\'',''/'')])> end> > There are also other areas where path names contain a mixture of ''\''> and ''/'' under windows.> > HTH,> Manfred _________________________________________________________________ Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! http://www.messengersurvotremobile.com/?d=hotmail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20080506/3c538c5c/attachment.html>
Alexey Verkhovsky
2008-May-06 17:45 UTC
[Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)
On Tue, May 6, 2008 at 5:30 AM, Manfred Usselmann <usselmann.m at icg-online.de> wrote:> There are also other areas where path names contain a mixture of ''\'' and ''/'' under windows.Can you please make a ticket in Lighhouse and list those places that you know of? This sort of thing would be very easy to fix, and I''d like to fit it for the next release, but noone with commit right to CC.rb is running CC.rb under Windows, so we need help to identify those issues. -- Alexey Verkhovsky CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] RubyWorks [http://rubyworks.thoughtworks.com]
Manfred Usselmann
2008-May-08 07:00 UTC
[Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)
On Tue, 6 May 2008 11:45:28 -0600 "Alexey Verkhovsky" <alexey.verkhovsky at gmail.com> wrote:> On Tue, May 6, 2008 at 5:30 AM, Manfred Usselmann > <usselmann.m at icg-online.de> wrote: > > There are also other areas where path names contain a mixture of > > ''\'' and ''/'' under windows. > > Can you please make a ticket in Lighhouse and list those places that > you know of? This sort of thing would be very easy to fix, and I''d > like to fit it for the next release, but noone with commit right to > CC.rb is running CC.rb under Windows, so we need help to identify > those issues.I have put it on my To-Do list, but it may take a few days until I have enough time for it. I have a suspicion: Maybe it is just caused by the fact that I specified the CRUISE_DATA_ROOT env variable in windows format (with ''\'' as separator). Franck Dehay, who also had the problem with the build_requested flag not being removed mentioned that he as well used a CRUISE_ROOT_DATA with backslashes: "... set up the CRUISE_ROOT_DATA to d: \work\ccror". In this case the best fix would probably be if cc.rb would convert CRUISE_DATA_ROOT automatically. I also want to update my version to the latest trunk / master. The problem is that the firewall here does not allow to connect to the GIT port and it seems not to be possible to connect to a git repository on rubyforge.org via http. There also seems to be no ready solution for Windows to use a http proxy for GIT access... Manfred
Franck Dehay
2008-May-08 07:54 UTC
[Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)
Hello, Following on Manfred''s tip, I changed my env variable to /work/ccrob and the problem is gone. The build_requested file is now properly deleted at the end of the build. Thanks for this! But now, I''ll start a new thread on another problem on windows about custom build artifacts...> Date: Thu, 8 May 2008 09:00:36 +0200> From: usselmann.m at icg-online.de> To: cruisecontrolrb-users at rubyforge.org> Subject: Re: [Cruisecontrolrb-users] Failing build is restarted again and again (manual request + Win32)> > On Tue, 6 May 2008 11:45:28 -0600> "Alexey Verkhovsky" <alexey.verkhovsky at gmail.com> wrote:> > > On Tue, May 6, 2008 at 5:30 AM, Manfred Usselmann> > <usselmann.m at icg-online.de> wrote:> > > There are also other areas where path names contain a mixture of> > > ''\'' and ''/'' under windows.> > > > Can you please make a ticket in Lighhouse and list those places that> > you know of? This sort of thing would be very easy to fix, and I''d> > like to fit it for the next release, but noone with commit right to> > CC.rb is running CC.rb under Windows, so we need help to identify> > those issues.> > I have put it on my To-Do list, but it may take a few days until I> have enough time for it. I have a suspicion: Maybe it is just caused by> the fact that I specified the CRUISE_DATA_ROOT env variable in windows> format (with ''\'' as separator).> > Franck Dehay, who also had the problem with the build_requested flag> not being removed mentioned that he as well used a CRUISE_ROOT_DATA> with backslashes: "... set up the CRUISE_ROOT_DATA to d: \work\ccror".> > In this case the best fix would probably be if cc.rb would convert> CRUISE_DATA_ROOT automatically.> > I also want to update my version to the latest trunk / master. The> problem is that the firewall here does not allow to connect to the GIT> port and it seems not to be possible to connect to a git repository on> rubyforge.org via http. There also seems to be no ready solution for> Windows to use a http proxy for GIT access...> > Manfred> _______________________________________________> Cruisecontrolrb-users mailing list> Cruisecontrolrb-users at rubyforge.org> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users_________________________________________________________________ Avec Hotmail, vos e-mails vous suivent partout ! Mettez Hotmail sur votre mobile ! http://www.messengersurvotremobile.com/?d=hotmail -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/cruisecontrolrb-users/attachments/20080508/4d438d12/attachment.html>