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

Notification

Icon
Error

Reducing CodeAnalysis build time
dvircohen
#1 Posted : Sunday, May 13, 2018 12:38:17 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/29/2018(UTC)
Posts: 8
Location: Israel

Was thanked: 1 time(s) in 1 post(s)
Hi,

We enabled CodeAnalysis in our solution, we saw that it adds about ~1.5 minute to the build time on the build server.
We thought maybe to let MSBuild build the solution with the CodeAnalysis, and in parallel ncrunch will build and test (without CodeAnalysis enabled).
We got the following error:
MSBUILD : error MSB4166: Child node "23" exited prematurely. Shutting down. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.

We actually couldn't find this MSBuild_*.failure.txt file :/

Do you know how to solve this issue? do you havbe a better way to perform CodeAnalysis?
Any other way to enhance build and test performance on the build server using NCrunch Console tool?

Thanks.
Remco
#2 Posted : Sunday, May 13, 2018 10:22:39 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)
Hi,

Thanks for sharing this issue.

The problem you're experiencing is due to limitations in the design of MSBuild and its targets. MSBuild cannot safely build a solution in parallel with another session. Because NCrunch does also use MSBuild when loading projects, naturally this clashes with the other build call you're making. It might be possible to work around this by running these steps over physically separate copies of the solution, though I cannot guarantee whether you might then experience other problems with shared global state.

CodeAnalysis unfortunately has serious performance issues. This is why the options were included to turn it off :(
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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download