-
Notifications
You must be signed in to change notification settings - Fork 782
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
Code coverage issues #4124
Comments
As per recommendation we need to use PublishCodeCoverageResults@2 task. However, that task is currently broken. /cc: @vinayakmsft |
@vinayakmsft advised me yesterday that it may be few weeks before the fix will be rolled out. In the interim as a workaround we can run the task on Windows agents and install .NET 7. |
Is this fixed? |
Description
In the PR #4108 I had to decrease the code-coverage from 100% to 98% because the build pipeline handles the code-coverage processing incorrectly.
The following lines:
extensions/src/Libraries/Microsoft.Extensions.Http.Resilience/FaultInjection/Internal/Log.cs
Line 16 in e70559f
extensions/src/Libraries/Microsoft.Extensions.Http.Resilience/Resilience/HttpClientBuilderExtensions.Resilience.cs
Line 31 in e70559f
are correctly covered and tested, but the build fails.
There are also additional inconsistencies:
Check project coverage
step reports coverage of 98.46 - https://dev.azure.com/dnceng-public/public/_build/results?buildId=321876&view=logs&jobId=a7f66332-f7db-5a7e-ef2b-0455d70db552&j=a7f66332-f7db-5a7e-ef2b-0455d70db552&t=191c5785-431b-5c6c-a3e4-efe3a8133507Reproduction Steps
Increase the min coverage to 100, the build fails:
extensions/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj
Line 22 in 6d67b41
Expected behavior
Increase the min coverage to 100, the build should succeed:
extensions/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj
Line 22 in 6d67b41
Actual behavior
The build fails when increasing the code-coverage to 100
extensions/src/Libraries/Microsoft.Extensions.Http.Resilience/Microsoft.Extensions.Http.Resilience.csproj
Line 22 in 6d67b41
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
Please
The text was updated successfully, but these errors were encountered: