-
Notifications
You must be signed in to change notification settings - Fork 690
Revert to MTP and disable server capability as a workaround #8833
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
Conversation
@captainsafia Could you test this please in VS Code? Provide me with logs if it fails please. |
Let's try to make sure these are correct before merging:
|
@mitchdenny Can you check the CodeSpaces part please from this branch? |
Whatever is in this PR seems to work.
This looks good to me! |
Thanks for confirming @mitchdenny If you can also confirm whether current main works or not please? Because I'm suspecting that reverting MTP PR may still not work. |
Ping @danmoseley @captainsafia @radical. If you can confirm if this is working and get it merged please. Thanks! |
I haven't success with test discovery on the branch locally. Attempting to refresh in the test explorer produces the following logs and discovers no tests:
|
Some debugging reveals that the issue might've been the useTestingPlatformProtocol setting being set to We should validate that things work in VS Code after changing this setting and do one last sanity check on VS to ensure the dev inner loop on the repo is healthy. |
|
I kicked a new AzDO build after the last commit (the last commit shouldn't have any effect on AzDO though as it just changes a VS Code setting). Hopefully now that it's working for @captainsafia it should be ready to merge. I confirmed VS works for me as well. |
When I run a test project locally with Looking at just the log it is hard to figure out which test failed. With the existing setup I can grep for
|
Try with |
But shouldn't the .trx be generated here? |
No. Same with VSTest. In MTP, you need |
We should add that. It would be fine to do that in a follow up too. |
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.
LGTM! @captainsafia @danmoseley does this look good to merge?
I would like @captainsafia @mitchdenny to confirm that they're unblocked before merging |
@danmoseley From offline chat with @captainsafia this works for her. @mitchdenny confirmed this is working in #8833 (comment), but I pushed a change after. So might be worth to have a second confirmation it still works. |
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.
Green check for VS Code on macOS build/test/debug loop.
Interesting if I did a full refresh on the tests in test explorer they started showing up - but not the test project that I want. |
Can you double check if anything here is different from main? I wouldn't expect so. |
Nothing specific to that test project. |
I'm not really following. Is there something that works on main but broken with this PR? |
Unreliability of loading tests in test explorer is not new. I just created a fresh codespace and it worked this time. I have no idea why it works sometimes and not others. Are you relying of file change notifications to decide whether to scan an assembly? |
We rely on build. Once a project is built, we start discovery.
In that case, we should be fine proceeding with this PR right? |
Yes, we should merge this PR. However, I believe that there is a DevKit bug with test discovery that needs to be solve. Test discovery missing assemblies is enough of a common issue that there has to be a real issue here. |
## What broke? Template tests run `dotnet test --list-tests` to get the list of tests so they can be run on separate helix jobs. This run of `dotnet` failed the builds on azdo with: ``` You must install or update .NET to run this application. App: /mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire.Templates.Tests Architecture: x64 Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64) .NET location: /usr/lib/dotnet The following frameworks were found: 6.0.36 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App] Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=ubuntu.22.04-x64 /mnt/vss/_work/1/s/tests/Directory.Build.targets(39,5): error MSB3073: The command ""/mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire.Templates.Tests" --filter-no> ##[error]tests/Directory.Build.targets(39,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire> ``` ## Why did it break? [1] added a change where that `dotnet test` was run with `EnvironmentVariables="DOTNET_ROOT=$(DotNetRoot);DOTNET_ROOT_X86=$(DotNetRoot)x86"`, so it does not use the system dotnet. This helped on Azdo builds where we have older system dotnet (6.0x). Then [2] removed that change so the system dotnet on github actions could be used because a newer one was being installed. But this now broke the Azdo builds. To fix this set the DOTNET_ROOT on Azdo builds, so the correct dotnet is used. References: 1. commit 0af9e78 Author: Youssef Victor <[email protected]> Date: Sat Apr 19 14:34:54 2025 +0200 Revert to MTP and disable server capability as a workaround (dotnet#8833) 2. ``` commit 6ca2de9 Author: Ankit Jain <[email protected]> Date: Wed May 14 11:39:18 2025 -0400 [CI] Add PR validation on macOS (dotnet#9287) ```
## What broke? Template tests run `dotnet test --list-tests` to get the list of tests so they can be run on separate helix jobs. This run of `dotnet` failed the builds on azdo with: ``` You must install or update .NET to run this application. App: /mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire.Templates.Tests Architecture: x64 Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64) .NET location: /usr/lib/dotnet The following frameworks were found: 6.0.36 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App] Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=ubuntu.22.04-x64 /mnt/vss/_work/1/s/tests/Directory.Build.targets(39,5): error MSB3073: The command ""/mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire.Templates.Tests" --filter-no> ##[error]tests/Directory.Build.targets(39,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire> ``` ## Why did it break? [1] added a change where that `dotnet test` was run with `EnvironmentVariables="DOTNET_ROOT=$(DotNetRoot);DOTNET_ROOT_X86=$(DotNetRoot)x86"`, so it does not use the system dotnet. This helped on Azdo builds where we have older system dotnet (6.0x). Then [2] removed that change so the system dotnet on github actions could be used because a newer one was being installed. But this now broke the Azdo builds. To fix this set the DOTNET_ROOT on Azdo builds, so the correct dotnet is used. References: 1. commit 0af9e78 Author: Youssef Victor <[email protected]> Date: Sat Apr 19 14:34:54 2025 +0200 Revert to MTP and disable server capability as a workaround (#8833) 2. ``` commit 6ca2de9 Author: Ankit Jain <[email protected]> Date: Wed May 14 11:39:18 2025 -0400 [CI] Add PR validation on macOS (#9287) ```
* [CI] Fix azdo builds for `main` ## What broke? Template tests run `dotnet test --list-tests` to get the list of tests so they can be run on separate helix jobs. This run of `dotnet` failed the builds on azdo with: ``` You must install or update .NET to run this application. App: /mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire.Templates.Tests Architecture: x64 Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64) .NET location: /usr/lib/dotnet The following frameworks were found: 6.0.36 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App] Learn about framework resolution: https://aka.ms/dotnet/app-launch-failed To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=ubuntu.22.04-x64 /mnt/vss/_work/1/s/tests/Directory.Build.targets(39,5): error MSB3073: The command ""/mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire.Templates.Tests" --filter-no> ##[error]tests/Directory.Build.targets(39,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/mnt/vss/_work/1/s/artifacts/bin/Aspire.Templates.Tests/Release/net8.0/Aspire> ``` ## Why did it break? [1] added a change where that `dotnet test` was run with `EnvironmentVariables="DOTNET_ROOT=$(DotNetRoot);DOTNET_ROOT_X86=$(DotNetRoot)x86"`, so it does not use the system dotnet. This helped on Azdo builds where we have older system dotnet (6.0x). Then [2] removed that change so the system dotnet on github actions could be used because a newer one was being installed. But this now broke the Azdo builds. To fix this set the DOTNET_ROOT on Azdo builds, so the correct dotnet is used. References: 1. commit 0af9e78 Author: Youssef Victor <[email protected]> Date: Sat Apr 19 14:34:54 2025 +0200 Revert to MTP and disable server capability as a workaround (#8833) 2. ``` commit 6ca2de9 Author: Ankit Jain <[email protected]> Date: Wed May 14 11:39:18 2025 -0400 [CI] Add PR validation on macOS (#9287) ``` * Quarantine BrowserTokenAuthenticationTests.BrowserToken_LoginPage_Success_RedirectToResources Issue: #9345
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Checklist
<remarks />
and<code />
elements on your triple slash comments?breaking-change
template):doc-idea
template):