Skip to content

fix(ci): use the NE_DOTNET_TARGETFRAMEWORKS variable for the mutation workflow SDKs - #1109

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

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

Conversation

@samtrion

Copy link
Copy Markdown
Contributor

Problem

mutation-dotnet.yml (introduced in #1108, released as 2.7.9) used ${{ inputs.dotnetVersion || '10.x' }} in the setup-dotnet step, but workflow_call only declares configurationFile. Two consequences:

Fix

Read the organization variable NE_DOTNET_TARGETFRAMEWORKS directly in the setup-dotnet step, with 10.x as the fallback when it is unset or empty:

dotnet-version: ${{ vars.NE_DOTNET_TARGETFRAMEWORKS || '10.x' }}

The dead inputs.dotnetVersion reference is removed. No new workflow_call input is added.

Compatibility

Callers need no change (no new with: entries, secrets unchanged). In a reusable workflow, the vars context is resolved from the caller's repository and organization. A caller that still passes dotnetVersion: keeps failing at startup, as it does today, since the input does not exist.

Verification

Probe caller in a throwaway branch of a consuming repository, pointing the reusable call at this branch and passing no dotnetVersion. Result is recorded in a comment on this PR.

… workflow SDKs

The setup step referenced inputs.dotnetVersion, which the workflow never declared, so only 10.x was installed and net11.0 projects could not be built. Read the organization variable NE_DOTNET_TARGETFRAMEWORKS directly, falling back to 10.x when it is unset or empty.
@samtrion
samtrion merged commit 0c789f2 into main Nov 17, 2026
10 of 12 checks passed
@samtrion
samtrion deleted the fix/mutation-dotnet-version-input branch November 17, 2026 01:55
@samtrion

Copy link
Copy Markdown
Contributor Author

Verification: probe caller in a throwaway branch of dailydevops/schemas, calling this branch (4c7b7a0) with no dotnetVersion input. Run: https://github.com/dailydevops/schemas/actions/runs/43998942819 - no startup failure; setup-dotnet received the org variable value (a multi-line SDK list starting at 6.x in the log, so the vars context resolves in the called workflow); Stryker identified and mutated the projects of Schemas.slnx and the run ended with success, final mutation score 86.07 %. Not verified: a caller with the variable unset (the 10.x fallback path).

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