1 write to Request
Microsoft.Build (1)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
132Request = request;
112 references to Request
Microsoft.Build (112)
BackEnd\BuildManager\LegacyThreadingData.cs (2)
158Assumed.NotNull(instance?.RequestEntry?.Request, "Cannot signal legacy thread start for a RequestBuilder without a request"); 160int submissionId = instance.RequestEntry.Request.SubmissionId;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (60)
276TraceEngine($"CFB: Shutting down request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) failed due to exception: {e}"); 295TraceEngine($"CFB: Shutting down request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) failed due to exception: {e}"); 309BuildResult result = entry.Result ?? new BuildResult(entry.Request, new BuildAbortedException()); 310TraceEngine($"CFB: Request is now {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) has been deactivated."); 311RaiseRequestComplete(entry.Request, result); 464TraceEngine($"Request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) is now proceeding from current state {entry.State}."); 485TraceEngine($"Request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) has retrieved the results for configuration {entry.Request.ConfigurationId} and cached them on node {_componentHost.BuildParameters.NodeId} (UBR)."); 512TraceEngine($"Request {entry.Request.GlobalRequestId}({entry.Request.ConfigurationId}) (nr {entry.Request.NodeRequestId}) is no longer waiting on nr {result.NodeRequestId} (UBR). Results are {result.OverallResult}."); 625BuildRequestBlocker blocker = new BuildRequestBlocker(currentEntry.Request.GlobalRequestId, currentEntry.GetActiveTargets(), requestsToIssue.ToArray()); 792TraceEngine($"ERS: Active request is now {currentEntry.Request.GlobalRequestId}({currentEntry.Request.ConfigurationId}) (nr {currentEntry.Request.NodeRequestId})."); 798TraceEngine($"ERS: Request {currentEntry.Request.GlobalRequestId}({currentEntry.Request.ConfigurationId}) (nr {currentEntry.Request.NodeRequestId}) is marked as complete."); 824TraceEngine($"ERS: Request {completedEntry.Request.GlobalRequestId}({completedEntry.Request.ConfigurationId}) (nr {completedEntry.Request.NodeRequestId}) is being removed from the requests list."); 826_requestsByGlobalRequestId.Remove(completedEntry.Request.GlobalRequestId); 866BuildRequestConfiguration configuration = _configCache[completedEntry.Request.ConfigurationId]; 878TraceEngine($"ERS: Request is now {completedEntry.Request.GlobalRequestId}({completedEntry.Request.ConfigurationId}) (nr {completedEntry.Request.NodeRequestId}) has had its builder cleaned up."); 879RaiseRequestComplete(completedEntry.Request, completedEntry.Result); 994RaiseRequestResumed(entry.Request); 1101if (unsubmittedRequest.BlockingGlobalRequestId == issuingEntry.Request.GlobalRequestId) 1106IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), YieldAction.Yield)); 1109issuingEntry.WaitForBlockingRequest(issuingEntry.Request.GlobalRequestId); 1115IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), YieldAction.Reacquire)); 1130issuingEntry.WaitForBlockingRequest(issuingEntry.Request.GlobalRequestId); 1133IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId)); 1144IssueBuildRequest(new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), unsubmittedRequest.BlockingGlobalRequestId, unsubmittedRequest.BlockingTarget, unsubmittedRequest.PartialBuildResult)); 1201if (issuingEntry.Request.BuildRequestDataFlags.HasFlag(BuildRequestDataFlags.IgnoreMissingEmptyAndInvalidImports)) 1232submissionId: issuingEntry.Request.SubmissionId, 1236hostServices: issuingEntry.Request.HostServices, 1237parentBuildEventContext: issuingEntry.Request.CurrentTaskContext ?? issuingEntry.Request.BuildEventContext, 1238parentRequest: issuingEntry.Request, 1248TraceEngine($"Request {issuingEntry.Request.GlobalRequestId}({issuingEntry.Request.ConfigurationId}) (nr {issuingEntry.Request.NodeRequestId}) is waiting on configuration {request.Config.ConfigurationId} (IBR)"); 1256submissionId: issuingEntry.Request.SubmissionId, 1260hostServices: issuingEntry.Request.HostServices, 1261parentBuildEventContext: issuingEntry.Request.CurrentTaskContext ?? issuingEntry.Request.BuildEventContext, 1262parentRequest: issuingEntry.Request, 1340BuildRequestBlocker blocker = new BuildRequestBlocker(issuingEntry.Request.GlobalRequestId, issuingEntry.GetActiveTargets(), requestsToIssue.ToArray());
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
395Assumed.Equal(State, BuildRequestEntryState.Waiting, $"Entry must be in the waiting state to be unblocked. Config: {RequestConfiguration.ConfigurationId} State: {State} Request: {Request.GlobalRequestId}"); 396Assumed.NotEqual(_blockingGlobalRequestId, BuildRequest.InvalidGlobalRequestId, $"Entry must be waiting on another request to be unblocked. Config: {RequestConfiguration.ConfigurationId} Request: {Request.GlobalRequestId}");
BackEnd\Components\Logging\ProjectLoggingContext.cs (10)
39requestEntry.Request.SubmissionId, 40requestEntry.Request.ConfigurationId, 42requestEntry.Request.Targets, 46requestEntry.Request.ParentBuildEventContext, 48requestEntry.Request.ProjectContextId) 86requestEntry.Request.SubmissionId, 87requestEntry.Request.ConfigurationId, 89requestEntry.Request.Targets, 93requestEntry.Request.ParentBuildEventContext, 95requestEntry.Request.ProjectContextId);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (22)
234Assumed.True(_blockType == BlockType.BlockedOnTargetInProgress || _blockType == BlockType.Yielded || (_continueResults != null), $"Unexpected null results for request {_requestEntry.Request.GlobalRequestId} (nr {_requestEntry.Request.NodeRequestId})"); 444RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, null); 453RaiseOnBlockedRequest(_requestEntry.Request.GlobalRequestId, String.Empty); 510RaiseResourceRequest(ResourceRequest.CreateAcquireRequest(_requestEntry.Request.GlobalRequestId, requestedCores, waitForCores)); 544RaiseResourceRequest(ResourceRequest.CreateReleaseRequest(_requestEntry.Request.GlobalRequestId, coresToRelease)); 577return host.BuildParameters.LegacyThreadingSemantics && (host.LegacyThreadingData.MainThreadSubmissionId == entry.Request.SubmissionId); 672return componentHostSnapshot.LegacyThreadingData.GetLegacyThreadInactiveTask(_requestEntry.Request.SubmissionId); 685Assumed.NotEqual(_componentHost.LegacyThreadingData.MainThreadSubmissionId, _requestEntry.Request.SubmissionId, "Can't start builder thread when we are using legacy threading semantics for this request."); 869result = new BuildResult(_requestEntry.Request, thrownException); 972handle = RequestBuilder.WaitWithBuilderThreadStart(handles, true, _componentHost.LegacyThreadingData, _requestEntry.Request.SubmissionId); 1155new CheckLoggingContext(_nodeLoggingContext.LoggingService, _requestEntry.Request.BuildEventContext), 1160RequestEntry.Request.BuildRequestDataFlags, 1161RequestEntry.Request.SubmissionId, 1185_requestEntry.Request, 1194_requestEntry.Request.BuildEventContext); 1202.GetTargetsUsedToBuildRequest(_requestEntry.Request).ToArray(); 1222_requestEntry.Request.BuildEventContext = _projectLoggingContext.BuildEventContext; 1253result = _requestEntry.Request.ProxyTargets == null 1274var proxyTargetMapping = _requestEntry.Request.ProxyTargets.ProxyTargetToRealTargetMap; 1277var cachedResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId); 1314BuildResult unfilteredResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId);
BackEnd\Components\RequestBuilder\TargetBuilder.cs (9)
139BuildResult existingBuildResult = resultsCache.GetResultsForConfiguration(_requestEntry.Request.ConfigurationId); 141_buildResult = new BuildResult(entry.Request, existingBuildResult, null); 154if (!targetExists && entry.Request.BuildRequestDataFlags.HasFlag(BuildRequestDataFlags.SkipNonexistentTargets)) 196if (_requestEntry.Request.BuildRequestDataFlags.HasFlag(BuildRequestDataFlags.ProvideProjectStateAfterBuild)) 201if (_requestEntry.Request.RequestedProjectState != null) 204_projectInstance.FilteredCopy(_requestEntry.Request.RequestedProjectState); 485_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.GlobalRequestId; 691if (idOfAlreadyBuildingRequest != _requestEntry.Request.GlobalRequestId) 775if (idOfAlreadyBuildingRequest != _requestEntry.Request.GlobalRequestId)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (7)
167if (_taskNode != null && requestEntry.Request.HostServices != null) 171_taskHostObject = requestEntry.Request.HostServices.GetHostObject(requestEntry.RequestConfiguration.Project.FullPath, loggingContext.Target.Name, _taskNode.Name); 335_buildRequestEntry.Request.HostServices, 462_buildRequestEntry.Request.CurrentTaskContext = taskLoggingContext.BuildEventContext; 506_buildRequestEntry.Request.CurrentTaskContext = null; 679if (!_taskExecutionHost.InitializeForBatch(taskLoggingContext, bucket, taskIdentityParameters, _buildRequestEntry.Request.ScheduledNodeId)) 794&& (_buildRequestEntry.Request.BuildRequestDataFlags & BuildRequestDataFlags.SkipNonexistentTargets) == BuildRequestDataFlags.SkipNonexistentTargets)