Skip to content

Revert Emit eval props if requested by any sink (#10243)#10447

Merged
f-alizada merged 2 commits intodotnet:mainfrom
JanKrivanek:proto/revert-eval-props
Aug 2, 2024
Merged

Revert Emit eval props if requested by any sink (#10243)#10447
f-alizada merged 2 commits intodotnet:mainfrom
JanKrivanek:proto/revert-eval-props

Conversation

@JanKrivanek
Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek commented Jul 26, 2024

Fixes https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_git/VS/pullRequest/567354#1721971513

Context

#10243 introduced proper populating of eval props based on Loggers requests - this however can lead to props being populated on both - ProjectStartedEventArgs and EvaluationProjectFinishedEventArgs - which leads to higher allocations. We have couple options how to proceed:

  • Accept the allocations increase (and close this PR)
  • Revert the previous changes - however this will lead to 'enlightened' loggers missing data (if old logger ius present) - including BuildCheck going forward
  • Adjust changes by populating only on EvaluationProjectFinishedEventArgs if any loggers requested - leading to breaking not enlightened loggers
  • Go through all the Logger registrations and initializtions in VS and make sure they are 'enlightened' (<--- trying this right now)

@JanKrivanek
Copy link
Copy Markdown
Member Author

@f-alizada f-alizada marked this pull request as ready for review August 2, 2024 06:33
Copy link
Copy Markdown
Contributor

@f-alizada f-alizada left a comment

Choose a reason for hiding this comment

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

@f-alizada f-alizada requested a review from a team August 2, 2024 06:48
@f-alizada f-alizada merged commit bd46115 into dotnet:main Aug 2, 2024
JanKrivanek added a commit that referenced this pull request Aug 12, 2024
JanKrivanek added a commit that referenced this pull request Aug 15, 2024
…0508)

* Revert "Revert Emit eval props if requested by any sink (#10243) (#10447)"

This reverts commit bd46115.

* Prevent NullLogger to request eval props

* Remove extra newline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants