Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Test Project build just stucks
springjazzy
#1 Posted : Friday, July 6, 2012 6:21:18 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

One of my test projects (msTest) in solution refuses to be built under NCrunch. Only when I terminate lc.exe processes in task manager and click Rebuild, it rebuilds.
Remco
#2 Posted : Monday, July 9, 2012 2:02:05 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks. Can you share any more details about the build failure? (i.e. error message?). Does the project make use of any additional build steps or frameworks (other than MSTest)?
springjazzy
#3 Posted : Monday, July 9, 2012 5:01:27 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Hi!

Absolutely no error messages. Building just stucks and shows no signs of living. The project contains mstest test code and depends on primarily assemblies. I've began to create new control and put it in my primary assemblies. The I've wrote test in test assembly. Everything was fine, but when I've changed control, much of my assemblies needed to be rebuilt, so I've moved my control to tests, hoping to reduce rebuilt time. Now I need only one project to be rebuilt - test project, but it refuses to be rebuilt.
Remco
#4 Posted : Tuesday, July 10, 2012 5:28:01 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Often the Processing Queue Window can give you more information about unexpected build errors and internal problems. After your build has hung/failed, do you see any information in the Processing Queue Window against the build task?

Also - would you be able to submit a bug report? I may be able to identify the cause of the problem from the log file contained in the report.

Thanks!

Remco
springjazzy
#5 Posted : Tuesday, July 10, 2012 6:06:45 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Hi!

Queue window just shows me that there is building process working infinitely.

I've submitted report.
Remco
#6 Posted : Tuesday, July 10, 2012 6:21:24 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for sending through the bug report.

Would you be able to try the following for me?

- Wait until the build has hung, then terminate lc.exe using task manager
- Click the green 'check' in the NCrunch Tests Window to show the problematic project that's just been built
- Right click on the built project
- Go to Advanced->Browse to workspace
- Find the .proj file within the generated workspace
- Run msbuild.exe against the project file and examine the results

How do the results compare against the behaviour you experience in NCrunch? Does the build hang?

Also - I'm not sure if this is the same issue, but I just thought I'd check to make sure it wasn't affecting you: http://social.msdn.micro...7-41e1-9dc6-59979ea49f6e
springjazzy
#7 Posted : Tuesday, July 10, 2012 6:42:38 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Done it. No errors with msbuild - build time 2 seconds. No trials.
springjazzy
#9 Posted : Tuesday, July 10, 2012 11:51:28 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

You think that will help? ))
Remco
#10 Posted : Wednesday, July 11, 2012 6:20:23 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Ok - this means that the problem isn't caused by anything to do with the workspacing, which helps narrow things down considerably.

Do you make use of any pre/post build events as part of the build for this project? If so, try turning on the run pre/post build event settings in your NCrunch project-level configuration. Also - try turning on the 'Copy referenced assemblies to workspace' option to see if this makes any difference.
springjazzy
#11 Posted : Wednesday, July 11, 2012 10:19:05 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

No pre/post events. 'Copy referenced assemblies to workspace' doesn't help either.
Remco
#12 Posted : Thursday, July 12, 2012 5:48:11 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Do you have any .licx files included as items in the problematic project? If so, does removing these files make any difference in your NCrunch build? Would you be able to share the MSBuild XML being used to include them in the project?
springjazzy
#13 Posted : Thursday, July 12, 2012 6:39:16 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/6/2012(UTC)
Posts: 46

Yes. After deleting .licx file, build started successfully. But we have these files in our primary assemblies and they build successfully in either case. May it be because of our primary assemblies target .NET 2.0 and tests target 4.0 Framework?
Remco
#14 Posted : Thursday, July 12, 2012 9:59:08 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
I think that the issue is related to something in the license compiler that is behaving strangely inside NCrunch's build environment, possibly due to threading issues. I'll make a note to look a bit deeper at this to see if I can reproduce the problem. Meanwhile, you may be able to work around this issue by making the inclusion of the license files conditional on the NCrunch property value, i.e:

<ItemGroup Condition="$(NCrunch) != '1'">
<??? Include="License.licx" />
</ItemGroup>

I'm not too sure about the syntax used in your project XML to include the .licx file (hence the '???'), but in theory this should allow your build to operate normally, while disabling the license inclusion for NCrunch.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.067 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download