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

Notification

Icon
Error

ExclusivelyUses functionality when building
MatthewSteeples
#1 Posted : Friday, February 21, 2020 7:15:22 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/28/2014(UTC)
Posts: 139
Location: United Kingdom

Thanks: 7 times
Was thanked: 18 time(s) in 16 post(s)
Is it possible to get the functionality of ExclusivelyUsesAttribute but for building a project rather than running tests? The summary is that we have a build task that runs to precompile views (using this library) but I'm beginning to suspect it doesn't like being run for multiple projects at the same time. So what I'm after is a way to tell my grid node to only build this particular project one at a time for each of the clients.
Remco
#2 Posted : Friday, February 21, 2020 11:05:08 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
We don't presently have any feature in NCrunch that allows you to manage the concurrency of the project build or analysis tasks.

Generally when this sort of problem appears the approach we usually take is to try and find a way to fix the build so that concurrency is not an issue. How critical is this particular build step? Is disabling it an option?
MatthewSteeples
#3 Posted : Friday, February 21, 2020 11:08:48 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/28/2014(UTC)
Posts: 139
Location: United Kingdom

Thanks: 7 times
Was thanked: 18 time(s) in 16 post(s)
Remco;14461 wrote:
How critical is this particular build step? Is disabling it an option?


It's not a "step" as such, as it integrates as a Target with msbuild. It does spawn a third party process though (which is where I suspect the problem we experience comes from). We do run most of the time with it disabled, but we would like to enable it because the step is basically to compile all of our views to see if there are any build errors. Because it's very CPU intensive, we only want our GridNodes to do it.
Remco
#4 Posted : Friday, February 21, 2020 11:12:57 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Is there perhaps an option to include the tool inside your project space so it gets copied to the workspace and doesn't clash with itself? Sorry I'm just trying to help fish for ideas.
MatthewSteeples
#5 Posted : Friday, February 21, 2020 11:23:19 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/28/2014(UTC)
Posts: 139
Location: United Kingdom

Thanks: 7 times
Was thanked: 18 time(s) in 16 post(s)
Appreciate the thoughts. I've not investigated that thoroughly, but the project ships as a NuGet package so "comes with the source" effectively. I'm not sure what you mean by "project space" in this context.

One thing we've considered (as the project is open source) is creating our own mini fork with a mutex on load so it only runs once per machine. That's the best I've managed to come up with currently.
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.044 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download