Skip to content

Test failure : System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName #13757

Closed

Description

@AriNuer

Frequency:

  • 4/1-7/22 -- 23 hits (2x official runs, 21x PR) ... average: 1-2 hits per week
let failedTests = (testNameSubstring : string, methodName : string, includePR : bool, messageSubstr: string, includePassedOnRerun : bool) {
cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
    | where TestName contains testNameSubstring
    | where includePassedOnRerun or (Outcome == 'Failed')
    | extend startOfTestName = indexof_regex(TestName, @"[^.]+$")
    | extend Method = substring(TestName, startOfTestName)
    | extend Type = substring(TestName, 0, startOfTestName - 1)
    | project-away startOfTestName
    | where (methodName == '') or (Method == methodName)
    | where Message contains messageSubstr
    | distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
    | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
        | where ((Branch == 'refs/heads/main') or (Branch == 'refs/heads/master') or (includePR and (Source startswith "pr/")))
        | where Type startswith "test/functional/cli/"
            and not(Properties contains "runtime-staging")
        | summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName) by JobId
        | project-rename JobType = Type) on JobId
    | extend PropertiesJson = parse_json(Properties)
    | extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
    | extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
    | extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
    | extend Architecture = PropertiesJson.architecture
    | extend Scenario = iif(isempty(PropertiesJson.scenario), "--", PropertiesJson.scenario)
    //| extend DefinitionName = PropertiesJson.DefinitionName
    | project-away PropertiesJson
};
failedTests('', 'ProcessNameMatchesScriptName', true, 'Assert', true);

Job:
coreclr-corefx-jitstress:20191106.1

Details:
https://helix.dot.net/api/2019-06-17/jobs/dc1d0990-ba17-4d58-bba6-42bfb71b843b/workitems/System.Diagnostics.Process.Tests/console

OS & Arch:
Linux x64

Mode:
export COMPlus_TieredCompilation=0
export COMPlus_DbgEnableMiniDump=1
export COMPlus_DbgMiniDumpName=$HELIX_DUMP_FOLDER/coredump.%d.dmp
export COMPlus_JitStress=2

Log:

