Skip to content

Can_Run_App_With_StatiHost installer test failure in CI #42101

Description

@janvorli

In my PR, the test has failed with the following stack trace:

at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Microsoft.DotNet.Cli.Build.Framework.Command.Start() in /_/src/installer/tests/TestUtils/Command.cs:line 199
   at Microsoft.DotNet.Cli.Build.Framework.Command.Execute(Boolean fExpectedToFail) in /_/src/installer/tests/TestUtils/Command.cs:line 239
   at Microsoft.DotNet.Cli.Build.Framework.Command.Execute() in /_/src/installer/tests/TestUtils/Command.cs:line 171
   at AppHost.Bundle.Tests.StaticHost.Can_Run_App_With_StatiHost() in /_/src/installer/tests/Microsoft.NET.HostModel.Tests/AppHost.Bundle.Tests/StaticHost.cs:line 47

It looks similar to #35068

Runfo Tracking Issue: Runtime test Can_Run_App_With_StatiHost

Build Definition Kind Run Name

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 0 0

Activity

  1. added
    test-bugProblem in test source code (most likely)
    and removed
    untriagedNew issue has not been triaged by the area owner
    on Sep 14, 2020
  2. added this to the Future milestone on Sep 14, 2020
  3. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Oct 14, 2020
  4. danmoseley commented on Oct 14, 2020

    @danmoseley
    Contributor

    I have what may be the same issue, with an extra clue - @vitek-karas does this help?

    System.ComponentModel.Win32Exception : Text file busy
    
    
    Stack trace
       at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
       at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at Microsoft.DotNet.Cli.Build.Framework.Command.Start() in /_/src/installer/tests/TestUtils/Command.cs:line 199
       at Microsoft.DotNet.Cli.Build.Framework.Command.Execute(Boolean fExpectedToFail) in /_/src/installer/tests/TestUtils/Command.cs:line 239
       at Microsoft.DotNet.Cli.Build.Framework.Command.Execute() in /_/src/installer/tests/TestUtils/Command.cs:line 171
       at AppHost.Bundle.Tests.StaticHost.Can_Run_App_With_StatiHost() in /_/src/installer/tests/Microsoft.NET.HostModel.Tests/AppHost.Bundle.Tests/StaticHost.cs:line 27
    

    This is in 5.0 branch
    https://dev.azure.com/dnceng/public/_build/results?buildId=852073&view=ms.vss-test-web.build-test-results-tab&runId=27196228&paneView=debug&resultId=100011

  5. danmoseley commented on Oct 14, 2020

    @danmoseley
    Contributor

    @jaredpar if this is rare, but did break a CI job, is it appropriate to set 'blocking-clean-ci' or is that just for more common issues? Also, how to notify runfo about it so that it autolinks when it happens again?

  6. danmoseley commented on Oct 14, 2020

    @danmoseley
    Contributor

    Also note this was Installer-coreclr-Linux_musl_x64-Release

  7. danmoseley commented on Oct 14, 2020

    @danmoseley
    Contributor

    This message apparently means that we are trying to execute an executable while it is being modified - apparently in its text section.

  8. jaredpar commented on Oct 14, 2020

    @jaredpar
    Member

    This is failing about once a day right now so blocking clean CI is appropriate here.

  9. modified the milestones: Future, 6.0.0 on Oct 14, 2020
  10. 1 remaining item

  11. am11 commented on Nov 14, 2020

    @am11
    Member

    Happened again in #43804.

    I think #44657, ##43917 and #42101 are stemming from same underlying problem.

  12. danmoseley commented on Nov 14, 2020

    @danmoseley
    Contributor

    @agocke could someone maybe take a look?

  13. v-haren commented on Dec 18, 2020

    @v-haren

    failed again in job: runtime 20201217.40

    failed test: Can_Run_App_With_StatiHost

    Installer-coreclr-Linux_x64-Release

    Error message

    System.ComponentModel.Win32Exception : Text file busy
    
    
    Stack trace
       at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
       at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at Microsoft.DotNet.Cli.Build.Framework.Command.Start() in /_/src/installer/tests/TestUtils/Command.cs:line 199
       at Microsoft.DotNet.Cli.Build.Framework.Command.Execute(Boolean fExpectedToFail) in /_/src/installer/tests/TestUtils/Command.cs:line 239
       at Microsoft.DotNet.Cli.Build.Framework.Command.Execute() in /_/src/installer/tests/TestUtils/Command.cs:line 171
       at AppHost.Bundle.Tests.StaticHost.Can_Run_App_With_StatiHost() in /_/src/installer/tests/Microsoft.NET.HostModel.Tests/AppHost.Bundle.Tests/StaticHost.cs:line 27
    
  14. hoyosjs commented on Mar 15, 2021

    @hoyosjs
    Member

    Removing blocking tag due to low incidence

    cc: @agocke

  15. removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Mar 15, 2021
  16. VincentBu commented on Jun 2, 2021

    @VincentBu
    Contributor

    Failed again in runtime 20210601.76

    Failed test:

    Installer-coreclr-Linux_musl_x64-Release
    
    - Can_Run_App_With_StatiHost
    
    

    Error message:

    System.ComponentModel.Win32Exception : Text file busy
    
    
    Stack trace
       at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
       at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at Microsoft.DotNet.Cli.Build.Framework.Command.Start() in /_/src/installer/tests/TestUtils/Command.cs:line 199
       at Microsoft.DotNet.Cli.Build.Framework.Command.Execute(Boolean fExpectedToFail) in /_/src/installer/tests/TestUtils/Command.cs:line 239
       at Microsoft.DotNet.Cli.Build.Framework.Command.Execute() in /_/src/installer/tests/TestUtils/Command.cs:line 171
       at AppHost.Bundle.Tests.StaticHost.Can_Run_App_With_StatiHost() in /_/src/installer/tests/Microsoft.NET.HostModel.Tests/AppHost.Bundle.Tests/StaticHost.cs:line 27
    
  17. danmoseley commented on Jun 2, 2021

    @danmoseley
    Contributor

    Happening every 3rd day for this test, but IIRC there were other tests with this issue.

  18. modified the milestones: 6.0.0, 7.0.0 on Aug 9, 2021
  19. modified the milestones: 7.0.0, Future on Jul 16, 2022
  20. elinor-fung commented on Aug 20, 2024

    @elinor-fung
    Member

    We've fundamentally changed how single-file tests work over the past year or two (in a way that should help with reliability). Closing this - we'll track any new failures separately.

  21. locked and limited conversation to collaborators on Sep 20, 2024
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

    area-Hosttest-bugProblem in test source code (most likely)

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions