Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stryker.NET could not compile the project after mutation #3212

Open
DavitTsertsvadze opened this issue Mar 6, 2025 · 3 comments
Open

Stryker.NET could not compile the project after mutation #3212

DavitTsertsvadze opened this issue Mar 6, 2025 · 3 comments
Labels
🐛 Bug Something isn't working ! Need more info ! More information is required to start or continue working on this issue

Comments

@DavitTsertsvadze
Copy link

Describe the bug

currently i am using stryker.net version 4.5.1. i am trying to run mutation tests on windows worker project

Logs

Stryker.NET could not compile the project after mutation. This is probably an error for Stryker.NET and not your project. Please report this issue on github with the previous error message.
An error occurred during the mutation test run
System.AggregateException: One or more errors occurred. (Internal error due to compile error.)
---> Stryker.Abstractions.Exceptions.CompilationException: Internal error due to compile error.
at Stryker.Core.Compiling.CSharpRollbackProcess.Start(CSharpCompilation compiler, ImmutableArray1 diagnostics, Boolean lastAttempt, Boolean devMode) in /_/src/Stryker.Core/Stryker.Core/Compiling/CSharpRollbackProcess.cs:line 75 at Stryker.Core.Compiling.CsharpCompilingProcess.TryCompilation(Stream ms, Stream symbolStream, CSharpCompilation& compilation, EmitResult previousEmitResult, Boolean lastAttempt, Int32 retryCount) in /_/src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 185 at Stryker.Core.Compiling.CsharpCompilingProcess.Compile(IEnumerable1 syntaxTrees, Stream ilStream, Stream symbolStream) in //src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 82
at Stryker.Core.MutationTest.CsharpMutationProcess.CompileMutations(MutationTestInput input, CsharpCompilingProcess compilingProcess) in /
/src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 92
at Stryker.Core.MutationTest.CsharpMutationProcess.Mutate(MutationTestInput input) in //src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 82
at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in /
/src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs:line 87
at Stryker.Core.Initialisation.ProjectMutator.MutateProject(IStrykerOptions options, MutationTestInput input, IReporter reporters) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectMutator.cs:line 40
at Stryker.Core.Initialisation.ProjectOrchestrator.<>c__DisplayClass7_0.b__0(MutationTestInput mutationTestInput) in /
/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 72
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(IStrykerOptions options, IReporter reporters, ITestRunner runner) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 70 at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator) in /_/src/Stryker.Core/Stryker.Core/StrykerRunner.cs:line 65 Time Elapsed 00:01:05.7291362 Unhandled exception. System.AggregateException: One or more errors occurred. (Internal error due to compile error.) ---> Stryker.Abstractions.Exceptions.CompilationException: Internal error due to compile error. at Stryker.Core.Compiling.CSharpRollbackProcess.Start(CSharpCompilation compiler, ImmutableArray1 diagnostics, Boolean lastAttempt, Boolean devMode) in //src/Stryker.Core/Stryker.Core/Compiling/CSharpRollbackProcess.cs:line 75
at Stryker.Core.Compiling.CsharpCompilingProcess.TryCompilation(Stream ms, Stream symbolStream, CSharpCompilation& compilation, EmitResult previousEmitResult, Boolean lastAttempt, Int32 retryCount) in /
/src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 185
at Stryker.Core.Compiling.CsharpCompilingProcess.Compile(IEnumerable1 syntaxTrees, Stream ilStream, Stream symbolStream) in /_/src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 82 at Stryker.Core.MutationTest.CsharpMutationProcess.CompileMutations(MutationTestInput input, CsharpCompilingProcess compilingProcess) in /_/src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 92 at Stryker.Core.MutationTest.CsharpMutationProcess.Mutate(MutationTestInput input) in /_/src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 82 at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in /_/src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs:line 87 at Stryker.Core.Initialisation.ProjectMutator.MutateProject(IStrykerOptions options, MutationTestInput input, IReporter reporters) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectMutator.cs:line 40 at Stryker.Core.Initialisation.ProjectOrchestrator.<>c__DisplayClass7_0.<MutateProjects>b__0(MutationTestInput mutationTestInput) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 72 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body)
at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(IStrykerOptions options, IReporter reporters, ITestRunner runner) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 70
at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator) in /
/src/Stryker.Core/Stryker.Core/StrykerRunner.cs:line 65
at Stryker.CLI.StrykerCli.RunStryker(IStrykerInputs inputs) in //src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 152
at Stryker.CLI.StrykerCli.<>c__DisplayClass11_0.b__0() in /
/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 124
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass143_0.b__0(CancellationToken )
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Stryker.CLI.StrykerCli.Run(String[] args) in /
/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 130
at Stryker.CLI.Program.Main(String[] args) in /_/src/Stryker.CLI/Stryker.CLI/Program.cs:line 14

