runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Test Failure: System.Diagnostics.Tests.ProcessTests/LongProcessNamesAreSupported

Open AriNuer opened this issue 6 years ago • 6 comments

Test System.Diagnostics.Tests.ProcessTests/LongProcessNamesAreSupported has failed.

Error Message

{
  "ErrorMessage": "at System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported()",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Message :

Assert.Contains() Failure
Not found: (filter expression)
In value:  Process[] [System.Diagnostics.Process (sh), System.Diagnostics.Process (sh), System.Diagnostics.Process (bash), System.Diagnostics.Process (dotnet)]

Stack Trace :

at System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported() in /__w/1/s/src/System.Diagnostics.Process/tests/ProcessTests.cs:line 1883

Details: https://mc.dot.net/#/product/netcore/30/source/official~2Fdotnet~2Fcorefx~2Frefs~2Fheads~2Fmaster/type/test~2Ffunctional~2Fcli~2F/build/20190425.7/workItem/System.Diagnostics.Process.Tests/analysis/xunit/System.Diagnostics.Tests.ProcessTests~2FLongProcessNamesAreSupported

Known issue validation

Build: :mag_right: Result validation: :warning: Provided build not found. Provide a valid build in the "Build: :mag_right:" line. Validation performed at: 3/10/2025 10:46:51 PM UTC

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=973726 Error message validated: [[FAIL] System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported] Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 3/10/2025 10:56:44 PM UTC

Report

Summary

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

Known issue validation

Build: :mag_right: Result validation: :warning: Provided build not found. Provide a valid build in the "Build: :mag_right:" line. Validation performed at: 6/9/2025 4:42:50 PM UTC

Report

Summary

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

Known issue validation

Build: :mag_right: Result validation: :warning: Provided build not found. Provide a valid build in the "Build: :mag_right:" line. Validation performed at: 6/9/2025 4:43:59 PM UTC

Report

Summary

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

Report

Build Definition Test Pull Request
1213664 dotnet/runtime System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported dotnet/runtime#121664
1202908 dotnet/runtime System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported dotnet/runtime#121515

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 2

AriNuer avatar Apr 26 '19 02:04 AriNuer

Closing as part of https://github.com/dotnet/corefx/issues/37198

wtgodbe avatar May 02 '19 19:05 wtgodbe

Failed again here https://dev.azure.com/dnceng/public/_build/results?buildId=982443&view=logs&j=b9b7de4d-2126-5581-6453-1576f9aaac5f&t=db048d48-40e8-5399-9b14-d587763f33ff

log https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-f42ca9b897964959b9/System.Diagnostics.Process.Tests/console.006564c7.log?sv=2019-07-07&se=2021-02-27T14%3A16%3A51Z&sr=c&sp=rl&sig=NdWxmCLpMC65XXifBPdBuJjlZWau5zODq1eSLz3DZNQ%3D

  Discovering: System.Diagnostics.Process.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Diagnostics.Process.Tests (found 246 of 304 test cases)
  Starting:    System.Diagnostics.Process.Tests (parallel test collections = on, max threads = 2)
    System.Diagnostics.Tests.ProcessStartInfoTests.ShellExecute_Nano_Fails_Start [SKIP]
      Condition(s) not met: "IsWindowsNanoServer"
Linux
Linux
Linux
Linux
None of the following programs were installed on this machine: xdg-open,gnome-open,kfmclient.
    System.Diagnostics.Tests.ProcessTests.TestProcessRecycledPid [SKIP]
      Condition(s) not met: "IsStressModeEnabledAndRemoteExecutorSupported"
    System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported [FAIL]
      Assert.Contains() Failure
      Not found: (filter expression)
      In value:  Process[] [System.Diagnostics.Process (helix_docker_work.sh), System.Diagnostics.Process (execute.sh), System.Diagnostics.Process (bash), System.Diagnostics.Process (dotnet), System.Diagnostics.Process (123456789012345)]
      Stack Trace:
        /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs(2067,0): at System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported()
  Finished:    System.Diagnostics.Process.Tests
=== TEST EXECUTION SUMMARY ===
   System.Diagnostics.Process.Tests  Total: 307, Errors: 0, Failed: 1, Skipped: 2, Time: 10.385s
/root/helix/work/workitem

Anipik avatar Feb 08 '21 06:02 Anipik

Failed again in https://github.com/dotnet/runtime/pull/89196

    System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported [FAIL]
      Assert.Contains() Failure
      Not found: (filter expression)
      In value:  Process[] [System.Diagnostics.Process (helix_docker_work.sh), System.Diagnostics.Process (execute.sh), System.Diagnostics.Process (bash), System.Diagnostics.Process (dotnet), System.Diagnostics.Process (123456789012345)]
      Stack Trace:
        /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs(2298,0): at System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported()
        /_/src/mono/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.Mono.cs(22,0): at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs(57,0): at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

ericstj avatar Jul 19 '23 19:07 ericstj

Relevant test case: https://github.com/dotnet/runtime/blob/50ba405797f6cc57d57ff4d2503079b4c32acc7b/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs#L2289C45-L2298

Seems to me like that last process is the one, but it's name was truncated: System.Diagnostics.Process (123456789012345)

ericstj avatar Jul 19 '23 20:07 ericstj

Failed again in runtime-coreclr libraries-jitstress/20241211.2

  • net10.0-linux-Release-arm-jitstress1_tiered-(Debian.12.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:debian-12-helix-arm32v7
  Discovering: System.Diagnostics.Process.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Diagnostics.Process.Tests (found 262 of 324 test cases)
  Starting:    System.Diagnostics.Process.Tests (parallel test collections = on [2 threads], stop on fail = off)
    System.Diagnostics.Tests.ProcessStartInfoTests.ShellExecute_Nano_Fails_Start [SKIP]
      Condition(s) not met: "IsWindowsNanoServer"
Linux
Linux
Linux
Linux
    System.Diagnostics.Tests.ProcessTests.TestBasePriorityOnUnix [SKIP]
      Condition(s) not met: "IsPrivilegedProcess"
None of the following programs were installed on this machine: xdg-open,gnome-open,kfmclient.
    System.Diagnostics.Tests.ProcessTests.TestPriorityClassUnix [SKIP]
      Condition(s) not met: "IsPrivilegedProcess"
    System.Diagnostics.Tests.ProcessTests.TestProcessRecycledPid [SKIP]
      Condition(s) not met: "IsStressModeEnabledAndRemoteExecutorSupported"
    System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported [FAIL]
      Assert.Contains() Failure: Filter not matched in collection
      Collection: [System.Diagnostics.Process (helix_docker_work.sh), System.Diagnostics.Process (execute.sh), System.Diagnostics.Process (bash), System.Diagnostics.Process (dotnet), System.Diagnostics.Process (123456789012345)]
      Stack Trace:
        /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs(2300,0): at System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported()

JulieLeeMSFT avatar Dec 12 '24 18:12 JulieLeeMSFT

Failed in: runtime-coreclr libraries-jitstress 20241211.2

Failed tests:

net10.0-linux-Release-arm-jitstress1_tiered-(Debian.12.Arm32.Open)[email protected]/dotnet-buildtools/prereqs:debian-12-helix-arm32v7
    - System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported

Error message:

 Assert.Contains() Failure: Filter not matched in collection
Collection: [System.Diagnostics.Process (helix_docker_work.sh), System.Diagnostics.Process (execute.sh), System.Diagnostics.Process (bash), System.Diagnostics.Process (dotnet), System.Diagnostics.Process (123456789012345)]

Stack trace:

   at System.Diagnostics.Tests.ProcessTests.LongProcessNamesAreSupported() in /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs:line 2300
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) in /_/src/coreclr/System.Private.CoreLib/src/System/RuntimeHandles.cs:line 1128
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 48

v-wenyuxu avatar Dec 13 '24 01:12 v-wenyuxu