-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enable test timeout dump collection #44730
Conversation
…et test for both full framework and not
…h the dotnet test format
This doesn't appear to work on non-windows: And any test that requires msbuildforwardingapp doesn't appear to work correctly within the dotnet test execution. Applying a fix for the path variable as it was adding quotes that weren't meant to be there. |
@dsplaisted some of the other failures doing this are because we end up getting the host from the environment but that's now testhost.exe: https://github.com/dotnet/sdk/blob/main/src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs#L99 Is there a better way to find dotnet.exe that we already have in our test infrastructure? |
illink (and few other tools in runtime repo) finds it via |
/azp run dotnet-sdk-public-ci,sdk-source-build,sdk-unified-build |
Azure Pipelines successfully started running 2 pipeline(s). |
will keep rerunning tests here to see if we can reproduce the arm64 macos test timeout while also looking for a solutino to the path problem. Using an env variable as suggested might work but I was looking for a standard option. |
… the environment block so we can see what else we can potentially use.
@dsplaisted let's chat on Monday about this. I got it working but in two places I had to change product code to fall back to env variables to find the dotnet host when not running. Not sure if we feel comfortable with that and would rather target 9.0.2xx since it's technically customer impacting now though I'm not sure how those scenarios would have worked before if they were returning the testhost. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcpopMSFT I think reliability-wise, this is the correct order. Note: DOTNET_HOST_PATH
holds the absolute path to executable (unlike DOTNET_ROOT
which points to directory)
src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs
Outdated
Show resolved
Hide resolved
src/Cli/Microsoft.DotNet.Cli.Utils/ForwardingAppImplementation.cs
Outdated
Show resolved
Hide resolved
For the Muxer logic itself, we probably want to stick to only using HOST_PATH when we detect the current process is not the muxer so as to reduce risk to the product.
Co-authored-by: Adeel Mujahid <[email protected]>
BTW, I checked the test results and locally and it looks like using dotnet test with xunit in helix will report the test work item as an additional failure. This was old behavior we used to have for the dotnet exec method of launching tests which we didn't like as it double counted failures and made the AzDO UI less user friendly. I'm going to ping the test folks to see if there is an option for this. |
Co-authored-by: Daniel Plaisted <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
unrelated failure in |
I do not know the history on why we launch our tests with dotnet-exec. We may hae to change the arguments to match the above commands that we use on netfx (and simplify to just use one).
I'm starting with this just to see if it'll work.
Also open question is where will the dump end up.