Repository navigation
Upgrade MTP and remove VSTest compat projects. - #15334
Conversation
Keep xUnit and Arcade extensions unchanged while raising the MTP minimum to include the UTF-8 JSON-RPC framing fix needed by native Clever Test Selection. Co-authored-by: Copilot <[email protected]>
Use the normal solution and original eight test modules, isolate native baselines, and pin the validated CTS tool/runtime. Keep the separate shadow pipelines and required regular CI unchanged. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
The MTP major-version upgrade and native CTS migration need end-to-end Windows/Linux validation, including compatibility with existing test extensions.
No open issues 🎉
What changed in this PR
Migrates Clever Test Selection (CTS) to native Microsoft.Testing.Platform hosts in the regular MSBuild solution, removing the VSTest compatibility workaround.
Changes:
- Raises the MTP minimum version to 2.5.1.
- Removes eight VSTest wrappers, their solution, and the parity check.
- Updates CTS scripts, pipelines, selectors, documentation, and baseline names for native execution.
| File | Description |
|---|---|
| src/Utilities.UnitTests/Microsoft.Build.Utilities.UnitTests.VSTest.csproj | Removes Utilities wrapper. |
| src/Tasks.UnitTests/Microsoft.Build.Tasks.UnitTests.VSTest.csproj | Removes Tasks wrapper. |
| src/StringTools.UnitTests/StringTools.UnitTests.VSTest.csproj | Removes StringTools wrapper. |
| src/MSBuild.UnitTests/Microsoft.Build.CommandLine.UnitTests.VSTest.csproj | Removes command-line wrapper. |
| src/Framework.UnitTests/Microsoft.Build.Framework.UnitTests.VSTest.csproj | Removes Framework wrapper. |
| src/Directory.Build.targets | Removes wrapper-specific handling. |
| src/BuildCheck.UnitTests/Microsoft.Build.BuildCheck.UnitTests.VSTest.csproj | Removes BuildCheck wrapper. |
| src/Build.UnitTests/Microsoft.Build.Engine.UnitTests.VSTest.csproj | Removes engine wrapper. |
| src/Build.OM.UnitTests/Microsoft.Build.Engine.OM.UnitTests.VSTest.csproj | Removes object-model wrapper. |
| scripts/cts/Run-Local.ps1 | Uses native CTS apply. |
| scripts/cts/README.md | Documents migration and limitations. |
| scripts/cts/projects.json | Points to normal test projects. |
| scripts/cts/METRICS.md | Updates baseline and coverage documentation. |
| scripts/cts/cts.config.json | Selects eight native test assemblies. |
| scripts/cts/Collect-Local.ps1 | Uses native CTS collection. |
| scripts/cts/Check-SlnxParity.ps1 | Removes obsolete parity check. |
| scripts/cts/_Common.ps1 | Separates native cache and pins installation guidance. |
| MSBuild.VSTest.slnx | Removes compatibility solution. |
| Directory.Build.props | Raises MTP minimum version. |
| azure-pipelines/cts-steps/collect-steps.yml | Migrates collection, build, runtimes, and artifacts. |
| azure-pipelines/cts-steps/apply-steps.yml | Migrates apply, build, runtimes, and downloads. |
| azure-pipelines/cts-collect.yml | Pins CTS and updates artifact comments. |
| azure-pipelines/cts-apply.yml | Pins CTS and changes baseline location. |
Review effort: Balanced
|
/review |
|
✅ Expert Code Review (command) completed successfully! Expert Code Review (command)Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Use the existing Arcade dotnet entry points without changing the apphost runtime environment. Pass either an explicit tool version or --prerelease, since the pinned SDK rejects their combination. Co-authored-by: Copilot <[email protected]>
Include Coordinator in local CTS project keys and document automatic Debug/net11 module discovery. Co-authored-by: Copilot <[email protected]>
Drop the VSTest projects from the repo. The VSTest pipeline was meant to solve the issue with how the messages were decoded/
This has been resolved here microsoft/testfx#10085 and as such MSBuild.VSTest.slnx is no longer necessary.
Removes MSBuild.VSTest.slnx and migrates the cts pipelines to use the regular solution.
Native CTS discovers Debug/net11.0/*.UnitTests.dll outputs by convention, including Coordinator; the local project registry includes all nine current modules.