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

Notification

Icon
Error

Test Only Build Locally
alexpolajenko
#1 Posted : Wednesday, May 31, 2017 5:05:48 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
I have setup distributed processing on one of my servers. I went through all the documentation and all projects build successfully on the server EXCEPT for the tests themselves. Any idea why?
Remco
#2 Posted : Wednesday, May 31, 2017 11:12:47 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi, thanks for posting!

I'll need some more information before I can properly answer this question. Here's a few questions to help understand the situation:

- If you open the Processing Queue Window, do you see build/analysis tasks for your projects on both your local machine and the remote grid node, and do all of these tasks complete?
- After you run all your tests, does the Processing Queue Window show any test tasks as being run on the remote server?
- Roughly how many tests do you have in your solution, and what is the approximate end-to-end run time for each test?
- If you right click on a test in the Tests Window, then go to 'Run selected test on server', is there an option to run on the remote grid node, and does it work correctly?
alexpolajenko
#3 Posted : Thursday, June 1, 2017 7:39:13 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Remco;10496 wrote:
Hi, thanks for posting!

I'll need some more information before I can properly answer this question. Here's a few questions to help understand the situation:

- If you open the Processing Queue Window, do you see build/analysis tasks for your projects on both your local machine and the remote grid node, and do all of these tasks complete?
- After you run all your tests, does the Processing Queue Window show any test tasks as being run on the remote server?
- Roughly how many tests do you have in your solution, and what is the approximate end-to-end run time for each test?
- If you right click on a test in the Tests Window, then go to 'Run selected test on server', is there an option to run on the remote grid node, and does it work correctly?


1. The Test project itself is always in a pending state.
2. Only the other projects build on the remote server NOT the test project itself.
3. 395 tests in all. 1 second per test estimated.
4. There is the option to run on the remote server but when I click it, it never even tries to run on the remote server.
Remco
#4 Posted : Thursday, June 1, 2017 10:20:04 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Check that the project doesn't have a required capability configured. See here for more information - http://www.ncrunch.net/documentation/reference_project-configuration_required-capabilities.
alexpolajenko
#5 Posted : Friday, June 2, 2017 1:12:26 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Remco;10502 wrote:
Check that the project doesn't have a required capability configured. See here for more information - http://www.ncrunch.net/documentation/reference_project-configuration_required-capabilities.


I checked the settings and the project does not have any required capabilities configured.

Remco
#6 Posted : Friday, June 2, 2017 1:19:12 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Thanks for confirming this. A few more things to check:

- Does turning off your local processing in the Distributed Processing Window then resetting the engine make any difference to this behaviour?
- If you set up a new little solution with a test project containing a single test, and use distributed processing, does this project build and does the test run on the remote server?
- Would you be able to submit a bug report after you've had this happen to you? I can then examine the log file to see if there are any obvious faults with the engine
alexpolajenko
#7 Posted : Friday, June 2, 2017 1:55:01 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Remco;10505 wrote:
Thanks for confirming this. A few more things to check:

- Does turning off your local processing in the Distributed Processing Window then resetting the engine make any difference to this behaviour?
- If you set up a new little solution with a test project containing a single test, and use distributed processing, does this project build and does the test run on the remote server?
- Would you be able to submit a bug report after you've had this happen to you? I can then examine the log file to see if there are any obvious faults with the engine


1. This has no effect.
2. Interestingly, YES, the new solution with new test project does build and run tests on the remote server.
3. Do you want me to send you the bug report after the test project does not build on the remote server but only locally? Keep in mind, there are no build errors. Just that the test project will only build locally.
alexpolajenko
#8 Posted : Friday, June 2, 2017 2:05:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
I submitted a report through the ui.
alexpolajenko
#9 Posted : Friday, June 2, 2017 3:04:58 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
Here is something else I just did.

In my existing solution, I created a new unit test project, added all my references.

Then I turned off local and remote only.

The new test project built remotely! Unfortunately the tests I was running is using a sql express database also so the tests fail remotely because it doesnt have the database. Any way around this?

Remco
#10 Posted : Friday, June 2, 2017 11:53:36 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Thanks for sending through the report. The report didn't show anything out of the ordinary. The NCrunch client is not sending work to the remote server because it believes it has no work that the remote server can process.

Everything here points to a configuration issue. Could you try closing the solution and deleting the .ncrunchproject files for your test project to see if this makes any difference?

Regarding the database dependency, this is something you'll need to arrange on the remote server if you intend to use it to run tests. For distributed processing to work, all servers in the grid must have the necessary dependencies to be able to build your projects and run your tests. If you have tests that specifically cannot be run on certain servers, you can use the capabilities system to mark them out so they only run where configured to do so.
1 user thanked Remco for this useful post.
alexpolajenko on 6/5/2017(UTC)
alexpolajenko
#11 Posted : Monday, June 5, 2017 5:47:41 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 8
Location: United States of America

Thanks: 1 times
I went ahead and jsut created a new unit test project and put in the test I needed. Now everything works
Remco
#12 Posted : Monday, June 5, 2017 11:20:27 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
alexpolajenko;10519 wrote:
I went ahead and jsut created a new unit test project and put in the test I needed. Now everything works


Thanks for confirming this. This problem has me a bit baffled. If you discover what was causing it, please do let me know.
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.059 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download