runtime icon indicating copy to clipboard operation
runtime copied to clipboard

ProcessThreadTests.TestStartTimeProperty failure in CI

Open jkotas opened this issue 1 year ago • 3 comments

    System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty [FAIL]
      Assert.Single() Failure: The collection did not contain any matching items
      Expected:   (predicate expression)
      Collection: [System.Diagnostics.ProcessThread, System.Diagnostics.ProcessThread, System.Diagnostics.ProcessThread, System.Diagnostics.ProcessThread, System.Diagnostics.ProcessThread, ···]
      Stack Trace:
        /_/src/libraries/System.Diagnostics.Process/tests/ProcessThreadTests.cs(156,0): at System.Diagnostics.Tests.ProcessThreadTests.<>c__DisplayClass4_2.<TestStartTimeProperty>b__0()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2396,0): at System.Threading.Tasks.Task.InnerInvoke()
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2384,0): at System.Threading.Tasks.Task.<>c.<.cctor>b__292_0(Object obj)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(179,0): at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/ExecutionContext.cs(203,0): at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
        /_/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs(2342,0): at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
        --- End of stack trace from previous location ---
        /_/src/libraries/System.Diagnostics.Process/tests/ProcessThreadTests.cs(149,0): at System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty()
        --- End of stack trace from previous location ---

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=755830 Build error leg or test failing: System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty Pull request: https://github.com/dotnet/runtime/pull/105519

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": ["System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty [FAIL]","The collection did not contain any matching items"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=755830 Error message validated: [System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty [FAIL] The collection did not contain any matching items] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 7/26/2024 12:06:54 AM UTC

Report

Build Definition Test Pull Request
864960 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#108489
864578 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#109634
864259 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#109580
863562 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#109540
854864 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#108489
847880 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty
846570 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#108636
845889 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#108512
843118 dotnet/runtime System.Diagnostics.Tests.ProcessThreadTests.TestStartTimeProperty dotnet/runtime#108837

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 4 9

jkotas avatar Jul 26 '24 00:07 jkotas

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process See info in area-owners.md if you want to be subscribed.

https://github.com/dotnet/runtime/pull/104972 was an attempt to fix it but looks like ProcessInfo.Threads is not being Refresh()'d properly.

jozkee avatar Jul 29 '24 15:07 jozkee

I wonder why it fails only on Mono?

adamsitnik avatar Jul 29 '24 18:07 adamsitnik