~/work/dc1d0990-ba17-4d58-bba6-42bfb71b843b/Work/0df10b6f-33b8-45e5-93e8-6b9124ec38b0/Exec ~/work/dc1d0990-ba17-4d58-bba6-42bfb71b843b/Work/0df10b6f-33b8-45e5-93e8-6b9124ec38b0/Exec
  Discovering: System.Diagnostics.Process.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Diagnostics.Process.Tests (found 214 of 272 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.ProcessNameMatchesScriptName [FAIL]
      Assert.Equal() Failure
                ↓ (pos 0)
      Expected: /bin/sh\0/tmp/ProcessTests_uvir03tc.k5r/Pr···
      Actual:   
                ↑ (pos 0)
      Stack Trace:
        /_/src/System.Diagnostics.Process/tests/ProcessTests.Unix.cs(180,0): at System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName()
    System.Diagnostics.Tests.ProcessTests.TestProcessRecycledPid [SKIP]
      Condition(s) not met: "IsStressModeEnabled"
  Finished:    System.Diagnostics.Process.Tests
=== TEST EXECUTION SUMMARY ===
   System.Diagnostics.Process.Tests  Total: 268, Errors: 0, Failed: 1, Skipped: 2, Time: 57.208s
~/work/dc1d0990-ba17-4d58-bba6-42bfb71b843b/Work/0df10b6f-33b8-45e5-93e8-6b9124ec38b0/Exec
----- end Thu Nov 7 07:57:14 UTC 2019 ----- exit code 1 ----------------------------------------------------------

Activity

  1. transferred this issue fromdotnet/coreclron Jan 31, 2020
  2. added this to the 5.0 milestone on Jan 31, 2020
  3. ViktorHofer commented on Feb 5, 2020

    @ViktorHofer
    Member

    Failed again in https://dev.azure.com/dnceng/public/_build/results?buildId=508452&view=logs&jobId=79ac38c7-786b-5db2-e2cf-2984d488b711.

    Configuration: netcoreapp5.0-Linux-Debug-x64-CoreCLR_checked-Ubuntu.1804.Amd64.Open

    Assert.Equal() Failure\n ↓ (pos 0)\nExpected: /bin/sh\0/tmp/ProcessTests_rgk4di2i.ycq/Pr···\nActual: \n ↑ (pos 0)
    
       at System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName() in /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs:line 177
    
  4. added
    untriaged
    on Feb 26, 2020
  5. modified the milestones: 5.0.0, Future on Jun 25, 2020
  6. removed
    untriaged
    on Jul 6, 2020
  7. added
    test-bug
    on Dec 16, 2020
  8. self-assigned this
    on Dec 18, 2020
  9. ghost added
    in-pr
    on Dec 21, 2020
  10. ghost removed
    in-pr
    on May 12, 2021
  11. ViktorHofer commented on Aug 30, 2021

    @ViktorHofer
    Member

    Failed again in https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-58357-merge-81d9e3ef9eac4db793/System.Diagnostics.Process.Tests/1/console.2c15c039.log?sv=2019-07-07&se=2021-09-19T11%3A46%3A46Z&sr=c&sp=rl&sig=ArtgsaoLEKX4rXmEVe2yR8GjkEMWcmL82%2ByuioXfTwU%3D

    Configuration: net6.0-Linux-Debug-x64-CoreCLR_release-(Fedora.34.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-34-helix-20210728124700-4f64125

      Discovering: System.Diagnostics.Process.Tests (method display = ClassAndMethod, method display options = None)
      Discovered:  System.Diagnostics.Process.Tests (found 255 of 312 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.ProcessNameMatchesScriptName [FAIL]
          Assert.Equal() Failure
                    ↓ (pos 0)
          Expected: /bin/sh\0/tmp/ProcessTests_ca4tz2bk.sol/Pr···
          Actual:   
                    ↑ (pos 0)
          Stack Trace:
            /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs(176,0): at System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName()
        System.Diagnostics.Tests.ProcessTests.TestProcessRecycledPid [SKIP]
          Condition(s) not met: "IsStressModeEnabledAndRemoteExecutorSupported"
      Finished:    System.Diagnostics.Process.Tests
    === TEST EXECUTION SUMMARY ===
       System.Diagnostics.Process.Tests  Total: 316, Errors: 0, Failed: 1, Skipped: 2, Time: 17.844s
    
  12. adamsitnik commented on Mar 28, 2022

    @adamsitnik
    Member

    Failed again, from console logs:

    Console log: 'System.Diagnostics.Process.Tests' from job 5ea0f2fd-833d-4508-8e58-b565b6a4f16d workitem ee26e64c-d3e5-4cef-a3de-c90c6a5816d1 (redhat.7.amd64.open.rt) executed on machine a000ZXN
    + ./RunTests.sh --runtime-path /mnt/work/B0FD097F/p
    ----- start Fri Mar 25 21:06:19 UTC 2022 =============== To repro directly: =====================================================
    pushd .
    /mnt/work/B0FD097F/p/dotnet exec --runtimeconfig System.Diagnostics.Process.Tests.runtimeconfig.json --depsfile System.Diagnostics.Process.Tests.deps.json xunit.console.dll System.Diagnostics.Process.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
    popd
    ===========================================================================================================
    /mnt/work/B0FD097F/w/C1C10A38/e /mnt/work/B0FD097F/w/C1C10A38/e
      Discovering: System.Diagnostics.Process.Tests (method display = ClassAndMethod, method display options = None)
      Discovered:  System.Diagnostics.Process.Tests (found 257 of 314 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
    xdg-open: file '/nosuchfile' does not exist
        System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName [FAIL]
          Assert.Equal() Failure
                    ↓ (pos 0)
          Expected: /bin/sh\0/tmp/ProcessTests_dcap2jdw.jl4/Pr···
          Actual:   
                    ↑ (pos 0)
          Stack Trace:
            /_/src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs(177,0): at System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName()
        System.Diagnostics.Tests.ProcessTests.TestProcessRecycledPid [SKIP]
    
  13. 18 remaining items

  14. removed
    blocking-clean-ci
    on Jul 22, 2022
  15. modified the milestones: 7.0.0, 8.0.0 on Aug 9, 2022
  16. VSadov commented on Aug 14, 2022

    @VSadov
    Member

    Failed in #73912 in NativeAOT run on arm64

    [FAIL] System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName
    Assert.Equal() Failure
              ↓ (pos 0)
    Expected: /bin/sh\0/tmp/#ProcessTests_macg3lw5.q45/P···
    Actual:   
              ↑ (pos 0)
       at System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName() + 0x3bc
       at System.Diagnostics.Process!<BaseAddress>+0x105aad4
       at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xd8
    
  17. VSadov commented on Aug 14, 2022

    @VSadov
    Member

    And here - failed again:

    https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-73912-merge-6a50d560c07e4c518e/System.Diagnostics.Process.Tests/1/console.ee9855dd.log?helixlogtype=result

    [FAIL] System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName
    Assert.Equal() Failure
              ↓ (pos 0)
    Expected: /bin/sh\0/tmp/#ProcessTests_x5rcuvjz.evg/P···
    Actual:   
              ↑ (pos 0)
       at System.Diagnostics.Tests.ProcessTests.ProcessNameMatchesScriptName() + 0x3bc
       at System.Diagnostics.Process!<BaseAddress>+0x105aa34
       at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xd8
    

    This is on (ubuntu.1804.armarch.open) using docker image mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8-20220427172132-97d8652

  18. danmoseley commented on Aug 14, 2022

    @danmoseley
    Contributor

    Is it happening at all on Ubuntu 2204 (newer kernel)?

  19. added
    disabled-test
    on Aug 15, 2022
  20. MichalStrehovsky commented on Aug 15, 2022

    @MichalStrehovsky
    Member

    It's possible this fails a lot more often with NativeAOT. I've seen it fail in several of my PR's as well. Or we just send it to a different Helix queue for NativeAOT testing. But with NativeAOT it reproes in a significant percentage of runs. I would estimate one out of five runs.

  21. modified the milestones: 8.0.0, Future on Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-x64area-System.Diagnostics.Processdisabled-testos-linuxtest-bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions