dotnet / diagnostics

This repository contains the source code for various .NET Core runtime diagnostic tools and documents.
MIT License
1.18k stars 354 forks source link

[Test] TestLogsUseAppFiltersAndFilterSpecs fails with `Assert.Equal() Failure` #4718

Closed mdh1418 closed 2 months ago

mdh1418 commented 3 months ago

TestLogsAllCategoriesDefaultLevel also fails in the same way.

Re-enable thes tests after it is fixed.

Configuration: Ubuntu x64 Release + MacOS x64 Release

Error Message: Assert.Equal() Failure: Strings differ\n ↓ (pos 0)\nExpected: "Another message"\nActual: "Warning message."\n ↑ (pos 0)

Stack Trace:

   at Microsoft.Diagnostics.Monitoring.EventPipe.UnitTests.EventLogsPipelineUnitTests.ValidateLoggerRemoteCategoryWarningMessage(StreamReader reader) in /Users/runner/work/1/s/src/tests/Microsoft.Diagnostics.Monitoring.EventPipe/EventLogsPipelineUnitTests.cs:line 286
   at Microsoft.Diagnostics.Monitoring.EventPipe.UnitTests.EventLogsPipelineUnitTests.TestLogsAllCategoriesDefaultLevel(TestConfiguration config) in /Users/runner/work/1/s/src/tests/Microsoft.Diagnostics.Monitoring.EventPipe/EventLogsPipelineUnitTests.cs:line 88
--- End of stack trace from previous location ---

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=699837&view=ms.vss-test-web.build-test-results-tab&runId=17416832&paneView=debug&resultId=100157

mdh1418 commented 3 months ago

Seems like https://github.com/dotnet/diagnostics/issues/2541 has extended to non-Windows platforms

elinor-fung commented 3 months ago

Also affecting TestLogsAllCategoriesDefaultLevel on Ubuntu and macOS:

https://github.com/dotnet/diagnostics/pull/4754 - ubuntu 22.04 x64 https://github.com/dotnet/diagnostics/pull/4751 - macOS x64

tommcdon commented 2 months ago

Closing this one as a duplicate to https://github.com/dotnet/diagnostics/issues/2541