Skip to content

Update matrix#15477

Draft
nohwnd wants to merge 8 commits intomicrosoft:mainfrom
nohwnd:update-matrix
Draft

Update matrix#15477
nohwnd wants to merge 8 commits intomicrosoft:mainfrom
nohwnd:update-matrix

Conversation

@nohwnd
Copy link
Member

@nohwnd nohwnd commented Mar 10, 2026

Description

Update versions. Look at how to do this automatically later.

Related issue

Fix #15475

Copilot AI review requested due to automatic review settings March 10, 2026 21:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the test/compatibility matrix by bumping framework/tooling versions and adjusting MSTest execution settings in test assets.

Changes:

  • Updated NUnit and MSTest version properties used by compatibility/test-asset builds.
  • Updated VSTest console version properties used for compatibility testing.
  • Added MSTest assembly-level parallelization configuration to two test asset projects.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
test/TestAssets/MSTestProject2/UnitTest1.cs Adds assembly-level MSTest parallelization configuration to influence test execution behavior.
test/TestAssets/MSTestProject1/UnitTest1.cs Adds assembly-level MSTest parallelization configuration to influence test execution behavior.
eng/Versions.props Bumps NUnit/MSTest/VSTest versions used by build/test compatibility matrices.

nohwnd and others added 2 commits March 10, 2026 22:57
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 11, 2026 07:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment on lines +6 to +7
// Class level just because we want the tests to run in predictable order.
[assembly: Parallelize(Scope = ExecutionScope.ClassLevel, Workers = 0)]
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

Workers = 0 in MSTest does not disable parallelization (it typically means “use default worker count”), which conflicts with the comment about predictable order and can still lead to non-deterministic execution. If the goal is deterministic execution, use [assembly: DoNotParallelize] or set Workers = 1 (and update the comment accordingly)."

Suggested change
// Class level just because we want the tests to run in predictable order.
[assembly: Parallelize(Scope = ExecutionScope.ClassLevel, Workers = 0)]
// Use a single worker so tests run in a predictable order.
[assembly: Parallelize(Scope = ExecutionScope.ClassLevel, Workers = 1)]

Copilot uses AI. Check for mistakes.
@nohwnd
Copy link
Member Author

nohwnd commented Mar 11, 2026

needs #15480 where we are using only recent vstest.console to run compatibility checks on vstest.console, this avoids needing the old runtimes which we remove here.

(testhost does not need the runtime, because we pass runtime.config.json of the project, if someone is using netcoreapp2.1 that is their fault and they should update from this unsupported version of .NET)

@nohwnd
Copy link
Member Author

nohwnd commented Mar 11, 2026

The other errors I don't know yet. Need to merge stuff first, too many moving parts right now.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 12, 2026 07:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

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.

Update versions of tested dependencies

2 participants