stryker-net: dotnet8: process failed to connect to vstest.console (linux ssl issue)
Describe the bug
Running dotnet stryker fails with error message process failed to connect to vstest.console.
Logs
Logs after running the command dotnet stryker --verbosity trace --log-to-file from the same folder as the sln file.
2023-12-15T13:28:55.0486719+01:00 [INF] Logging enabled at level Trace (8a18af78)
2023-12-15T13:28:55.2189609+01:00 [DBG] Stryker started with options: StrykerOptions { MsBuildPath: null, DevMode: False, ProjectPath: "/home/patrick/projects/dotnet-stryker-demos/Demo", IsSolutionContext: True, WorkingDirectory: "/home/patrick/projects/dotnet-stryker-demos/Demo", OutputPath: "/home/patrick/projects/dotnet-stryker-demos/Demo/StrykerOutput/2023-12-15.13-28-54", ReportPath: "/home/patrick/projects/dotnet-stryker-demos/Demo/StrykerOutput/2023-12-15.13-28-54/reports", ReportFileName: "mutation-report", SolutionPath: "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo.sln", TargetFramework: null, LogOptions: LogOptions { LogToFile: True, LogLevel: Verbose }, MutationLevel: Standard, Thresholds: Thresholds { High: 80, Low: 60, Break: 0 }, AdditionalTimeout: 5000, LanguageVersion: Default, Concurrency: 8, SourceProjectName: "", TestProjects: [], TestCaseFilter: "", Reporters: [Progress, Html], 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: [FilePattern { Glob: Glob { Tokens: [WildcardDirectoryToken { TrailingPathSeparator: PathSeparatorToken { Value: / }, LeadingPathSeparator: null }, WildcardToken { }] }, IsExclude: False, TextSpans: [TextSpan { Start: 0, End: 2147483647, Length: 2147483647, IsEmpty: False }] }], IgnoredMethods: [], ExcludedMutations: [], ExcludedLinqExpressions: [], OptimizationMode: CoverageBasedTest, ProjectName: "", ProjectVersion: "", BreakOnInitialTestFailure: False } (fac41b16)
2023-12-15T13:28:55.2486262+01:00 [INF] Analysis starting. (7076a364)
2023-12-15T13:28:55.2505319+01:00 [INF] Identifying projects to mutate in "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo.sln". This can take a while. (352fa797)
2023-12-15T13:28:55.2864193+01:00 [DBG] Analyzing 2 projects. (a101d45b)
2023-12-15T13:28:55.2890409+01:00 [DBG] Analyzing "DemoTests/DemoTests.csproj" (1defaf37)
2023-12-15T13:28:55.2890952+01:00 [DBG] Analyzing "Demo/Demo.csproj" (1defaf37)
2023-12-15T13:28:56.8302519+01:00 [DBG] Analysis of project "Demo/Demo.csproj" succeeded. (adaf2e80)
2023-12-15T13:28:56.8305954+01:00 [DBG] Analysis of project "DemoTests/DemoTests.csproj" succeeded. (adaf2e80)
2023-12-15T13:28:56.8318041+01:00 [INF] Found 1 source projects (c1ce5c69)
2023-12-15T13:28:56.8318528+01:00 [INF] Found 1 test projects (6f0fd09d)
2023-12-15T13:28:56.8342804+01:00 [DBG] Matched "Demo/Demo.csproj" to 1 test projects: (5ad47c23)
2023-12-15T13:28:56.8343168+01:00 [DBG] "/home/patrick/projects/dotnet-stryker-demos/Demo/DemoTests/DemoTests.csproj" (c8ca923a)
2023-12-15T13:28:57.0002879+01:00 [DBG] Skipping auto-generated code file: "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo/obj/Debug/net8.0/Demo.GlobalUsings.g.cs" (1e1226c3)
2023-12-15T13:28:57.0020754+01:00 [DBG] Skipping auto-generated code file: "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" (1e1226c3)
2023-12-15T13:28:57.0022505+01:00 [DBG] Skipping auto-generated code file: "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo/obj/Debug/net8.0/Demo.AssemblyInfo.cs" (1e1226c3)
2023-12-15T13:28:57.0023544+01:00 [INF] Found project "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo/Demo.csproj" to mutate. (2d705ac3)
2023-12-15T13:28:57.0044640+01:00 [INF] Analysis complete. (f039f576)
2023-12-15T13:28:57.0310073+01:00 [INF] Building solution "Demo.sln" (abcf88bf)
2023-12-15T13:28:57.0314566+01:00 [DBG] Started initial build using "dotnet build" (a4e1a5e2)
2023-12-15T13:28:57.0314974+01:00 [DBG] Initial build using path: "/home/patrick/projects/dotnet-stryker-demos/Demo/Demo.sln" (657c8664)
2023-12-15T13:28:58.2800584+01:00 [DBG] Initial build successful (61599426)
2023-12-15T13:28:58.3223517+01:00 [DBG] VsTest zip was copied to: "/tmp/qq2p0e22.3ys/.vstest/vstest.zip" (8e340ff1)
2023-12-15T13:28:58.4273148+01:00 [DBG] VsTest zip was unzipped to: "/tmp/qq2p0e22.3ys/.vstest" (679800d3)
2023-12-15T13:28:58.4301899+01:00 [DBG] Using vstest from deployed vstest package (6132c740)
2023-12-15T13:28:58.4323802+01:00 [DBG] Using vstest.console: "LINUX" for OS "/tmp/qq2p0e22.3ys/.vstest/tools/netcoreapp3.1/vstest.console.dll" (38dfd549)
2023-12-15T13:30:28.4679229+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4715877+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4769163+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4920279+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4921503+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4922346+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4923188+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4924299+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4925139+01:00 [ERR] Stryker failed to connect to vstest.console with error: "/home/patrick/.dotnet/tools/dotnet-stryker process failed to connect to vstest.console process after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout." (c990ccd0)
2023-12-15T13:30:28.4932375+01:00 [INF] Time Elapsed 00:01:33.3157438 (f4427d77)
Expected behavior Expecting stryker to do its magic.
Desktop (please complete the following information):
- OS: Arch Linux
- Simple dotnet8 solution: 1 library project, 1 test project (xunit)
- dotnet 8.0.100
- Stryker Version 3.12.0
Can I provide additional information?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (19 by maintainers)
I feel that this would be too infringing on the user’s system, they might not realize or want this behavior.