Latest NuGet package no longer works
See original GitHub issueHi there
we upgraded our coverlet NuGet package from 2.5.1 to 2.6, and now when we collect code coverage we face the following error on our previously working build:
2019-03-05T03:32:00.3145123Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : One or more errors occurred. (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) (Could not find file ‘/tmp/xunit.runner.visualstudio.dotnetcore.testadapter_4b89fa9e-938a-4b8b-9462-1be5220ac0f4.pdb’.) [/app/[redacted].UnitTests/[redacted].UnitTests.csproj]
2019-03-05T03:32:00.3171472Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.Core.RetryHelper.Do[T](Func1 action, Func
1 backoffStrategy, Int32 maxAttemptCount) in /Users/toni/Workspace/coverlet/src/coverlet.core/Helpers/RetryHelper.cs:line 58 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj]
2019-03-05T03:32:00.3183781Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.Core.RetryHelper.Retry(Action action, Func`1 backoffStrategy, Int32 maxAttemptCount) in /Users/toni/Workspace/coverlet/src/coverlet.core/Helpers/RetryHelper.cs:line 27 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj]
2019-03-05T03:32:00.3195634Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.Core.Coverage.GetCoverageResult() in /Users/toni/Workspace/coverlet/src/coverlet.core/Coverage.cs:line 108 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj]
2019-03-05T03:32:00.3208948Z /root/.nuget/packages/coverlet.msbuild/2.6.0/build/netstandard2.0/coverlet.msbuild.targets(35,5): error : at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in /Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line 67 [/app/[redacted].UnitTests/[redacted].UnitTests.csproj]
2019-03-05T03:32:00.5604147Z The command ‘/bin/sh -c dotnet test --results-directory /testresults --logger “trx;LogFileName=test_results.xml” /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=/testresults/coverage/ ./[redacted].UnitTests/[redacted].UnitTests.csproj’ returned a non-zero code: 1
2019-03-05T03:32:00.8160815Z ##[debug]$LASTEXITCODE: 1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:8 (2 by maintainers)
Top GitHub Comments
I had the same issue. I solved it using
/p:Exclude="[xunit*]*"
Yeah, this is the second minor version release that has blown up my CI. I’m already excluding xunit, but its reporting errors and returning a 1 exit code because it can’t find a PDB file for System.Threading.Tasks.Dataflow.dll. No effing kidding! That’s because its not my code.