Skip to content

Run Stryker across all unit test projects - #11223

Merged
Amaury Levé (Evangelink) merged 7 commits into
mainfrom
dev/amauryleve/update-stryker-unit-tests
Sep 12, 2026
Merged

Amaury Levé (Evangelink) merged 7 commits into
mainfrom
dev/amauryleve/update-stryker-unit-tests

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Why

Mutation testing currently covers only the ServerMode client sources. Stryker.NET 5 adds solution-mode support, which lets the repository exercise the production projects covered by the full unit-test suite in one coordinated run.

What changed

  • Upgrade the pinned dotnet-stryker tool from 4.16.0 to 5.0.0.
  • Add a dedicated MutationTesting.slnx containing all 13 unit-test projects and their eligible production dependencies.
  • Move the Stryker configuration to the repository root and exclude generated source files from mutation.
  • Configure mutation builds to use net8.0 test hosts, skip the unsupported UWP target, and preserve the required strong-name identities.
  • Update the daily mutation workflow, developer documentation, and mutation-test-improver instructions for solution-wide reports.

Validation

  • dotnet tool restore --no-cache: Stryker.NET 5.0.0 restored successfully from repository feeds.
  • Bounded Stryker initialization: discovered 23 mutation targets, built the solution, and initialized 4,727 tests.
  • gh aw compile mutation-test-improver --strict: passed.
  • Action pin audit: passed.
  • .\build.cmd -binaryLog: passed with 0 warnings and 0 errors.

The complete repository-wide mutant execution was not run locally because of its cost; the scheduled workflow will produce the full report.

Upgrade to Stryker.NET 5 solution mode and cover the production projects exercised by all unit test projects.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 12, 2026 13:52
@Evangelink Amaury Levé (Evangelink) added the state/needs-review Awaiting review from the team. label Sep 12, 2026
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Expert test review — PR #11223

No new or modified test methods were identified in the changed regions of this PR. The changed files are all build/tooling infrastructure (Stryker mutation-testing configuration, workflow files, solution filter, docs) — no .cs test source files under test/ were modified. Nothing to review.

Re-run with /review-tests.

🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 63.5 AIC · ⌖ 2.42 AIC · ⊞ 15.9K · [◷]( · ◷)

Copilot AI commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Build the repository

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

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.

Copilot review overview

🟡 Changes recommended

The improver workflow cannot create fixes outside the former test project and its full-solution verification can exceed the workflow timeout.

Get a fresh assessment by requesting another Copilot review.

Review tier: Balanced (auto)
Findings: 1 High severity · 1 Medium severity

Note

Copilot is running an experiment and ran this review at Balanced.

Open findings (2)
What changed in this PR

Expands mutation testing from one client project to the repository’s unit-test suite using Stryker.NET 5 solution mode.

Changes:

  • Adds a dedicated 40-project mutation-testing solution.
  • Configures net8.0 mutation builds, signing, and generated-file exclusions.
  • Updates workflows and developer guidance for solution-wide reports.
File Description
.config/​dotnet-tools.json Upgrades Stryker.NET to 5.0.0.
.github/​workflows/​mutation-test-improver.lock.yml Regenerates workflow metadata.
.github/​workflows/​mutation-test-improver.md Expands automated mutant analysis instructions.
.github/​workflows/​mutation-testing.yml Runs root-level mutation testing with a longer timeout.
Directory.Build.props Configures mutation-specific targeting and signing.
MutationTesting.slnx Defines mutation targets and unit-test projects.
docs/​dev-guide.md Documents solution-wide mutation testing.
stryker-config.json Enables solution mode and excludes generated sources.
test/​Directory.Build.targets Restricts mutation test hosts to net8.0.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Allow fixes across all unit test projects and bound Stryker verification to the selected production project and source file.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 12, 2026 14:00

Copilot AI commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Build the repository

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

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.

Copilot review overview

🔵 Needs a closer look

