Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-22-2004, 08:21 AM
SGGardiner SGGardiner is online now
Registered User
 
Join Date: 03-09-2004
Location: Belfast, Northern Ireland
Posts: 5
Angry Failure to return a fail!

I have a parent build script which calls a child script. It is the child which checks the source out of sourcesafe and builds a whole series of DLLs and Exes. If one of these operations fails, the failure steps are executed but it still returns a success to the parent.

The failure steps perform quite a bit of work, namely, resetting some macros, logging the fail message, transforming the xml log file to HTML, performing a subroutine to generate a number of other log files, zipping the HTML files, two undo checkout operations and finally emailing a build master!

My question really is that could the fact that all these steps are completed successfully in any way mean that a success is returned to the parent script?

Thoughts please

George
Reply With Quote
  #2  
Old 07-22-2004, 09:36 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
This is the second ever report of this behaviour we've received, and we haven't been able to reproduce it here.

By design whether the failure steps pass or fail has nothing to do with whether a success or failure is returned to the parent script. I assume there is an obscure bug that causes this to happen in rare circumstances.

If you can provide a reproduceable example of this behaviour (to support@kinook.com) either by tweaking the sample we provided in the related thread (http://www.kinook.com/Forum/showthre...=&threadid=448) or your own project, we should be able to resolve the issue post haste. Otherwise we must first recreate the problem (a needle in a haystack search we've already expended resources trying) and then fix it.
Reply With Quote
  #3  
Old 07-27-2004, 09:22 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,003
After some more digging through the haystack, we did reproduce this behavior in the following scenario: If a subroutine step was the initial step that failed, and the failure steps also call a subroutine, the child project returns success rather than failure upon completing the failure steps. We have a test build available at http://www.kinook.com/Download/VisBuildProTest.exe that you can try to see if it resolves the problem in your case.
Reply With Quote
  #4  
Old 08-02-2004, 08:57 AM
KingM KingM is online now
Registered User
 
Join Date: 08-02-2004
Posts: 2
I work with George and in his absence I've taken a look at the test release. The new version doesn't seem to close the client script at all. If I run the non test version when a failure occurs all the failure items execute then the client closes and control is passed back to the parent.

If I run the test version above then when an error occurs the failure scripts execute then instead of closing it attempts to do the last statement that failed instead. This way it gets trapped in a loop and never closes to allow the Parent to continue.

Am I missing something obvious. I'm running both versions against the same script

Matt King
Reply With Quote
  #5  
Old 08-02-2004, 03:03 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
It doesn't sound like you are missing anything obvious but without seeing the build files, I can only speculate.

In our testing we did not see the behaviour you mention. If you could provide a reproducible case for us to test with, I am sure we can resolve this issue much more quickly...

In the meantime, we will continue trying to reproduce your issue and then provide a resolution.
Reply With Quote
  #6  
Old 08-03-2004, 03:05 AM
KingM KingM is online now
Registered User
 
Join Date: 08-02-2004
Posts: 2
Don't worry, it seems to work now.

The only possible link may have been that the first time I tried it was a clean install of 5.4b.

I tried installing on top of 5.4 and it seems to work fine. I don't know what difference that would make but it was the only difference I could spot.
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 02:31 AM.


Copyright © 1999-2023 Kinook Software, Inc.