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

Notification

Icon
Error

WP8.0 Test project fails to build on grid node server
dejandakic
#1 Posted : Wednesday, July 30, 2014 9:22:02 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/3/2014(UTC)
Posts: 4
Location: Slovenia

Hello,

I know i cant run WP8 tests on ncrunch, but i wanted to use it for building only.

When i use local agent all if fine, it compiles and i get lovely green check sign.

If i try to compile on grid node server i get following error.

PS: build agent is on the same machine as (local)

NCrunch: The build results for this project are not consistent across all computers within the grid.

This project was successfully built on computers: (local)
This project failed to build on computers: HELL, BUILD

Relevant tests will continue to run on computers that are able to build this project successfully. Please ensure all computers within the grid are configured correctly with all required SDKs installed.

****************** BUILD OUTPUT FROM 'HELL' ******************

..\..\..\..\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1803): Could not find SDK "MSTestFramework, Version=11.0".
..\..\..\..\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1803): Could not find SDK "TestPlatform, Version=11.0".

NCrunch: The following files are expected but do not seem to exist on the computer responsible for building this project:
C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportBefore\Microsoft.Silverlight.v4.0.WindowsPhone.targets
C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.0\Microsoft.WindowsPhone.PostImport.targets
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\MSTestFramework\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.UnitTestFramework.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\vstest_executionengine_platformbridge.winmd
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\MSTestFramework\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.UnitTestFramework.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\vstest_executionengine_platformbridge.winmd

Please make sure you have all SDKs required to build this project installed on this computer.
****************** BUILD OUTPUT FROM 'BUILD' ******************

..\..\..\..\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1803): Could not find SDK "MSTestFramework, Version=11.0".
..\..\..\..\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1803): Could not find SDK "TestPlatform, Version=11.0".

NCrunch: The following files are expected but do not seem to exist on the computer responsible for building this project:
C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportBefore\Microsoft.Silverlight.v4.0.WindowsPhone.targets
C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.0\Microsoft.WindowsPhone.PostImport.targets
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\MSTestFramework\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.UnitTestFramework.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\vstest_executionengine_platformbridge.winmd
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\MSTestFramework\11.0\References\CommonConfiguration\neutral\Microsoft.VisualStudio.TestPlatform.UnitTestFramework.dll
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\TestPlatform\11.0\References\CommonConfiguration\neutral\vstest_executionengine_platformbridge.winmd

Please make sure you have all SDKs required to build this project installed on this computer.
****************** BUILD OUTPUT FROM '(local)' ******************


Remco
#2 Posted : Wednesday, July 30, 2014 11:33:02 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)
Hi, thanks for posting!

Do you have the Windows Phone 8 SDK installed on your build server?
dejandakic
#3 Posted : Wednesday, July 30, 2014 11:39:13 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/3/2014(UTC)
Posts: 4
Location: Slovenia

Yes.

I have also installed grid node server on my dev machine (where i build with VS and with ncrunch agent (local) without a problem) and i get the same output from grid node, again, running on same machine.
Remco
#4 Posted : Wednesday, July 30, 2014 11:50:34 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)
Sorry - just to confirm, are you seeing these errors when you are trying to build with a grid node that is running on your local machine?

..\..\..\..\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1803): Could not find SDK "MSTestFramework, Version=11.0".
..\..\..\..\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets (1803): Could not find SDK "TestPlatform, Version=11.0"

dejandakic
#5 Posted : Wednesday, July 30, 2014 11:54:12 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/3/2014(UTC)
Posts: 4
Location: Slovenia

That is correct, i wouldn't bother you but with my (local) agent everything works OK.

Problem is only with grid node.

Remco
#6 Posted : Wednesday, July 30, 2014 11:11:35 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)
Ok - we'll need to narrow down where the build process is being handled differently between the grid node and the VS addin.

In both cases, the build will be run within a specialised workspace built by NCrunch. What we'll need to do is obtain two workspaces - one for the NCrunch VSAddin build, one for the grid node build. We then compare the workspaces and their project files in an effort to figure out why the build will work in one but not in the other.

Finding a workspace for an NCrunch VSAddin build is simple. Just switch off all the remote grid nodes, then let NCrunch build your project. Right click on the project in the Tests Window and go to Advanced->Browse to workspace. Perhaps consider making a copy of this workspace so you can refer back to it if NCrunch later removes it (which it does routinely). As you've mentioned, this is the workspace that works correctly.

Finding a workspace for the grid node is a little more difficult. If you run the Grid Node config tool, you'll find an option to set the 'Workspace base path network share'. Set this value to be the same as the workspace base path. Once you've done this, go into the NCrunch VSAddin and disable all processing except for the grid node you've just configured. Let the grid node build the project. Find the failed project build in the Tests Window, then right click on it, go to Advanced->Browse to workspace. This should be the workspace that is failing. Make a copy of it.

Try comparing the two workspaces, with close attention to the project file. Do you notice any differences that could be related to the build problem you're experiencing?
dejandakic
#7 Posted : Friday, August 1, 2014 6:11:32 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/3/2014(UTC)
Posts: 4
Location: Slovenia

Okey, I have compared two projects, in .csproj there were no changes except obvious ones (References,..).

I have ignored that project in NCrunch. Thanks for all your help.
Remco
#8 Posted : Friday, August 1, 2014 6:23:34 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 your help in trying to track down this problem. Let me know if you want any more advise on how to pursue it further. I'm sorry that it isn't always easy to troubleshoot issues such as this without being able to reproduce them myself.

I may be able to suggest a better option that simply ignoring the project. Since the project does build on your local machine, you may want to simply suppress building it on the grid nodes. If you attach a capability to the project using the 'Required Capabilities' NCrunch project-level configuration option, then add this capability to your local machine ('Capabilities of this computer'), NCrunch will then build the project locally but not on the grid nodes.

You can learn more about capabilities here - http://www.ncrunch.net/documentation/concepts_capabilities.
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.058 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download