The solution-wide execution is costly and was not completed locally, so final human validation of the first full run is warranted.

Review tier: Balanced (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Balanced.

Resolved findings (2)

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Expert test review — PR #11223

No new or modified test methods were identified in the changed regions of this PR (changes are limited to mutation-testing infrastructure: Stryker config/version bump, workflow files, Directory.Build.targets, and docs — no .cs test files were modified). Nothing to review.

Re-run with /review-tests.

🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 41.7 AIC · ⌖ 2.4 AIC · ⊞ 15.9K · [◷]( · ◷)

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Keep solution-mode mutation testing on Stryker 4.16.0, which is available from the repository's CI feeds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 12, 2026 14:24

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.

Copilot review overview

🔵 Needs a closer look

The full solution-wide mutant execution remains unvalidated and combines broad build, signing, and workflow changes.

Review tier: Balanced (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Balanced.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Expert test review — PR #11223

No new or modified test methods were identified in the changed regions of this PR. The changed files are mutation-testing tooling/config/docs (.config/dotnet-tools.json, MutationTesting.slnx, stryker-config.json, Directory.Build.props, test/Directory.Build.targets, workflow and doc files) with no .cs test source changes. Nothing to review.

Re-run with /review-tests.

🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 58.7 AIC · ⌖ 2.4 AIC · ⊞ 15.9K · [◷]( · ◷)

Keep Stryker.NET 5 in a dedicated manifest so normal repository builds restore only mirrored tools, while mutation workflows restore Stryker from nuget.org.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 12, 2026 14:58
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Build Failure Analysis

Summary — All 4 non-acceptance build legs (Linux Release, macOS Release, Windows Release, Windows Debug) fail identically during dotnet tool restore because the PR bumps dotnet-stryker to a version that does not exist on any of the configured NuGet feeds.

Root cause: dotnet-stryker 5.0.0 does not exist on the configured feeds

The PR changes .config/dotnet-tools.json to pin dotnet-stryker to version 5.0.0 (previously 4.16.0). The repo-tools restore step (Tools.proj → RestoreRepoTools → dotnet tool restore) fails on every build leg with:

Microsoft.DotNet.Cli.NuGetPackageDownloader.NuGetPackageNotFoundException: Version 5.0.0 of package dotnet-stryker is not found in NuGet feeds
https://pkgs.dev.azure.com/dnceng/public/_packaging/test-tools/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json;
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11/nuget/v3/index.json.

Because Tools.proj/Build.proj restore runs before any project compiles, this single failure cascades and fails the entire build (Build failed.) on every leg that reaches that step — it is not a compilation error in changed source, and no .cs/.csproj file is at fault.

Affected files / errors

  • .config/dotnet-tools.json — MSB3073: The command "".../dotnet" tool restore " exited with code 1 (Linux Release, macOS Release, Windows Release, Windows Debug legs)

Proposed fix

Note: the PR description states dotnet tool restore --no-cache succeeded locally and restored Stryker.NET 5.0.0 "from repository feeds." That is inconsistent with this CI run, where the exact same restore fails against the Azure DevOps public feeds (test-tools, dotnet-public, dotnet-tools, dotnet-eng, dotnet9/10/11). This points to an environment/feed-availability mismatch rather than a simple typo — e.g. the package may only be resolvable from a feed configured locally (a different NuGet.config, an authenticated/private feed, or a local package cache) but not from the public feeds this CI build restores from.

I have no network/NuGet access from this sandbox, so I cannot verify which feed actually hosts dotnet-stryker 5.0.0. Please confirm the version is published on a feed reachable by CI (e.g. nuget.org or the configured dotnet-tools/test-tools Azure DevOps feeds) before merging — see the inline suggestion for a safe fallback to the last known-good 4.16.0 if it is not yet available there.


Build overview
  • Toolset: Build.proj / Tools.proj, .NET SDK 11.0.100-rc.2.26425.121, MSBuild 18.11.0-1.26425.121+e20a5af9c
  • Legs affected: Linux Release, macOS Release, Windows Release, Windows Debug (all 4 fail identically at RestoreRepoTools)
  • Legs unaffected: application-model acceptance legs (5_0, 5_1) — binlog_errors reported no errors for either
  • Exit: Build failed. via MSB3073 in Tools.proj(29,5), target RestoreRepoTools, task Exec
All MSBuild errors
Code Project File:Line Message
MSB3073 Tools.proj Tools.proj:29 The command ".../dotnet" tool restore exited with code 1 (NuGetPackageNotFoundException: dotnet-stryker 5.0.0 not found in configured feeds)

🤖 Generated by the Build Failure Analysis workflow using (a href="(dev.azure.com/redacted) · commit 001c7db

🤖 Automated content by GitHub Copilot. Generated by the Build Failure Analysis workflow. · auto · 139.6 AIC · ⌖ 2.06 AIC · ⊞ 11.4K · [◷]( · ◷)

@github-actions github-actions Bot 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.

🤖 Automated content by GitHub Copilot. Generated by the Build Failure Analysis workflow. · auto · 139.6 AIC · ⌖ 2.06 AIC · ⊞ 11.4K · ◷

Comment thread .config/dotnet-tools.json Resolved
@github-actions

Copy link
Copy Markdown
Contributor

🧪 Expert test review — PR #11223

No new or modified test methods were identified in the changed regions
of this PR. Nothing to review.

Re-run with /review-tests.

🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 48.2 AIC · ⌖ 2.35 AIC · ⊞ 15.9K · [◷]( · ◷)

@github-actions

This comment has been minimized.

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.

Copilot review overview

🟡 Changes recommended

The mutation solution omits the tested TRX abstractions production project.

Get a fresh assessment by requesting another Copilot review.

Review tier: Balanced (auto)
Findings: 1 Medium severity

Note

Copilot is running an experiment and ran this review at Balanced.

Open findings (1)

Comment thread MutationTesting.slnx Resolved
Add the transitively referenced TRX abstractions project so its directly tested sources participate in solution-mode mutation testing.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 12, 2026 15:10
@github-actions

Copy link
Copy Markdown
Contributor

🧪 Expert test review — PR #11223

No new or modified test methods were identified in the changed regions of this PR. The 11 changed files are all build/tooling configuration for Stryker mutation testing (.config/dotnet-tools.json, .config/stryker/*, .github/workflows/mutation-*, Directory.Build.props, MutationTesting.slnx, docs/dev-guide.md, stryker-config.json, test/Directory.Build.targets) — no test source (.cs) files with test methods were added or modified.

Re-run with /review-tests.

🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 53.1 AIC · ⌖ 2.36 AIC · ⊞ 15.9K · [◷]( · ◷)

@github-actions

This comment has been minimized.

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.

Copilot review overview

🔵 Needs a closer look

The full 23-target mutation run was not executed, leaving solution-wide runtime behavior and completion within the six-hour CI limit unverified.

Review tier: Balanced (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Balanced.

Resolved findings (1)

@github-actions

Copy link
Copy Markdown
Contributor

Final test-triage resolution — Azure Pipelines build 1594162

This is the final (post-completion) test-triage analysis, superseding any earlier preliminary comment for this revision.

Test-product results: clean. Across all normalized CTRF/TRX/JUnit reports collected from this build (Linux Release, macOS Release, Windows Release, Windows Debug legs), every one of the 68,678 recorded test cases is passed (68,064) or skipped (614). There are zero failures, zero retries/flaky attempts, zero crash/hang diagnostics, and zero duration regressions meeting the slowness threshold.

Why the build still shows red: the failure is infrastructure-level on the Windows Release leg, not a test-product defect:

  • Merge coverage as Cobertura failed: "No coverage files were produced; every Windows Release run must publish coverage," causing PowerShell to exit with code 1.
  • The Test pipeline task itself then reported "Cmd.exe exited with code 1" as a consequence.
  • A related warning: "No test result files matching *.trx were found" during TRX publication for that leg.

This is a build/coverage-orchestration issue (missing coverage artifact production or publication ordering on Windows Release), which is outside this agent's scope — it belongs to Build Failure Analysis, not test triage.

Conclusion: No actionable test failure, flake, or regression to report. No issue is being created for the test-triage scope. Recommend investigating the Windows Release coverage-merge step separately.

🤖 Automated content by GitHub Copilot. Generated by the Pipeline Test Triage workflow. · auto · 72.8 AIC · ⌖ 2.66 AIC · ⊞ 8.9K

Avoid dotnet test ambiguity now that mutation testing adds a second root solution file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 12, 2026 16:05
@github-actions

Copy link
Copy Markdown
Contributor

🧪 Expert test review — PR #11223

No new or modified test methods were identified in the changed regions
of this PR. All changed files are build/tooling infrastructure
(.config/dotnet-tools.json, Stryker configuration, Directory.Build.props/.targets,
MutationTesting.slnx, workflow YAML, and docs) — no .cs test source files were
modified. Nothing to review.

Re-run with /review-tests.

🤖 Automated content by GitHub Copilot. Generated by the Test Reviewer on PR (on open / sync) workflow. · auto · 54.9 AIC · ⌖ 2.39 AIC · ⊞ 15.9K · [◷]( · ◷)

@github-actions

Copy link
Copy Markdown
Contributor

🧵 Parallel-safety audit — PR #11223

Nothing audited here touches process-global state, shared filesystem paths, or
[ResourceLock] / [DoNotParallelize] declarations. Nothing to flag for
parallel-safety.

This PR changes only mutation-testing CI infrastructure (.github/workflows/mutation-testing.yml, .github/workflows/mutation-test-improver.*, stryker-config.json, MutationTesting.slnx, .config/stryker/*), Directory.Build.props, docs/dev-guide.md, and eng/pipelines/steps/test-windows-configuration-tests.yml. No .cs test files, no test lifecycle members, and no [ResourceLock] / [DoNotParallelize] / [Parallelize] declarations were added, removed, or modified.

The one test-tree file touched, test/Directory.Build.targets, only adds a net8.0 TFM restriction gated on $(MutationTesting)==true; it does not change MSTestParallelizeScope, MSTestParallelizeWorkers, or any .runsettings/testconfig.json parallelization setting, so no assembly's effective parallelization state changes as a result of this PR.

No test assembly required auditing for this PR (no changed tests, lifecycle members, or parallelization-state files).

Re-run with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Parallel-safety audit on PR (on open / sync) workflow. · auto · 82.4 AIC · ⌖ 4.13 AIC · ⊞ 23.9K · [◷]( · ◷)

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.

Copilot review overview

🔵 Needs a closer look

The PowerShell instructions leave repository-wide mutation settings enabled for subsequent builds.

Review tier: Balanced (auto)
Findings: None

Note

Copilot is running an experiment and ran this review at Balanced.

Previously missed findings (1)

In code that hasn't changed since last review

Low severity Restore the mutation-testing environment variable

docs/​dev-guide.md:176

Pop-Location restores only the working directory, so this PowerShell session keeps MutationTesting=true. With the new repository-wide conditions, every later build in that shell is then restricted to net8 test hosts, skips UWP, and open-signs nearly all assemblies. Preserve and restore the previous environment value in the example so running mutation tests does not silently alter subsequent builds.

@Evangelink
Amaury Levé (Evangelink) merged commit 33e7b79 into main Sep 12, 2026
32 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/update-stryker-unit-tests branch September 12, 2026 17:13
@Evangelink
Amaury Levé (Evangelink) restored the dev/amauryleve/update-stryker-unit-tests branch September 14, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants