117 references to Trace
Microsoft.Build (75)
BackEnd\Client\MSBuildClient.cs (15)
157CommunicationsUtilities.Trace($"Executing build with command line '{descriptiveCommandLine}'"); 195CommunicationsUtilities.Trace($"Failed to obtain the current build server state: {ex}"); 196CommunicationsUtilities.Trace($"HResult: {ex.HResult}."); 354CommunicationsUtilities.Trace($"MSBuild client error: problem during packet handling occurred: {ex}."); 379CommunicationsUtilities.Trace($"MSBuild client warning: problem during querying console buffer width: {ex}"); 412CommunicationsUtilities.Trace($"Command packet of type '{packet.Type}' sent..."); 416CommunicationsUtilities.Trace($"Failed to send command packet of type '{packet?.Type.ToString() ?? "Unknown"}' to server: {ex}"); 447CommunicationsUtilities.Trace($"Failed to obtain the current build server state: {ex}"); 448CommunicationsUtilities.Trace($"HResult: {ex.HResult}."); 463CommunicationsUtilities.Trace($"Server started with PID: {msbuildProcess?.Id}"); 467CommunicationsUtilities.Trace($"Failed to launch the msbuild server: {ex}"); 544CommunicationsUtilities.Trace($"MSBuild client error: packet pump unexpectedly shut down: {packetPump.PacketPumpException}"); 589CommunicationsUtilities.Trace($"Build response received: exit code '{response.ExitCode}', exit type '{response.ExitType}'"); 618CommunicationsUtilities.Trace($"Retrying to connect to server after {sw.ElapsedMilliseconds} ms"); 626CommunicationsUtilities.Trace($"Failed to connect to server: {result.ErrorMessage}");
BackEnd\Client\MSBuildClientPacketPump.cs (2)
301CommunicationsUtilities.Trace($"Packet factory failed to receive package. Exception while deserializing packet {packetType}."); 332CommunicationsUtilities.Trace($"Exception occurred in the packet pump: {ex}");
BackEnd\Components\Communications\NodeLauncher.cs (5)
63CommunicationsUtilities.Trace($"Launching node from {nodeLaunchData.MSBuildLocation}"); 144CommunicationsUtilities.Trace($"Successfully launched {exeName} node with PID {process.Id}"); 149CommunicationsUtilities.Trace( 202CommunicationsUtilities.Trace( 210CommunicationsUtilities.Trace($"Successfully launched {exeName} node with PID {processInfo.dwProcessId}");
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
72CommunicationsUtilities.Trace($"""MSBUILDNODEHANDSHAKESALT="{Traits.MSBuildNodeHandshakeSalt}", msbuildDirectory="{BuildEnvironmentHelper.Instance.MSBuildToolsDirectory32}", enableNodeReuse={enableNodeReuse}, enableLowPriority={enableLowPriority}"""); 104CommunicationsUtilities.Trace($"Starting to acquire {numberOfNodesToCreate} new or existing node(s) to establish nodes from ID {nextNodeId} to {nextNodeId + numberOfNodesToCreate - 1}...");
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (27)
192CommunicationsUtilities.Trace($"Shutting down node with pid = {nodeProcess.Id}"); 289CommunicationsUtilities.Trace($"Attempting to connect to {possibleRunningNodesList.Count} existing processes '{expectedProcessName}'..."); 332CommunicationsUtilities.Trace($"Trying to connect to existing process {nodeToReuse.ProcessName} with id {nodeToReuse.Id} to establish node {nodeId}..."); 355CommunicationsUtilities.Trace($"Successfully connected to existing node {nodeId} which is PID {nodeToReuse.Id}"); 419CommunicationsUtilities.Trace($"Successfully connected to created node {nodeId} which is PID {msbuildProcess.Id}"); 432CommunicationsUtilities.Trace($"Could not connect to node with PID {msbuildProcess.Id}; it has exited with exit code {msbuildProcess.ExitCode}. This can indicate a crash at startup"); 438CommunicationsUtilities.Trace($"Could not connect to node with PID {msbuildProcess.Id}; it has exited with unknown exit code. This can indicate a crash at startup"); 444CommunicationsUtilities.Trace($"Could not connect to node with PID {msbuildProcess.Id}; it is still running. This can occur when two multiprocess builds run in parallel and the other one 'stole' this node"); 510CommunicationsUtilities.Trace($"Filtering {processes.Length} candidate processes by NodeMode {expectedNodeMode} for process name '{expectedProcessName}'"); 520CommunicationsUtilities.Trace($"Skipping process {process.Id} - unable to retrieve command line"); 528CommunicationsUtilities.Trace($"Including process {process.Id} - command line retrieval not supported on this platform"); 536CommunicationsUtilities.Trace($"Including process {process.Id} with matching NodeMode {processNodeMode.Value}"); 541CommunicationsUtilities.Trace( 547CommunicationsUtilities.Trace($"Skipping process {process.Id} - error retrieving command line: {ex.Message}"); 553CommunicationsUtilities.Trace($"Filtered to {filtered.Count} processes matching NodeMode {expectedNodeMode}"); 591CommunicationsUtilities.Trace($"Node reuse threshold is 0, terminating all {nodeCount} nodes"); 598CommunicationsUtilities.Trace($"System-wide node count: {systemWideNodeCount}, threshold: {maxNodesToKeep}, this instance has: {nodeCount} nodes"); 615CommunicationsUtilities.Trace($"Keeping {nodesToKeepInThisInstance} of {nodeCount} nodes in this instance to help meet threshold of {maxNodesToKeep}"); 665CommunicationsUtilities.Trace($"Error counting system-wide nodes with mode {nodeMode}: {ex.Message}"); 763CommunicationsUtilities.Trace($"Attempting connect to PID {nodeProcessId} with pipe {pipeName} with timeout {timeout} ms"); 773CommunicationsUtilities.Trace($"Failed to connect to pipe {pipeName}. {result.ErrorMessage.TrimEnd()}"); 785CommunicationsUtilities.Trace($"Failed to connect to pipe {pipeName}. {e.Message.TrimEnd()}"); 822CommunicationsUtilities.Trace($"Writing handshake part {component.Key} ({component.Value}) to pipe {pipeName}"); 829CommunicationsUtilities.Trace($"Reading handshake from pipe {pipeName}"); 839CommunicationsUtilities.Trace($"Successfully connected to pipe {pipeName}...!"); 1235CommunicationsUtilities.Trace($"Waiting for node with pid = {_process.Id} to exit"); 1263CommunicationsUtilities.Trace($"Killing node with pid = {_process.Id}");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (4)
672CommunicationsUtilities.Trace($"DisconnectFromHost: Node context already removed for key: {nodeKey}"); 718CommunicationsUtilities.Trace($"For a host context of {hostContext}, spawning executable from {nodeLaunchData.MSBuildLocation}."); 802CommunicationsUtilities.Trace($"For a host context of {hostContext}, using app host from {appHostPath}."); 824CommunicationsUtilities.Trace($"For a host context of {hostContext}, app host not found at {appHostPath}, falling back to dotnet.exe from {resolvedDotnetHostPath}.");
BackEnd\Components\Communications\RarNodeLauncher.cs (1)
46CommunicationsUtilities.Trace($"Failed to launch RAR node: {ex}");
BackEnd\Node\OutOfProcNode.cs (2)
459CommunicationsUtilities.Trace($"Shutting down with reason: {_shutdownReason}, and exception: {_shutdownException}."); 507CommunicationsUtilities.Trace($"Failed to restore the original environment: {ex}.");
BackEnd\Node\OutOfProcServerNode.cs (4)
103CommunicationsUtilities.Trace($"Starting new server node with handshake {handshake}"); 251CommunicationsUtilities.Trace($"Shutting down with reason: {_shutdownReason}, and exception: {_shutdownException}."); 332CommunicationsUtilities.Trace($"Terminating server node due to over-provisioning: {serverNodeCount} server nodes found system-wide."); 367CommunicationsUtilities.Trace($"Building with MSBuild server with command line {command.CommandLine}");
NodeEndpointOutOfProcBase.cs (13)
293CommunicationsUtilities.Trace($"Changing link status from {_status} to {newStatus}"); 391CommunicationsUtilities.Trace($"Waiting for connection {waitTimeRemaining} ms..."); 425CommunicationsUtilities.Trace($"Handshake failed with error: {result.ErrorMessage}"); 430CommunicationsUtilities.Trace( 457CommunicationsUtilities.Trace($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}"); 487CommunicationsUtilities.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}"); 509CommunicationsUtilities.Trace($"Client connection failed. Exiting comm thread. {e}"); 575CommunicationsUtilities.Trace($"Handshake for NET Host. Child host {handshakePart} for {component.Key}."); 579CommunicationsUtilities.Trace( 660CommunicationsUtilities.Trace($"Exception reading from server. {e}"); 687CommunicationsUtilities.Trace($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read"); 719CommunicationsUtilities.Trace($"Exception while deserializing packet {packetType}: {e}"); 778CommunicationsUtilities.Trace($"Exception while serializing packets: {e}");
Microsoft.Build.Framework (4)
BackEnd\CommunicationsUtilities.cs (1)
421Trace($"Node PacketVersion: {childVersion}, Local: {NodePacketTypeExtensions.PacketVersion}, Negotiated: {negotiatedPacketVersion}");
BackEnd\Handshake.cs (3)
78CommunicationsUtilities.Trace($"Building handshake for node type {nodeType}, (version {handshakeVersion}): options {options}."); 85CommunicationsUtilities.Trace($"Handshake salt is {handshakeSalt}"); 86CommunicationsUtilities.Trace($"Tools directory root is {toolsDirectory}");
Microsoft.Build.Tasks.Core (21)
AssemblyDependency\Node\OutOfProcRarNode.cs (3)
64CommunicationsUtilities.Trace($"Shutting down with reason: {shutdownReason}"); 68CommunicationsUtilities.Trace($"Shutting down with reason: {shutdownReason}, and exception: {shutdownException}"); 147CommunicationsUtilities.Trace($"{endpoints.Length} RAR endpoints started.");
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (7)
47CommunicationsUtilities.Trace($"({_endpointId}) Starting RAR endpoint."); 58CommunicationsUtilities.Trace($"({_endpointId}) RAR endpoint stopped due to cancellation."); 87CommunicationsUtilities.Trace($"({_endpointId}) Received request."); 95CommunicationsUtilities.Trace($"({_endpointId}) Executing RAR..."); 107CommunicationsUtilities.Trace($"({_endpointId}) Completed RAR request."); 113CommunicationsUtilities.Trace($"({_endpointId}) RAR client disconnected."); 123CommunicationsUtilities.Trace($"({_endpointId}) Exception while executing RAR request: {e}");
AssemblyDependency\ResolveAssemblyReference.cs (1)
3289CommunicationsUtilities.Trace($"RAR out-of-proc connection failed, failing back to in-proc. Exception: {ex}");
NodePipeClient.cs (5)
40CommunicationsUtilities.Trace($"Attempting connect to pipe {PipeName} with timeout {timeout} ms"); 53CommunicationsUtilities.Trace($"Successfully connected to pipe {PipeName}...!"); 70CommunicationsUtilities.Trace($"The remote pipe owner {remoteOwner.Value} does not match {identifier.Value}"); 83CommunicationsUtilities.Trace($"Writing handshake part {component.Key} ({component.Value}) to pipe {PipeName}"); 90CommunicationsUtilities.Trace($"Reading handshake from pipe {PipeName}");
NodePipeServer.cs (5)
104CommunicationsUtilities.Trace($"Waiting for connection {waitTimeRemaining} ms..."); 138CommunicationsUtilities.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}"); 153CommunicationsUtilities.Trace($"Client connection failed. Exiting comm thread. {e}"); 205CommunicationsUtilities.Trace($"Handshake failed. Received {handshakePart} from host not {component.Value}. Probably the host is a different MSBuild build."); 249CommunicationsUtilities.Trace($"Handshake failed. Host user is {(clientIdentity == null ? "<unknown>" : clientIdentity.Name)} but we were created by {currentIdentity.Name}.");
MSBuild (17)
NodeEndpointOutOfProcBase.cs (13)
293CommunicationsUtilities.Trace($"Changing link status from {_status} to {newStatus}"); 387CommunicationsUtilities.Trace($"Waiting for connection {waitTimeRemaining} ms..."); 425CommunicationsUtilities.Trace($"Handshake failed with error: {result.ErrorMessage}"); 430CommunicationsUtilities.Trace( 457CommunicationsUtilities.Trace($"Sent PacketVersion: {NodePacketTypeExtensions.PacketVersion}"); 472CommunicationsUtilities.Trace($"Handshake failed. Host user is {(clientIdentity == null ? "<unknown>" : clientIdentity.Name)} but we were created by {currentIdentity.Name}."); 487CommunicationsUtilities.Trace($"Client connection failed but we will wait for another connection. Exception: {e.Message}"); 509CommunicationsUtilities.Trace($"Client connection failed. Exiting comm thread. {e}"); 579CommunicationsUtilities.Trace( 660CommunicationsUtilities.Trace($"Exception reading from server. {e}"); 687CommunicationsUtilities.Trace($"Incomplete header read from server. {bytesRead} of {headerByte.Length} bytes read"); 719CommunicationsUtilities.Trace($"Exception while deserializing packet {packetType}: {e}"); 778CommunicationsUtilities.Trace($"Exception while serializing packets: {e}");
OutOfProcTaskHostNode.cs (1)
1180CommunicationsUtilities.Trace($"Nested task {taskHostConfiguration.TaskName} dispatched while {_blockedTaskCount} tasks are blocked on callbacks.");
XMake.cs (3)
380CommunicationsUtilities.Trace($"Unexpected exception during command line parsing. Can not determine if it is allowed to use Server. Fall back to old behavior. Exception: {ex}"); 2734CommunicationsUtilities.Trace($"Invalid node packet version value '{parameters[parameters.Length - 1]}': {ex.Message}"); 2739CommunicationsUtilities.Trace($"Node packet version value '{parameters[parameters.Length - 1]}' out of range: {ex.Message}");