Build hangs after enabling partcover
Our build consistently hangs after enabling partcover. I can see from the build log that the hang occurs right after the last of the unit tests is run. Setting no code coverage resolves the hang.
We're using a Win7, 64bit, build agent with Visual Studio 2010. NUnit is set to 2.4.6.
The thread dump from during a hang does not seem to produce anything useful.
I was able to repro the problem by running the command line given in the thread dump directly on the build agent. I could see from the xml output that it eventually got to the same point and hang. Below is the last entries from that.
Any thoughts on how I can troubleshoot this further?
<jetbrains.buildServer.messages.BuildMessage1>
<myFlowId>289e05d3-bdbf-4354-bdd8-65c57c16be8c</myFlowId>
<mySourceId>DefaultMessage</mySourceId>
<myTypeId>Text</myTypeId>
<myStatus>3</myStatus>
<myTimestamp>1282828823554</myTimestamp>
<myValue >2 Test(s) failed.</myValue>
</jetbrains.buildServer.messages.BuildMessage1>
<jetbrains.buildServer.messages.BuildMessage1>
<myFlowId>289e05d3-bdbf-4354-bdd8-65c57c16be8c</myFlowId>
<mySourceId>DefaultMessage</mySourceId>
<myTypeId>Text</myTypeId>
<myStatus>2</myStatus>
<myTimestamp>1282828823554</myTimestamp>
<myValue >NUnit Launcher exited with code: 1</myValue>
</jetbrains.buildServer.messages.BuildMessage1>
<jetbrains.buildServer.messages.BuildMessage1>
<myFlowId>289e05d3-bdbf-4354-bdd8-65c57c16be8c</myFlowId>
<mySourceId>DefaultMessage</mySourceId>
<myTypeId>Text</myTypeId>
<myStatus>2</myStatus>
<myTimestamp>1282828823554</myTimestamp>
<myValue >Exit code 0 will be returned.1</myValue>
</jetbrains.buildServer.messages.BuildMessage1>
Please sign in to leave a comment.
What code coverage tool was used? Please attach screenshot of build configuration settings with all editors expanded. Does the tests passes if start code-coverage without TeamCity? How do you run code coverage/tests?
I found the problem. It's PartCover 2.3 as downloaded from sourceforge does not run on 64 bit machines. [1]
I switched to this [2] version which supports 64 bit and .Net 4.0, and partcover is running for me now.
[1] http://stackoverflow.com/questions/2965064/partcover-2-5-3-win-7-x64
[2] http://github.com/sawilde/partcover.net4/downloads
Still, I don't think TeamCity should hang in this situation.
Please check what process was hunging. Was it partcover.exe? Or was it *NUnitLaucher.exe?
It definitely was not partcover.exe. I *think* it was *NUnitLauncher.exe. I can't reproduce as I've changed the config now (and uninstalled PartCover 2.3), and so I'm just trying to recall this from memory.