Desktop (please complete the following information):

  • OS: Windows
  • Type of project: core
  • Framework Version core 8.0
  • Stryker Version 4.5.1
@DavitTsertsvadze DavitTsertsvadze added the 🐛 Bug Something isn't working label Mar 6, 2025
@dupdob
Copy link
Member

dupdob commented Mar 6, 2025

hello
can you please share the complete log?

@dupdob dupdob added the ! Need more info ! More information is required to start or continue working on this issue label Mar 6, 2025
@DavitTsertsvadze
Copy link
Author

hi , here is full debug log:

[11:28:58 INF] Logging enabled at level Debug Version: 4.5.1
[11:28:58 DBG] Stryker starting, version: 4.5.1

[11:28:58 INF] Stryker will use a max of 4 parallel testsessions.
[11:28:58 DBG] Stryker started with options: {"MsBuildPath": null, "DevMode": false, "ProjectPath": "C:X", "IsSolutionContext": true, "WorkingDirectory": "C:\X", "OutputPath": "X\StrykerOutput\2025-03-07.11-28-54", "ReportPath": "X\StrykerOutput\2025-03-07.11-28-54\reports", "ReportFileName": "mutation-report", "SolutionPath": "X\Worker.sln", "Configuration": null, "TargetFramework": null, "LogOptions": {"LogToFile": false, "LogLevel": "Debug", "$type": "LogOptions"}, "MutationLevel": "Standard", "Thresholds": {"High": 80, "Low": 60, "Break": 0, "$type": "Thresholds"}, "AdditionalTimeout": 3000, "LanguageVersion": "Default", "Concurrency": 4, "SourceProjectName": "", "TestProjects": [], "TestCaseFilter": "FullyQualifiedName!~IntegrationTests", "Reporters": ["Json", "Html", "Progress"], "WithBaseline": false, "BaselineProvider": "Disk", "AzureFileStorageUrl": "", "AzureFileStorageSas": "", "DashboardUrl": "https://dashboard.stryker-mutator.io", "DashboardApiKey": null, "Since": false, "SinceTarget": "master", "DiffIgnoreChanges": [], "FallbackVersion": "master", "ModuleName": "", "ReportTypeToOpen": null, "Mutate": [{"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "Migrations", "$type": "LiteralToken"}, {"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "$type": "WildcardDirectoryToken"}, {"$type": "WildcardToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "Database", "$type": "LiteralToken"}, {"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "$type": "WildcardDirectoryToken"}, {"$type": "WildcardToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "DependencyInjection.cs", "$type": "LiteralToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "Startup.cs", "$type": "LiteralToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "Program.cs", "$type": "LiteralToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "GlobalSuppressions.cs", "$type": "LiteralToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "Examples", "$type": "LiteralToken"}, {"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "$type": "WildcardDirectoryToken"}, {"$type": "WildcardToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "StartupConfiguration", "$type": "LiteralToken"}, {"Value": "\", "$type": "PathSeparatorToken"}, {"$type": "WildcardToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "ExceptionHandler.cs", "$type": "LiteralToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"Value": "bin", "$type": "LiteralToken"}, {"TrailingPathSeparator": null, "LeadingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "$type": "WildcardDirectoryToken"}], "$type": "Glob"}, "IsExclude": true, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}, {"Glob": {"Tokens": [{"TrailingPathSeparator": {"Value": "\", "$type": "PathSeparatorToken"}, "LeadingPathSeparator": null, "$type": "WildcardDirectoryToken"}, {"$type": "WildcardToken"}], "$type": "Glob"}, "IsExclude": false, "TextSpans": [{"Start": 0, "End": 2147483647, "Length": 2147483647, "IsEmpty": false, "$type": "TextSpan"}], "$type": "FilePattern"}], "IgnoredMethods": [{"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}, {"Options": "IgnoreCase", "RightToLeft": false, "MatchTimeout": "-00:00:00.0010000", "$type": "Regex"}], "ExcludedMutations": ["String", "Linq", "Checked"], "ExcludedLinqExpressions": [], "OptimizationMode": "CoverageBasedTest, CaptureCoveragePerTest", "ProjectName": "", "ProjectVersion": "", "BreakOnInitialTestFailure": true, "MutantIdProvider": {"$type": "BasicIdProvider"}, "$type": "StrykerOptions"}
[11:28:59 INF] Analysis starting.
[11:28:59 INF] Identifying projects to mutate in Y\XWorker\XWorker.sln. This can take a while.
[11:28:59 DBG] Analyzing 2 projects.
[11:28:59 DBG] Analyzing XWorker\XWorker.csproj
[11:28:59 DBG] Analyzing XWorker.Tests\XWorker.Tests.csproj
[11:29:03 DBG] Analysis of project XWorker\XWorker.csproj succeeded.
[11:29:04 DBG] Analysis of project XWorker.Tests\XWorker.Tests.csproj succeeded.
[11:29:04 DBG] Skipping auto-generated code file: Y\XWorker\XWorker\obj\Debug\net8.0.NETCoreApp,Version=v8.0.AssemblyAttributes.cs
[11:29:04 DBG] Skipping auto-generated code file: Y\XWorker\XWorker\obj\Debug\net8.0\XWorker.AssemblyInfo.cs
[11:29:04 INF] Found project Y\XWorker\XWorker\XWorker.csproj to mutate.
[11:29:04 INF] Analysis complete.
[11:29:04 INF] Building solution XWorker.sln
[11:29:04 DBG] Started initial build using dotnet build
[11:29:04 INF] Building project XWorker.sln using dotnet build XWorker.sln (directory Y\XWorker.)
[11:29:13 DBG] Initial build successful
[11:29:13 DBG] VsTest zip was copied to: C:\Users\User1\AppData\Local\Temp\etp2f22c.dnl.vstest\vstest.zip
[11:29:19 DBG] VsTest zip was unzipped to: C:\Users\User1\AppData\Local\Temp\etp2f22c.dnl.vstest
[11:29:19 DBG] Using vstest from deployed vstest package
[11:29:19 DBG] Using vstest.console: WINDOWS for OS C:\Users\User1\AppData\Local\Temp\etp2f22c.dnl.vstest\tools\net462\vstest.console.exe
[11:29:31 INF] Number of tests found: 1 for project Y\XWorker\XWorker\XWorker.csproj. Initial test run started.
[11:29:39 DBG] Runner 3: Received testrun complete.
[11:29:39 DBG] Runner 3: Test session finished.
[11:29:39 DBG] Initial test run output: .
[11:29:40 DBG] Mutating Y\XWorker\XWorker\BackgroundTasks\Helper\BasicAuthOptions.cs
[11:29:40 DBG] Mutating Y\XWorker\XWorker\BackgroundTasks\Helper\zzzrequestCounterApiOptions.cs
[11:29:40 DBG] Mutating Y\XWorker\XWorker\BackgroundTasks\Helper\zzzrequestCounterBackgroundTaskOptions.cs
[11:29:40 DBG] Mutating Y\XWorker\XWorker\BackgroundTasks\zzzRequestCounterBackgroundTask.cs
[11:29:40 DBG] Mutant 0 created {
_logger = logger;
_telemetry = new zzzRequestCounterBackgroundTaskTelemetry();
_zzzrequestCounterBackgroundTaskOptions = options.Value;
_httpClient = httpCLientFactory.CreateClient("zzzrequestCounterApi");
SetInterval(_zzzrequestCounterBackgroundTaskOptions.TaskInterval);
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:40 DBG] Mutant 1 created "zzzrequestCounterApi" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:40 DBG] Mutant 2 created SetInterval(_zzzrequestCounterBackgroundTaskOptions.TaskInterval); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 3 created {
_logger.LogInformation("zzzRequestCounterBackgroundTask execution started");
try
{
var response = await _httpClient.GetAsync(_httpClient.BaseAddress).ConfigureAwait(false);
//Set telemetry info
_telemetry.Counter++;
_logger.LogDebug("zzzRequestCounterBackgroundTask execution ended with message:" + response.StatusCode);
}
catch (Exception ex)
{
_logger.LogError("zzzRequestCounterBackgroundTask execution ended with message:" + ex.Message);
}
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:40 DBG] Mutant 4 created _logger.LogInformation("zzzRequestCounterBackgroundTask execution started"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 5 created "zzzRequestCounterBackgroundTask execution started" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:40 DBG] Mutant 6 created {
var response = await _httpClient.GetAsync(_httpClient.BaseAddress).ConfigureAwait(false);
//Set telemetry info
_telemetry.Counter++;
_logger.LogDebug("zzzRequestCounterBackgroundTask execution ended with message:" + response.StatusCode);
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:40 DBG] Mutant 7 created false -> true using Stryker.Core.Mutators.BooleanMutator
[11:29:40 DBG] Mutant 8 created _telemetry.Counter++; -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 9 created _telemetry.Counter++ -> _telemetry.Counter-- using Stryker.Core.Mutators.PostfixUnaryMutator
[11:29:40 DBG] Mutant 10 created _logger.LogDebug("zzzRequestCounterBackgroundTask execution ended with message:" + response.StatusCode); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 11 created "zzzRequestCounterBackgroundTask execution ended with message:" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:40 DBG] Mutant 12 created {
_logger.LogError("zzzRequestCounterBackgroundTask execution ended with message:" + ex.Message);
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:40 DBG] Mutant 13 created _logger.LogError("zzzRequestCounterBackgroundTask execution ended with message:" + ex.Message); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 14 created "zzzRequestCounterBackgroundTask execution ended with message:" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:40 DBG] Mutating Y\XWorker\XWorker\GlobalSuppressions.cs
[11:29:40 DBG] Mutating Y\XWorker\XWorker\Infrastructure\StartupConfiguration\HostConfiguration.cs
[11:29:40 DBG] Mutant 15 created {
builder.Host.UseWindowsService();
builder.Configuration.AddJsonFile("appsecrets.json", optional: true, reloadOnChange: false);
builder.Host.UseSerilog((hostingContext, loggerConfiguration) => loggerConfiguration
.ReadFrom.Configuration(hostingContext.Configuration)
.Enrich.FromLogContext()
.Enrich.FromActivity());
return builder;
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:40 DBG] Mutant 16 created builder.Host.UseWindowsService(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 17 created builder.Configuration.AddJsonFile("appsecrets.json", optional: true, reloadOnChange: false); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutant 18 created "appsecrets.json" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:40 DBG] Mutant 19 created true -> false using Stryker.Core.Mutators.BooleanMutator
[11:29:40 DBG] Mutant 20 created false -> true using Stryker.Core.Mutators.BooleanMutator
[11:29:40 DBG] Mutant 21 created builder.Host.UseSerilog((hostingContext, loggerConfiguration) => loggerConfiguration
.ReadFrom.Configuration(hostingContext.Configuration)
.Enrich.FromLogContext()
.Enrich.FromActivity()); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:40 DBG] Mutating Y\XWorker\XWorker\Infrastructure\StartupConfiguration\MiddlewareConfiguration.cs
[11:29:40 DBG] Mutant 22 created {
app.UseMetrics(app.Configuration.GetSection("Metrics").Get() ?? throw new InvalidOperationException("Metrics options not configured"));
app.UseBackgroundTaskInfo();
app.MapHealthChecks("/health");
return app;
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:40 DBG] Mutant 23 created app.UseMetrics(app.Configuration.GetSection("Metrics").Get() ?? throw new InvalidOperationException("Metrics options not configured")); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 24 created "Metrics" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 25 created "Metrics options not configured" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 26 created app.UseBackgroundTaskInfo(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 27 created app.MapHealthChecks("/health"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 28 created "/health" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutating Y\XWorker\XWorker\Infrastructure\StartupConfiguration\ServiceConfiguration.cs
[11:29:41 DBG] Mutant 29 created {
builder.Services.Configure(builder.Configuration.GetSection("zzzrequestCounterBackgroundTask"));
builder.Services.AddHttpClient("zzzrequestCounterApi", client =>
{
var zzzrequestCounterApiOptions = builder.Configuration.GetSection("zzzrequestCounterApi").Get();
client.BaseAddress = new Uri(zzzrequestCounterApiOptions.EndpointUrl);
var byteArray = Encoding.ASCII.GetBytes($"{zzzrequestCounterApiOptions.BasicAuth.Username}:{zzzrequestCounterApiOptions.BasicAuth.Password}");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
});
builder.Services.AddBackgroundTask();
#region Add health check services
builder.Services.AddHealthChecks()
.AddBackgroundTasks(failureStatus: HealthStatus.Degraded)
.ForwardToMetrics();
#endregion Add health check services
#region Tracing
var tracingOptions = builder.Configuration.GetSection("Tracing").Get() ?? throw new InvalidOperationException("Tracing options not configured");
tracingOptions.AddAspNetCoreInstrumentation = false;
builder.Services.AddTracing(tracingOptions,
serviceDesc =>
{
serviceDesc.ServiceName = "XWorker";
serviceDesc.ServiceNamespace = "zzz.RequestCounter";
serviceDesc.EnvironmentName = builder.Environment.EnvironmentName;
});

        #endregion Tracing

        return builder;
    } -> {} using Stryker.Core.Mutators.BlockMutator

[11:29:41 DBG] Mutant 30 created builder.Services.Configure(builder.Configuration.GetSection("zzzrequestCounterBackgroundTask")); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 31 created "zzzrequestCounterBackgroundTask" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 32 created builder.Services.AddHttpClient("zzzrequestCounterApi", client =>
{
var zzzrequestCounterApiOptions = builder.Configuration.GetSection("zzzrequestCounterApi").Get();
client.BaseAddress = new Uri(zzzrequestCounterApiOptions.EndpointUrl);
var byteArray = Encoding.ASCII.GetBytes($"{zzzrequestCounterApiOptions.BasicAuth.Username}:{zzzrequestCounterApiOptions.BasicAuth.Password}");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
}); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 33 created "zzzrequestCounterApi" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 34 created {
var zzzrequestCounterApiOptions = builder.Configuration.GetSection("zzzrequestCounterApi").Get();
client.BaseAddress = new Uri(zzzrequestCounterApiOptions.EndpointUrl);
var byteArray = Encoding.ASCII.GetBytes($"{zzzrequestCounterApiOptions.BasicAuth.Username}:{zzzrequestCounterApiOptions.BasicAuth.Password}");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:41 DBG] Mutant 35 created "zzzrequestCounterApi" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 36 created $"{zzzrequestCounterApiOptions.BasicAuth.Username}:{zzzrequestCounterApiOptions.BasicAuth.Password}" -&gt; $"" using Stryker.Core.Mutators.InterpolatedStringMutator
[11:29:41 DBG] Mutant 37 created "Basic" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 38 created builder.Services.AddBackgroundTask(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 39 created builder.Services.AddHealthChecks()
.AddBackgroundTasks(failureStatus: HealthStatus.Degraded)
.ForwardToMetrics(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 40 created "Tracing" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 41 created "Tracing options not configured" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 42 created false -> true using Stryker.Core.Mutators.BooleanMutator
[11:29:41 DBG] Mutant 43 created builder.Services.AddTracing(tracingOptions,
serviceDesc =>
{
serviceDesc.ServiceName = "XWorker";
serviceDesc.ServiceNamespace = "zzz.RequestCounter";
serviceDesc.EnvironmentName = builder.Environment.EnvironmentName;
}); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 44 created {
serviceDesc.ServiceName = "XWorker";
serviceDesc.ServiceNamespace = "zzz.RequestCounter";
serviceDesc.EnvironmentName = builder.Environment.EnvironmentName;
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:41 DBG] Mutant 45 created "XWorker" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 46 created "zzz.RequestCounter" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutating Y\XWorker\XWorker\Program.cs
[11:29:41 DBG] Mutant 47 created WindowsServiceHelpers.IsWindowsService() -> !(WindowsServiceHelpers.IsWindowsService()) using Stryker.Core.Mutators.NegateConditionMutator
[11:29:41 DBG] Mutant 48 created Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 49 created {
Log.Information("Starting host");
var builder = WebApplication.CreateBuilder(args);
Log.Information("Configuring web host");
builder.ConfigureHost();
Log.Information("Configuring services");
builder.ConfigureServices();
var app = builder.Build();
Log.Information("Configuring middleware");
app.ConfigureMiddleware();
Log.Information("Starting app");
app.Run();
Log.Information("Stopping host");
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:41 DBG] Mutant 50 created Log.Information("Starting host"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 51 created "Starting host" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 52 created Log.Information("Configuring web host"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 53 created "Configuring web host" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 54 created builder.ConfigureHost(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 55 created Log.Information("Configuring services"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 56 created "Configuring services" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 57 created builder.ConfigureServices(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 58 created Log.Information("Configuring middleware"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 59 created "Configuring middleware" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 60 created app.ConfigureMiddleware(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 61 created Log.Information("Starting app"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 62 created "Starting app" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 63 created app.Run(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 64 created Log.Information("Stopping host"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 65 created "Stopping host" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 66 created ex is not HostAbortedException -> ex is HostAbortedException using Stryker.Core.Mutators.IsPatternExpressionMutator
[11:29:41 DBG] Mutant 67 created {
Log.Fatal(ex, "Host terminated unexpectedly");
return 1;
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:41 DBG] Mutant 68 created Log.Fatal(ex, "Host terminated unexpectedly"); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] Mutant 69 created "Host terminated unexpectedly" -> "" using Stryker.Core.Mutators.StringMutator
[11:29:41 DBG] Mutant 70 created {
Log.CloseAndFlush();
} -> {} using Stryker.Core.Mutators.BlockMutator
[11:29:41 DBG] Mutant 71 created Log.CloseAndFlush(); -> ; using Stryker.Core.Mutators.StatementMutator
[11:29:41 DBG] 72 mutants created
[11:29:41 DBG] Trying compilation for the first time.
[11:29:41 DBG] Compilation failed
[11:29:41 DBG] The specified version string '...0' does not conform to the required format - major[.minor[.build[.revision]]], SourceFile(Y\XWorker\XWorker\obj\Debug\net8.0\XWorker.AssemblyInfo.cs[981..987))
[11:29:41 DBG] Trying compilation for the second time.
[11:29:41 DBG] RollBacking mutations from Y\XWorker\XWorker\obj\Debug\net8.0\XWorker.AssemblyInfo.cs.
[11:29:41 WRN] Stryker.NET encountered a compile error in Y\XWorker\XWorker\obj\Debug\net8.0\XWorker.AssemblyInfo.cs (at 18:54) with message: The specified version string '...0' does not conform to the required format - major[.minor[.build[.revision]]] (Source code: "...0")
[11:29:41 INF] Safe Mode! Stryker will flag mutations in whole file as compile error.
[11:29:41 FTL] Stryker.NET could not compile the project after mutation. This is probably an error for Stryker.NET and not your project. Please report this issue on github with the previous error message.
[11:29:41 ERR] An error occurred during the mutation test run
System.AggregateException: One or more errors occurred. (Internal error due to compile error.)
---> Stryker.Abstractions.Exceptions.CompilationException: Internal error due to compile error.
at Stryker.Core.Compiling.CSharpRollbackProcess.Start(CSharpCompilation compiler, ImmutableArray1 diagnostics, Boolean lastAttempt, Boolean devMode) in /_/src/Stryker.Core/Stryker.Core/Compiling/CSharpRollbackProcess.cs:line 75 at Stryker.Core.Compiling.CsharpCompilingProcess.TryCompilation(Stream ms, Stream symbolStream, CSharpCompilation& compilation, EmitResult previousEmitResult, Boolean lastAttempt, Int32 retryCount) in /_/src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 185 at Stryker.Core.Compiling.CsharpCompilingProcess.Compile(IEnumerable1 syntaxTrees, Stream ilStream, Stream symbolStream) in //src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 82
at Stryker.Core.MutationTest.CsharpMutationProcess.CompileMutations(MutationTestInput input, CsharpCompilingProcess compilingProcess) in /
/src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 92
at Stryker.Core.MutationTest.CsharpMutationProcess.Mutate(MutationTestInput input) in //src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 82
at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in /
/src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs:line 87
at Stryker.Core.Initialisation.ProjectMutator.MutateProject(IStrykerOptions options, MutationTestInput input, IReporter reporters) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectMutator.cs:line 40
at Stryker.Core.Initialisation.ProjectOrchestrator.<>c__DisplayClass7_0.b__0(MutationTestInput mutationTestInput) in /
/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 72
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(IStrykerOptions options, IReporter reporters, ITestRunner runner) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 70 at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator) in /_/src/Stryker.Core/Stryker.Core/StrykerRunner.cs:line 65 [11:29:41 INF] Time Elapsed 00:00:43.0304951 Unhandled exception. System.AggregateException: One or more errors occurred. (Internal error due to compile error.) ---> Stryker.Abstractions.Exceptions.CompilationException: Internal error due to compile error. at Stryker.Core.Compiling.CSharpRollbackProcess.Start(CSharpCompilation compiler, ImmutableArray1 diagnostics, Boolean lastAttempt, Boolean devMode) in //src/Stryker.Core/Stryker.Core/Compiling/CSharpRollbackProcess.cs:line 75
at Stryker.Core.Compiling.CsharpCompilingProcess.TryCompilation(Stream ms, Stream symbolStream, CSharpCompilation& compilation, EmitResult previousEmitResult, Boolean lastAttempt, Int32 retryCount) in /
/src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 185
at Stryker.Core.Compiling.CsharpCompilingProcess.Compile(IEnumerable1 syntaxTrees, Stream ilStream, Stream symbolStream) in /_/src/Stryker.Core/Stryker.Core/Compiling/CsharpCompilingProcess.cs:line 82 at Stryker.Core.MutationTest.CsharpMutationProcess.CompileMutations(MutationTestInput input, CsharpCompilingProcess compilingProcess) in /_/src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 92 at Stryker.Core.MutationTest.CsharpMutationProcess.Mutate(MutationTestInput input) in /_/src/Stryker.Core/Stryker.Core/MutationTest/CsharpMutationProcess.cs:line 82 at Stryker.Core.MutationTest.MutationTestProcess.Mutate() in /_/src/Stryker.Core/Stryker.Core/MutationTest/MutationTestProcess.cs:line 87 at Stryker.Core.Initialisation.ProjectMutator.MutateProject(IStrykerOptions options, MutationTestInput input, IReporter reporters) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectMutator.cs:line 40 at Stryker.Core.Initialisation.ProjectOrchestrator.<>c__DisplayClass7_0.<MutateProjects>b__0(MutationTestInput mutationTestInput) in /_/src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 72 at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure)
at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body)
at Stryker.Core.Initialisation.ProjectOrchestrator.MutateProjects(IStrykerOptions options, IReporter reporters, ITestRunner runner) in //src/Stryker.Core/Stryker.Core/Initialisation/ProjectOrchestrator.cs:line 70
at Stryker.Core.StrykerRunner.RunMutationTest(IStrykerInputs inputs, ILoggerFactory loggerFactory, IProjectOrchestrator projectOrchestrator) in /
/src/Stryker.Core/Stryker.Core/StrykerRunner.cs:line 65
at Stryker.CLI.StrykerCli.RunStryker(IStrykerInputs inputs) in //src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 152
at Stryker.CLI.StrykerCli.<>c__DisplayClass11_0.b__0() in /
/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 124
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass143_0.b__0(CancellationToken )
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Stryker.CLI.StrykerCli.Run(String[] args) in /
/src/Stryker.CLI/Stryker.CLI/StrykerCLI.cs:line 130
at Stryker.CLI.Program.Main(String[] args) in /_/src/Stryker.CLI/Stryker.CLI/Program.cs:line 14

@dupdob
Copy link
Member

dupdob commented Mar 7, 2025

Thanks the problem is revealed here:
[11:29:41 DBG] The specified version string '...0' does not conform to the required format - major[.minor[.build[.revision]]], SourceFile(Y\XWorker\XWorker\obj\Debug\net8.0\XWorker.AssemblyInfo.cs[981..987))

The version number is clearly missing. I suspect this is because the version number is defined via some environment variables or parameters that were not captured during analysis.
A work around would be to manually set said version number.
We need you to explain how the version number is set up during build to understand if there is a way to capture this somehow.

Note: Strykes does not mutate any ....assemblyinfo.cs file, even if the log talks about rolling mutations back, this is the default logic when a compilation error happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working ! Need more info ! More information is required to start or continue working on this issue
Projects
None yet
Development

No branches or pull requests

2 participants