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
Copy file name to clipboardExpand all lines: src/Build/BackEnd/Components/Logging/LoggingServiceLogMethods.cs
+22-10Lines changed: 22 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -527,18 +527,27 @@ private int GenerateNewProjectContextId(string projectFile)
527
527
/// <summary>
528
528
/// Validates that a preexisting projectContextId is valid and updates the project file map to track which contexts apply to which project files.
529
529
/// </summary>
530
-
/// <param name="projectContextId">The preexisting project context ID to validate.</param>
530
+
/// <param name="remoteNodeEvaluationContext">The remote node evaluation context containing the project context ID to validate.</param>
531
531
/// <param name="projectFile">The project file path to be associated with this project context ID.</param>
532
532
/// <param name="currentNodeId">The node ID of the current node - used to validate that only the in-proc scheduler node is re-using cached project context IDs.</param>
/// <returns>Either the same context, if the projectContextId exists in the map already, or a new context with a generated projectContextId if it did not.</returns>
ErrorUtilities.ThrowInternalError("ContextID {0} was already in the ID-to-project file mapping but the project file {1} did not match the provided one {2}!",projectContextId,existingProjectFile,projectFile);
548
+
ErrorUtilities.ThrowInternalError("ContextID {0} was already in the ID-to-project file mapping but the project file {1} did not match the provided one {2}!",remoteNodeEvaluationContext.ProjectContextId,existingProjectFile,projectFile);
// So we only need this sanity check for the in-proc node.
548
557
if(currentNodeId==Scheduler.InProcNodeId)
549
558
{
550
-
ErrorUtilities.ThrowInternalError("ContextID {0} should have been in the ID-to-project file mapping but wasn't!",projectContextId);
559
+
ErrorUtilities.ThrowInternalError("ContextID {0} should have been in the ID-to-project file mapping but wasn't!",remoteNodeEvaluationContext.ProjectContextId);
@@ -566,16 +576,18 @@ public ProjectStartedEventArgs CreateProjectStartedForCachedProject(
566
576
{
567
577
Debug.Assert(currentNodeBuildEventContext.NodeId==Scheduler.InProcNodeId,"Cached project build events should only be logged on the in-proc scheduler node.");
0 commit comments