You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: Allow for the detection of whether to run locally or remotely. (#2054)
* Set up for launching remotely
* Set up for launching remotely
* Report on WorkerCount and LaunchRemotely state
* Store the Process as it will complete later
* add a little more logging
* Simplified name
* Update GetWorkerCount to no longer set internal state
* Update BaseMultiprocessTests.cs
respond to PR feedback
Co-authored-by: ashwini <36935028+ashwinimurt@users.noreply.github.com>
MultiprocessLogger.Log($"Active Worker Count is {MultiprocessOrchestration.ActiveWorkerCount()} and connected client count is {NetworkManager.Singleton.ConnectedClients.Count}");
150
+
MultiprocessLogger.Log($"Active Worker Count is {MultiprocessOrchestration.ActiveWorkerCount()}"+
151
+
$" and connected client count is {NetworkManager.Singleton.ConnectedClients.Count} "+
MultiprocessLogger.Log($"Spawning testplayer {i} since connected client count is {NetworkManager.Singleton.ConnectedClients.Count} is less than {WorkerCount} and Number of spawned external players is {MultiprocessOrchestration.ActiveWorkerCount()} ");
158
-
stringlogPath=MultiprocessOrchestration.StartWorkerNode();// will automatically start built player as clients
159
-
MultiprocessLogger.Log($"logPath to new process is {logPath}");
160
-
MultiprocessLogger.Log($"Active Worker Count {MultiprocessOrchestration.ActiveWorkerCount()} and connected client count is {NetworkManager.Singleton.ConnectedClients.Count}");
MultiprocessLogger.Log($"Spawning testplayer {i} since connected client count is {NetworkManager.Singleton.ConnectedClients.Count} is less than {WorkerCount} and Number of spawned external players is {MultiprocessOrchestration.ActiveWorkerCount()} ");
170
+
stringlogPath=MultiprocessOrchestration.StartWorkerNode();// will automatically start built player as clients
171
+
MultiprocessLogger.Log($"logPath to new process is {logPath}");
172
+
MultiprocessLogger.Log($"Active Worker Count {MultiprocessOrchestration.ActiveWorkerCount()} and connected client count is {NetworkManager.Singleton.ConnectedClients.Count}");
173
+
}
161
174
}
162
175
}
163
176
else
164
177
{
165
-
MultiprocessLogger.Log($"No need to spawn a new test player as there are already existing processes {MultiprocessOrchestration.ActiveWorkerCount()} and connected clients {NetworkManager.Singleton.ConnectedClients.Count}");
MultiprocessLogger.Log($"Would launch on {machine.Name} too get worker count to {GetWorkerCount()} from {NetworkManager.Singleton.ConnectedClients.Count-1}");
0 commit comments