Skip to content

Upgrade MTP and remove VSTest compat projects. - #15334

Merged
JanProvaznik merged 6 commits into
dotnet:mainfrom
drognanar:mtp_cts
Oct 23, 2026
Merged

JanProvaznik merged 6 commits into
dotnet:mainfrom
drognanar:mtp_cts

Conversation

@drognanar

@drognanar drognanar commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

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.

drognanar and others added 2 commits October 20, 2026 11:29
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]>
@drognanar
drognanar requested a review from a team as a code owner October 20, 2026 11:01
Copilot AI balanced review requested due to automatic review settings October 20, 2026 11:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@JanProvaznik
JanProvaznik self-requested a review October 20, 2026 11:26
@JanProvaznik

Copy link
Copy Markdown
Member

/review

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ Expert Code Review (command) completed successfully!

Expert Code Review (command)

Outcome: reported_no_action

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.

Generated from Expert Code Review (command) · gpt56 · 1.2K AIC · ⌖ 0.503 AIC · ⊞ 25.0K · ◷

Generated by Expert Code Review (command) for #15334

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]>
Comment thread scripts/cts/cts.config.json Resolved
Include Coordinator in local CTS project keys and document automatic Debug/net11 module discovery.

Co-authored-by: Copilot <[email protected]>
@JanProvaznik
JanProvaznik enabled auto-merge (squash) October 23, 2026 09:04
@JanProvaznik
JanProvaznik merged commit f17256c into dotnet:main Oct 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants