Skip to content

fix(ci): run mutation testing natively with the configured .NET SDKs - #1108

Merged
samtrion merged 1 commit into
mainfrom
fix/mutation-sdk-from-dotnet-version
Nov 17, 2026
Merged

samtrion merged 1 commit into
mainfrom
fix/mutation-sdk-from-dotnet-version

Conversation

@samtrion

Copy link
Copy Markdown
Contributor

Problem

mutation-dotnet.yml runs Stryker.NET through a Docker-based action whose image is fixed to mcr.microsoft.com/dotnet/sdk:10.0. Solutions that target a newer SDK (for example net11.0) cannot be evaluated: Stryker reports NETSDK1045, simulated build failed for every project and finally overall analysis failed hence can't be mutated.

Failing run in a consumer repository: https://github.com/dailydevops/schemas/actions/runs/43994541132

Change

  • Add an optional dotnetVersion input with the same name and default (10.x / 11.x) as build-dotnet-single.yml.
  • Install the SDKs with actions/setup-dotnet (same pinned SHA as the other workflows) and run dotnet-stryker 5.0.0 (the version the previous action image shipped) natively as a global tool.
  • Keep the config file check, the configurationFile input, the STRYKER_DASHBOARD_API_KEY secret and the HTML report artifact upload unchanged.
  • Append the Stryker markdown report to the step summary (the old action did this implicitly).

Compatibility

Inputs, secrets and artifact names are unchanged; dotnetVersion is optional. The reusable workflow had no outputs, so none are lost. Callers now get SDKs 10.x and 11.x by default; callers that need others pass dotnetVersion. The old action's strykerArgs was never exposed by this workflow.

Verification

Dispatched a throwaway workflow in a consumer repository (on a temporary branch, since deleted) that called this branch: the run succeeded, including setup, Stryker run, step summary and report upload (https://github.com/dailydevops/schemas/actions/runs/43997079777). Stryker still logs simulated build failed. Trying again with a nuget restore. warnings per project, but recovers and completes, unlike before. The dashboard upload itself and the exact content of the step summary were not inspected by me. act was not available.

To test: call the workflow from a repository with a net11.0 target and a stryker-config.json, referencing this branch, and dispatch it.

@samtrion
samtrion merged commit 1687141 into main Nov 17, 2026
9 of 12 checks passed
@samtrion
samtrion deleted the fix/mutation-sdk-from-dotnet-version branch November 17, 2026 01:47
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.

1 participant