Skip to content

Conversation

@jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Dec 9, 2021

Fixes #7136

Context

Adding on to #6876, this change adds more events to SDK resolution.

Changes Made

  1. Add boolean to CachedSdkResolverServiceResolveSdkStop so we can differentiate cached and non-cached calls
  2. Add OutOfProcSdkResolverServiceRequestSdkPathFromMainNodeStart and OutOfProcSdkResolverServiceRequestSdkPathFromMainNodeStop events to track how long it takes to send/receive an SDK result from the main node
  3. Add SdkResolverEvent, SdkResolverEventStart, and SdkResolverEventStop methods to Microsoft.Build.Framework.SdkLogger so that SDK resolvers can contribute to the events in SDK resolution.

Testing

Notes

Copy link
Contributor

@Forgind Forgind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@Forgind
Copy link
Contributor

Forgind commented Dec 13, 2021

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.

@jeffkl
Copy link
Contributor Author

jeffkl commented Dec 14, 2021

It occurred to me that you're theoretically supposed to update our event-source docs when you add new events

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.

https://github.com/jeffkl/msbuild/blob/more-sdkresolver-events/documentation/specs/event-source.md

@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Dec 14, 2021
@Forgind Forgind merged commit 73ee6c0 into dotnet:main Dec 22, 2021
ladipro added a commit to ladipro/msbuild that referenced this pull request Jan 12, 2022
ladipro added a commit that referenced this pull request Jan 13, 2022
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More ETW events should be added to SDK resolution

4 participants