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)' ******************
Build/Test Issues
WP8.0 Test project fails to build on grid node server
Started by dejandakic on 7,750 views
Remco NCrunch Developer
#6175
30 Jul 2014 11:33 UTC
Hi, thanks for posting!
Do you have the Windows Phone 8 SDK installed on your build server?
Do you have the Windows Phone 8 SDK installed on your build server?
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.
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.
Edited 30 Jul 2014 11:39 UTC
Remco NCrunch Developer
#6177
30 Jul 2014 11:50 UTC
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"
..\..\..\..\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"
That is correct, i wouldn't bother you but with my (local) agent everything works OK.
Problem is only with grid node.
Problem is only with grid node.
Remco NCrunch Developer
#6179
30 Jul 2014 23:11 UTC
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?
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?
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.
I have ignored that project in NCrunch. Thanks for all your help.
Remco NCrunch Developer
#6181
01 Aug 2014 06:23 UTC
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.
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.
Post a reply
Log in to reply.