-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add more SdkResolverService events and allow SdkResolvers to log events #7139
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
Conversation
src/Build/BackEnd/Components/SdkResolution/CachingSdkResolverService.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
src/Build/BackEnd/Components/SdkResolution/OutOfProcNodeSdkResolverService.cs
Outdated
Show resolved
Hide resolved
|
It occurred to me that you're theoretically supposed to update our event-source docs when you add new events—not that we've done that for almost any of the other changes. If you don't want to, I can try to remember to add all the missing ones in a PR soon. |
I've added some descriptions to my new events and the ones Rainer added, plus I put them in table which I thought was easier to read. |
…log events (dotnet#7139)" This reverts commit 73ee6c0.
…log events (#7139)" (#7277) This reverts commit 73ee6c0. ### Description As of #7139 Microsoft-Build events can no longer be reported (i.e. they don't show in PerfView) because the ETW manifest builder is failing due to Object[] being an unsupported type. This change is a straight revert of the PR that introduced the regression. ### Customer Impact The bug makes it harder to diagnose MSBuild issues internally and externally. Note that Microsoft-Build ETW events are recorded by the VS Feedback tool, for example. ### Regression? Yes, introduced in #7139 on Dec 22nd 2021. ### Risk Very low. ### Is there a packaging impact? No. ### Does the change affect files included in any ref pack (Microsoft.NETCore.App.Ref, Microsoft.AspNetCore.App.Ref, Microsoft.WindowsDesktop.App.Ref)? No.
Fixes #7136
Context
Adding on to #6876, this change adds more events to SDK resolution.
Changes Made
CachedSdkResolverServiceResolveSdkStopso we can differentiate cached and non-cached callsOutOfProcSdkResolverServiceRequestSdkPathFromMainNodeStartandOutOfProcSdkResolverServiceRequestSdkPathFromMainNodeStopevents to track how long it takes to send/receive an SDK result from the main nodeSdkResolverEvent,SdkResolverEventStart, andSdkResolverEventStopmethods toMicrosoft.Build.Framework.SdkLoggerso that SDK resolvers can contribute to the events in SDK resolution.Testing
Notes