-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MuxLogger drops evaluation events #4044
Comments
FYI @panopticoncentral I think this is one of the reasons why design-time and evaluation binlogs are missing information. |
Same for MuxLogger |
Hmm, they both inherit from BuildMessage, not sure this is a bug... I will need to investigate a bit more. |
MuxLogger drops all evaluation events because their Submission ID is -1. See related: |
I have a feeling that this line should be:
because the As a result, all evaluation events in MuxLogger are filtered out here: |
Aha, @panopticoncentral I'm noticing you're creating the BuildEventContext here: as part of this PR: #2748. I think we need to be taking the SubmissionID directly from the _requestEntry.Request. What do you think? I think this would explain the evaluation events missing from the design-time build logs. |
Fix dotnet#4044. The symptom of the issue is that design-time build logs (such as those obtained from Project System Tools) do not have evaluation messages or imported projects/targets. This is because the MuxLogger used by Microsoft.VisualStudio.ProjectServices.dll drops all build messages where the submission ID is not equal to the current submission ID of the logger. All evaluation messages had the submission ID set to -1 and they were all dropped. To fix this we need to propagate the submission Id from the build request so that all log events (including evaluation messages) have a proper submission Id set. The way it is right now the BuildEventContext is Invalid, so the Submission ID is set to -1. With this change the Submission ID is set correctly and I've verified that the evaluation messages are not being discarded by the MuxLogger.
Fix #4044. The symptom of the issue is that design-time build logs (such as those obtained from Project System Tools) do not have evaluation messages or imported projects/targets. This is because the MuxLogger used by Microsoft.VisualStudio.ProjectServices.dll drops all build messages where the submission ID is not equal to the current submission ID of the logger. All evaluation messages had the submission ID set to -1 and they were all dropped. To fix this we need to propagate the submission Id from the build request so that all log events (including evaluation messages) have a proper submission Id set. The way it is right now the BuildEventContext is Invalid, so the Submission ID is set to -1. With this change the Submission ID is set correctly and I've verified that the evaluation messages are not being discarded by the MuxLogger.
New log events have been added in the recent time that the ConfigurableForwardingLogger doesn't know about:
ProjectImported
TargetSkipped
Without these events the binary logs produced by the Project System Tools extension don't have the imported files and some other details.
The text was updated successfully, but these errors were encountered: