Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can_Run_App_With_StatiHost installer test failure in CI #42101

Closed
janvorli opened this issue Sep 11, 2020 · 15 comments
Closed

Can_Run_App_With_StatiHost installer test failure in CI #42101

janvorli opened this issue Sep 11, 2020 · 15 comments
Labels
area-Host test-bug Problem in test source code (most likely)
Milestone

Comments

@janvorli
Copy link
Member

janvorli commented Sep 11, 2020

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
@ghost
Copy link

ghost commented Sep 11, 2020

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

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Sep 11, 2020
@agocke agocke added test-bug Problem in test source code (most likely) and removed untriaged New issue has not been triaged by the area owner labels Sep 14, 2020
@agocke agocke added this to the Future milestone Sep 14, 2020
@danmoseley danmoseley added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Oct 14, 2020
@danmoseley
Copy link
Member

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

@danmoseley
Copy link
Member

@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?

@danmoseley
Copy link
Member

Also note this was Installer-coreclr-Linux_musl_x64-Release

@danmoseley
Copy link
Member

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

@jaredpar
Copy link
Member

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

@agocke agocke modified the milestones: Future, 6.0.0 Oct 14, 2020
@danmoseley
Copy link
Member

OK, that's a good rule of thumb..

@am11
Copy link
Member

am11 commented Nov 14, 2020

Happened again in #43804.

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

@danmoseley
Copy link
Member

@agocke could someone maybe take a look?

@v-haren
Copy link

v-haren commented Dec 18, 2020

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

@hoyosjs
Copy link
Member

hoyosjs commented Mar 15, 2021

Removing blocking tag due to low incidence

cc: @agocke

@hoyosjs hoyosjs removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Mar 15, 2021
@VincentBu
Copy link
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

@danmoseley
Copy link
Member

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

@elinor-fung
Copy link
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.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Host test-bug Problem in test source code (most likely)
Projects
Archived in project
Development

No branches or pull requests

10 participants