You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
The change looks fine. Given that this looks like a workaround, what meaning should I ascribe to the test failure? Is it a bug in the test, a bug in the product that we are choosing not to fix, a bug in the product that will be fixed later?
/__w/1/s/src/tests/tracing/runtimeeventsource/NativeRuntimeEventSourceTest.cs(27,34): error CS0103: The name 'ArrayPool' does not exist in the current context [/__w/1/s/src/tests/tracing/runtimeeventsource/nativeruntimeeventsource.csproj] [/__w/1/s/src/tests/build.proj]
##[error]src/tests/tracing/runtimeeventsource/NativeRuntimeEventSourceTest.cs(27,34): error CS0103: The name 'ArrayPool' does not exist in the current context [/__w/1/s/src/tests/tracing/runtimeeventsource/nativeruntimeeventsource.csproj]
/__w/1/s/src/tests/tracing/runtimeeventsource/NativeRuntimeEventSourceTest.cs(28,60): error CS1061: 'byte[]' does not contain a definition for 'Lenth' and no accessible extension method 'Lenth' accepting a first argument of type 'byte[]' could be found (are you missing a using directive or an assembly reference?) [/__w/1/s/src/tests/tracing/runtimeeventsource/nativeruntimeeventsource.csproj] [/__w/1/s/src/tests/build.proj]
##[error]src/tests/tracing/runtimeeventsource/NativeRuntimeEventSourceTest.cs(28,60): error CS1061: 'byte[]' does not contain a definition for 'Lenth' and no accessible extension method 'Lenth' accepting a first argument of type 'byte[]' could be found (are you missing a using directive or an assembly reference?) [/__w/1/s/src/tests/tracing/runtimeeventsource/nativeruntimeeventsource.csproj]
Given that this looks like a workaround, what meaning should I ascribe to the test failure? Is it a bug in the test, a bug in the product that we are choosing not to fix, a bug in the product that will be fixed later?
It's a bug in the product, but I don't think customers are likely to hit it. There is a potential deadlock between shutting down EventPipeEventDispatcher and an EventListener if you create EventSources in your OnEventWritten callback. I don't think this is a common scenario, we are particularly vulnerable to it in the tests because they are short lived and only write an event or two, and touching framework code can cause EventSources like ArrayPoolEventSource to be lazy initted.
To my knowledge we haven't had customer reports, because their EventListeners are generally longer lived.
I'd suggest you add a comment to the test code saying that we believe a product issue exists here, but for now we are choosing not to fix it because we believe it doesn't impact any customers. Thanks David!
ghost
locked as resolved and limited conversation to collaborators
Jun 17, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#86233