Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-17-2008, 04:30 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
Terminate action option not working

In the VBP project I have a step (RunProgram) which is launching some internal tool (an exe file).Time out for this step is set to 5 hrs (Terminate action if not completed after %UNIT_TESTS_TIMEOUT% seconds )
using macro UNIT_TESTS_TIMEOUT.However -the build process remains frozen as it does not go further than this step.I would expect after 5 hrs the step will be forced to close and move to next one (on other box it happened that way in the past).
I am using VBP 6.7a,box is a Virtual machine with OS =Microsoft Windows Server 2003 R2 Standard Edition.
Reply With Quote
  #2  
Old 12-17-2008, 12:59 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
Testing with VBP 6.7a on Win 2003 SP2, the attached sample terminates the Run Program step after 5 hours and completes the rest of the build.

12/17/2008 6:57:03 AM: --------------------Starting Build: 'terminate.bld'--------------------
12/17/2008 6:57:03 AM: Building project step 'Project steps'...
12/17/2008 6:57:03 AM: Building project step 'Run Program'...
Action terminated
12/17/2008 11:57:03 AM: Step 'Run Program' failed
12/17/2008 11:57:03 AM: Building project step 'Log Message'...
done
12/17/2008 11:57:03 AM: Build successfully completed.
Attached Files
File Type: bld terminate.bld (524 Bytes, 883 views)
Reply With Quote
  #3  
Old 12-18-2008, 04:53 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
tested on that box -it is ok.
But now I think the VB process itself would freeze sometimes as it happened that at different steps (for example running a VBscript step)the build simply does not do anything ,does not write in the log ,does not advance ,nothing
The steps where the issue appear are random.
And about the step where I have timeout of 5 hrs -every time is the same ,the step is not terminated after 5 hrs ,it remains hanging.
The box where these issues appear is a virtual machine -can be this a cause?
On my normal machine nothing like this happens.
But I need to understand what is causing these issues on virtual machine and how to fix it.
Reply With Quote
  #4  
Old 12-18-2008, 11:03 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
We tested in a virtual machine too (Virtual PC 2007) and also regularly perform builds in VMware and Virtual PC VMs and haven't encountered any problems. Which virtual machine software (and version/SP) are you using?
http://www.kinook.com/Forum/showthre...?threadid=3892
Reply With Quote
  #5  
Old 01-14-2009, 07:18 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
sorry for late response ,was not at work for long time.We are using VMWare 3.5.0 build 110271 .I will try all the solutions suggested at the link you provided and if still not ok I will come back with a post
Reply With Quote
  #6  
Old 01-15-2009, 12:46 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
I have done these changes in Sch Task launching the build:
-Added the /mta switch
-using the console app (VisBuildCmd.exe) instead of the GUI app.
Result :the build finally passed the UT step!actually it is first time when it passed
Problem :build freezed at some further step -a simple Send Mail step but in message section has:
[vbld_EscapeString(vbld_FSO.OpenTextFile("%CURRENT_ UT_EMAIL_OUTPUT_FOLDER%\index.html", , , True).ReadAll)]

On a normal machine -never had any freezing issue .
Log looks like:
15/01/2009 6:53:01 AM: Building project step 'Send tests result email'...
15/01/2009 6:53:01 AM: Building project step 'Send tests result email-UT Tool launched succesfully'...

and nothing after this

Now I am trying one more thing ,I have added
a Run Script (VBScript) step at the start of the project with code of:
Application.Options.RunProgramOutputWaitTimeout = 1000
Application.Options.RunProgramInputWaitTimeout = 1000

to see if it helps.
Reply With Quote
  #7  
Old 01-16-2009, 12:19 PM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
No improvement ,build freezes at Send email step.Any advice ?
Reply With Quote
  #8  
Old 01-16-2009, 12:41 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
Maybe try removing

[vbld_EscapeString(vbld_FSO.OpenTextFile("%CURRENT_ UT_EMAIL_OUTPUT_FOLDER%\index.html", , , True).ReadAll)]

from the Send Mail step and instead attach the file %CURRENT_UT_EMAIL_OUTPUT_FOLDER%\index.html (to eliminate the script expression).

You might also try recreating the build machine from scratch.

Otherwise we would need more details to try to reproduce the problem here.
http://www.kinook.com/Forum/showthre...?threadid=3044
Reply With Quote
  #9  
Old 02-04-2009, 10:42 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
I tried to remove the script expression and use the attachment -the same problem appeared
I tried to completely elliminate this step but then the build frozen at another step where I am writing into some xml file using a 'Write XML 'step .As I want to avoid the reinstall of build box (except of these issues everything is ok)I will send the required details to your support email address.
Reply With Quote
  #10  
Old 12-16-2011, 11:23 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
After last discussions -I reinstalled OS on this machine from the scratch.
It was relatively ok for long time -build remained frozen quite rarely at a step where C# solution was compiled in a Make VS.Net step -but 3 weeks ago started to be quite bad as i cannot have any build finished on this machine.
All the builds remain now frozen either at the "Make VS.Net" step (last line in log is "Pre-processing...") or at a "Zip Files" step (last line in log is "C:\SrcFolder\Release -> C:\TrgFolder\Release.zip")
I updated VisBuild to latest version 7.7a but no change ,builds are still freezing.
Any idea what to do next to fix this issue?
Reply With Quote
  #11  
Old 12-16-2011, 09:03 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
Rebuild the machine?
Reply With Quote
  #12  
Old 12-19-2011, 04:29 AM
teognost teognost is online now
Registered User
 
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 179
well-this might help :-)
But apart fromm such a radical solution applied again -is there any way to understand what is causing VisBuild to freeze at every build ?
Reply With Quote
  #13  
Old 12-19-2011, 07:53 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,743
We would need more details to be able to reproduce the problem here, ideally a VM image that consistently reproduces the problem.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:13 AM.


Copyright 1999-2019 Kinook Software, Inc.