dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.62k stars 4.56k forks source link

tracing/eventpipe/eventsourceerror/eventsourceerror test always failing locally on Linux / macOS #47627

Open janvorli opened 3 years ago

janvorli commented 3 years ago

This test always fails in my local coreclr test runs on Linux and macOS:

  0.0s: ==TEST STARTING==
  1.1s: Started sending sentinel events...
  1.1s: Connecting to EventPipe...
  1.4s: Connected to EventPipe with sessionID '0x7fb320008de0'
  1.4s: Creating EventPipeEventSource...
  1.5s: EventPipeEventSource created
  1.5s: Dynamic.All callback registered
  1.5s: Running optional trace validator
  1.5s: Finished running optional trace validator
  1.5s: Starting stream processing...
  1.8s: Saw sentinel event
  1.8s: Stopped sending sentinel events
  1.8s: Starting event generating action...
  1.8s: Stopping event generating action
  1.8s: Sending StopTracing command...
  1.9s: Saw new provider 'IllegalTypesEventSource'
  1.9s: Saw new provider 'Microsoft-DotNETCore-EventPipe'
  1.9s: Saw new provider 'Microsoft-Windows-DotNETRuntimeRundown'
  1.9s: Saw new provider 'Microsoft-Windows-DotNETRuntime'
  1.9s: Finished StopTracing command
  1.9s: Stopping stream processing
  1.9s: Dropped 0 events
  1.9s: Reader task finished
  1.9s: Test FAILED!
  1.9s: Event count mismatch for provider "IllegalTypesEventSource": expected 1 +- 0, but saw 2
  1.9s: Configuration:
  1.9s: {
  1.9s: bufferSize: 1024,
  1.9s: providers: [
  1.9s: IllegalTypesEventSource:0xFFFFFFFFFFFFFFFF:5,
  1.9s: SentinelEventSource:0xFFFFFFFFFFFFFFFF:5,
  1.9s: ]
  1.9s: }

  1.9s: Expected:
  1.9s: {
  1.9s: "IllegalTypesEventSource" = 1 +- 0
  1.9s: }

  1.9s: Actual:
  1.9s: {
  1.9s: "IllegalTypesEventSource" = 2
  1.9s: "Microsoft-DotNETCore-EventPipe" = 1
  1.9s: "Microsoft-Windows-DotNETRuntimeRundown" = 3628
  1.9s: "Microsoft-Windows-DotNETRuntime" = 4
  1.9s: }
  1.9s: ==TEST FINISHED: FAILED!==

It seems that similar to #47625, the Microsoft-Windows-DotNETRuntime* events are not expected by the test

janvorli commented 3 years ago

cc: @dotnet/dotnet-diag

josalem commented 3 years ago

Interesting. As far as I'm aware, this isn't failing in CI or PR validation.

@janvorli did this start recently or has this been ongoing?

janvorli commented 3 years ago

@josalem this has been failing like this for quite some time, I don't know when it started, but it has been at least a month, maybe more.

janvorli commented 3 years ago

And it is failing on all of my machines, including the new mac M1 in both Rosetta 2 and arm64 mode.

hoyosjs commented 2 weeks ago

Closing in favor of https://github.com/dotnet/runtime/issues/80666