I've just received a number of renovate PRs to upgrade Microsoft.NET.Test.Sdk from 18.7.0 to 18.8.0, and they are failing with the following error which appears to be consistent across all operating systems:
Failed to negotiate protocol, waiting for response timed out after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout.
Test Run Aborted.
I see the same locally on my computer, so this doesn't appear to be genuine slowness:
project-euler on renovate/nuget/vstest-monorepo via .NET v10.0.301
❯ .\build.ps1
Building solution...
Restore complete (2.2s)
ProjectEuler net10.0 succeeded (4.0s) → artifacts\bin\ProjectEuler\release\ProjectEuler.dll
ProjectEuler.Benchmarks net10.0 succeeded (2.0s) → artifacts\bin\ProjectEuler.Benchmarks\release\ProjectEuler.Benchmarks.dll
ProjectEuler.Tests net10.0 succeeded (1.8s) → artifacts\bin\ProjectEuler.Tests\release\ProjectEuler.Tests.dll
Build succeeded in 10.0s
Running tests...
Restore complete (0.5s)
ProjectEuler net10.0 succeeded (0.4s) → artifacts\bin\ProjectEuler\release\ProjectEuler.dll
ProjectEuler.Benchmarks net10.0 succeeded (0.3s) → artifacts\bin\ProjectEuler.Benchmarks\release\ProjectEuler.Benchmarks.dll
ProjectEuler.Tests net10.0 succeeded (0.3s) → artifacts\bin\ProjectEuler.Tests\release\ProjectEuler.Tests.dll
Failed to negotiate protocol, waiting for response timed out after 90 seconds. This may occur due to machine slowness, please set environment variable VSTEST_CONNECTION_TIMEOUT to increase timeout.
ProjectEuler.Tests test net10.0 failed with 1 error(s) (90.4s)
D:\Coding\martincostello\project-euler\artifacts\bin\ProjectEuler.Tests\release\ProjectEuler.Tests.dll : error TESTRUNABORT: Test Run Aborted.
Build failed with 1 error(s) in 92.2s
Exception: D:\Coding\martincostello\project-euler\build.ps1:92
Line |
92 | throw "dotnet test failed with exit code $LASTEXITCODE"
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| dotnet test failed with exit code 1
Example PRs:
The failure doesn't seem to be universal though, as this one succeeded: martincostello/lambda-test-server#1361
I've just received a number of renovate PRs to upgrade Microsoft.NET.Test.Sdk from 18.7.0 to 18.8.0, and they are failing with the following error which appears to be consistent across all operating systems:
I see the same locally on my computer, so this doesn't appear to be genuine slowness:
Example PRs:
The failure doesn't seem to be universal though, as this one succeeded: martincostello/lambda-test-server#1361