Skip to content

Restore only runners used by compatibility tests - #16619

Merged
Azat Mukhametshin (azat-msft) merged 6 commits into
microsoft:mainfrom
azat-msft:azat-msft-legacy-testplatform-cli-15-7-2
Nov 18, 2026
Merged

Azat Mukhametshin (azat-msft) merged 6 commits into
microsoft:mainfrom
azat-msft:azat-msft-legacy-testplatform-cli-15-7-2

Conversation

@azat-msft

@azat-msft Azat Mukhametshin (azat-msft) commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

This is a draft

Description

Compatibility setup restored runner packages for every testhost version, including unused Microsoft.TestPlatform.CLI 15.9.2 flagged by GHSA-5crp-9r3c-p9vr and GHSA-8rfx-6mr3-5jh3.

Derive runner restores from the versions selected by CompatibilityMatrixAttribute. This skips unused Microsoft.TestPlatform and .CLI packages without maintaining an exclusion range. Keep all testhost and MSTest versions, including Microsoft.NET.Test.Sdk 15.9.2 and MSTest 1.4.0, and all test rows unchanged.

Related issue

Security report for microsoft.testplatform.cli in test/TestAssets/Tools/Tools.csproj.

  • I have ensured that there is a previously discussed and approved issue.

Copilot AI balanced review requested due to automatic review settings October 30, 2026 13:42

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.

🟡 Changes recommended

Leading spaces before MostDownloaded produce an invalid XPath, causing VSTestConsole compatibility data generation to fail instead of running the remaining cases.

1 open issue
What changed in this PR

Removes the LegacyStable tier from VSTest’s compatibility matrix, stopping the associated 15.9.2 platform package restores and intentionally dropping coverage for the oldest SDK and MSTest versions.

Changes:

  • Removes LegacyStable version properties and compatibility restore entries.
  • Removes LegacyStable from the shared matrix lists.
  • Updates a comment’s example asset path to use PreviousStable.
File Description
test/​Microsoft.TestPlatform.TestUtilities/​IntegrationTestEnvironment.cs Updates the example path in a comment; no behavior change.
test/​Microsoft.TestPlatform.TestUtilities/​IntegrationTestBuild.cs Removes LegacyStable from platform and MSTest restore lists.
test/​Microsoft.TestPlatform.TestUtilities/​AcceptanceTestBase.cs Removes LegacyStable from compatibility matrix constants.
eng/​Versions.props Removes the MSTest 1.4.0 and VSTest 15.9.2 version properties.

Review effort: Balanced

@azat-msft Azat Mukhametshin (azat-msft) changed the title Remove LegacyStable (15.9.2) from the compatibility matrix Move LegacyStable version from 15.9.2 to 17.8.0 Oct 30, 2026
Copilot AI balanced review requested due to automatic review settings October 30, 2026 15:23

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.

🟢 Approval recommended

No active review issues were identified for the legacy VSTest baseline update to 17.8.0.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 9, 2026 08:33
@azat-msft Azat Mukhametshin (azat-msft) changed the title Move LegacyStable version from 15.9.2 to 17.8.0 Skip vulnerable CLI packages in compatibility test setup Nov 9, 2026

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.

🟢 Approval recommended

No active review issues remain for the CLI package restore changes.

No open issues 🎉

Review effort: Balanced

@azat-msft
Azat Mukhametshin (azat-msft) marked this pull request as ready for review November 9, 2026 09:23
Copilot AI balanced review requested due to automatic review settings November 9, 2026 10:55
@azat-msft Azat Mukhametshin (azat-msft) changed the title Skip vulnerable CLI packages in compatibility test setup Restore only runners used by compatibility tests Nov 9, 2026

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.

🟡 Changes recommended

The use of Enumerable.ToHashSet breaks compilation for the project's net481 target because the API is unavailable and no replacement extension exists.

1 open issue

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 17, 2026 15:13

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.

🟢 Approval recommended

No active review issues are reported for the change that limits runner-package restores to compatibility scenario selections.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@azat-msft
Azat Mukhametshin (azat-msft) merged commit 170ed84 into microsoft:main Nov 18, 2026
34 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.

3 participants