dotnet / runtime

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

Test failure System.Diagnostics.Tests.ProviderMetadataTests.ProviderNameTests(noProviderName: True) #52426

Closed VincentBu closed 2 years ago

VincentBu commented 3 years ago

Run: runtime 20210506.92

Failed test:

net6.0-windows-Release-x86-CoreCLR_release-Windows.7.Amd64.Open
 -System.Diagnostics.Tests.ProviderMetadataTests.ProviderNameTests(noProviderName: True)

Error message:

System.Diagnostics.Eventing.Reader.EventLogException : The specified publisher name is invalid.

Stack trace
   at System.Diagnostics.Eventing.Reader.EventLogException.Throw(Int32 errorCode) in /_/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/EventLogException.cs:line 46
   at System.Diagnostics.Eventing.Reader.ProviderMetadata..ctor(String providerName, EventLogSession session, CultureInfo targetCultureInfo, String logFilePath) in /_/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/ProviderMetadata.cs:line 72
   at System.Diagnostics.Tests.ProviderMetadataTests.ProviderNameTests(Boolean noProviderName) in /_/src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/ProviderMetadataTests.cs:line 35
ghost commented 3 years ago

Tagging subscribers to this area: @tommcdon, @krwq See info in area-owners.md if you want to be subscribed.

Issue Details
Run: [runtime 20210506.92](https://dev.azure.com/dnceng/public/_build/results?buildId=1126350&view=ms.vss-test-web.build-test-results-tab&runId=34238916&resultId=121865&paneView=debug) Failed test: ``` net6.0-windows-Release-x86-CoreCLR_release-Windows.7.Amd64.Open -System.Diagnostics.Tests.ProviderMetadataTests.ProviderNameTests(noProviderName: True) ``` **Error message:** ``` System.Diagnostics.Eventing.Reader.EventLogException : The specified publisher name is invalid. Stack trace at System.Diagnostics.Eventing.Reader.EventLogException.Throw(Int32 errorCode) in /_/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/EventLogException.cs:line 46 at System.Diagnostics.Eventing.Reader.ProviderMetadata..ctor(String providerName, EventLogSession session, CultureInfo targetCultureInfo, String logFilePath) in /_/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/ProviderMetadata.cs:line 72 at System.Diagnostics.Tests.ProviderMetadataTests.ProviderNameTests(Boolean noProviderName) in /_/src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/ProviderMetadataTests.cs:line 35 ```
Author: VincentBu
Assignees: -
Labels: `arch-x86`, `area-System.Diagnostics`, `os-windows`
Milestone: -
VincentBu commented 3 years ago

Failed again in runtime-coreclr libraries-jitstress2-jitstressregs 20210724.1

Failed tests:

net6.0-windows-Release-x86-CoreCLR_checked-jitstress2_jitstressregs2-Windows.10.Amd64.Open
    System.Diagnostics.Tests.EventLogConfigurationTests.EventLogConfiguration_CheckProperties_RemainsTheSame
    System.Diagnostics.Tests.ProviderMetadataTests.ProviderNameTests

Error Message:

System.Diagnostics.Eventing.Reader.EventLogException : The RPC server is unavailable.

Stack trace
   at System.Diagnostics.Eventing.Reader.EventLogException.Throw(Int32 errorCode) in /_/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/EventLogException.cs:line 46
   at System.Diagnostics.Eventing.Reader.EventLogConfiguration..ctor(String logName, EventLogSession session) in /_/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/Reader/EventLogConfiguration.cs:line 46
   at System.Diagnostics.Tests.EventLogConfigurationTests.EventLogConfiguration_CheckProperties_RemainsTheSame(String logName) in /_/src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/EventLogConfigurationTests.cs:line 33
danmoseley commented 2 years ago

Test isn't disabled, and hasn't failed for a while. @dotnet/area-system-diagnostics-eventlog such issue can be closed.

Execute: Web | Desktop | Web (Lens) | Desktop (SAW)

https://engsrvprod.kusto.windows.net/engineeringdata

TestResults
| where Result == "Fail"
| where Method == "ProviderNameTests"
| join kind=inner Jobs on JobId
| where Queued > ago(30d)
| project
  QueueName, Queued,
  Type, Method, Message,
  PhaseName = tostring(parse_json(Properties)["System.PhaseName"]),
  Pipeline = tostring(parse_json(Properties).DefinitionName),
  Source,
  Build = tostring(parse_json(Properties).BuildNumber)
| order by Queued desc