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

Notification

Icon
Error

Using NCrunch v2 restarts build all the time when using Distributed Proccessing
Stefan
#1 Posted : Thursday, January 16, 2014 11:21:12 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/16/2014(UTC)
Posts: 5

If I disconnect all Remote Servers, NCrunch v2 is working as usual.

But sometimes when I have Remote Servers connected, during running all Tests the Build restarts all over again
Remco
#2 Posted : Thursday, January 16, 2014 11:30:52 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
This may be normal behaviour - I'll try to explain why this could be the case.

NCrunch replicates build logic across servers in the grid. This means that if you are running a grid with 2 remote servers and local processing turned on, NCrunch will build your solution 3 times - once on each machine. This was a design decision made to try and simplify compatibility across the grid and to make it easier to operate the distributed processing with local processing disabled.

A side-effect of this is that the solution will need to be built on a remote server every time a connection has been established to this server. This is because the workspaces and session-related information on a remote server is cleared when the connection is lost, and needs to be recreated when the connection has been re-established.

So if you have a remote server that is at the end of an unreliable connection (for example, if you're using a laptop with a weak WiFi signal), and the connection is intermittently lost, NCrunch will automatically reconnect, then resync with the remote node and re-run the builds on this node.

Roughly how often do you notice this happening? Does it seem to correlate with disconnections from the nodes?
Stefan
#3 Posted : Thursday, January 16, 2014 12:00:07 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/16/2014(UTC)
Posts: 5

We've updated to NCrunch 2.3.

The startup is now much faster (thank you for that)

But we still have experienced the following problem:
Even if all tests are "OK" there is continuously 3 build processes going on forever.
This happens when I delete all Remote Servers from the Distributed Processing list as well.

After some testing on several PCs it works now as intended.
It might have been some local outdated data.

I'll post here again if we encounter any problems again.
Thank you very much so far!
Remco
#4 Posted : Thursday, January 16, 2014 12:06:48 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,982

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
I've heard some reports of build/test spinners getting stuck perpetually when using the distributed processing, although to date no one has managed to pin down a way to reproduce it. In theory, the engine should drop all knowledge of remote processing when the connection to a remote machine has been cut ... though I wonder if there may be a hole in here somewhere. If you have this happen to you again, can you check for me whether there are tasks still processing inside the Processing Queue window? This will help to establish whether the issue is simply cosmetic or if it's a symptom of some tracking going haywire inside the engine.

Thanks for taking the time to give the distributed processing a try. I'm particularly excited about this feature and would like to ensure it is as stable as possible, so do post back if you have any further issues.

Cheers,

Remco
Stefan
#5 Posted : Friday, January 17, 2014 10:25:36 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/16/2014(UTC)
Posts: 5

Will do
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.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download