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

Bump code coverage #5700

Merged
merged 6 commits into from
Dec 17, 2024
Merged

Bump code coverage #5700

merged 6 commits into from
Dec 17, 2024

Conversation

RussKie
Copy link
Member

@RussKie RussKie commented Nov 27, 2024

Microsoft Reviewers: Open in CodeFlow

@dotnet-comment-bot
Copy link
Collaborator

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.Caching.Hybrid 84 86

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=880413&view=codecoverage-tab

@dotnet-comment-bot
Copy link
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Caching.Hybrid Line 86 77.7 🔻

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=880475&view=codecoverage-tab

@RussKie
Copy link
Member Author

RussKie commented Nov 27, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet-comment-bot
Copy link
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Caching.Hybrid Line 86 77.94 🔻

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=880521&view=codecoverage-tab

@RussKie RussKie disabled auto-merge November 29, 2024 06:27
@RussKie RussKie closed this Nov 29, 2024
@RussKie RussKie reopened this Nov 29, 2024
@dotnet-comment-bot
Copy link
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Caching.Hybrid Line 86 84.76 🔻

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=882108&view=codecoverage-tab

@dotnet-comment-bot
Copy link
Collaborator

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.AI.OpenAI 72 77

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=892985&view=codecoverage-tab

@danmoseley danmoseley requested a review from a team as a code owner December 12, 2024 01:02
@danmoseley
Copy link
Member

Sorry @RussKie thought this was an old PR but you're working on it right now.

Q: if this "code coverage threshold" system seems to be working well in dotnet/extensions, is it something interesting to start experimenting with in dotnet/runtime, in the libraries? to my knowledge, they only have the ability to gather coverage, not hold thresholds. We all know the reservations and limitations of code coverage and code coverage thresholds, but I'm wondering whether the experiences in this repo might suggest it's valuable for at least some of those libraries. @joperezr @ericstj @stephentoub

@stephentoub
Copy link
Member

if this "code coverage threshold" system seems to be working well in dotnet/extensions, is it something interesting to start experimenting with in dotnet/runtime, in the libraries?

Honestly I'm finding this system to be quite annoying.

@dotnet-comment-bot
Copy link
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Caching.Hybrid Line 86 77.82 🔻

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=893124&view=codecoverage-tab

@eiriktsarpalis
Copy link
Member

if this "code coverage threshold" system seems to be working well in dotnet/extensions, is it something interesting to start experimenting with in dotnet/runtime, in the libraries?

Honestly I'm finding this system to be quite annoying.

Agreed. I find the code coverage reports to be useful, but blocking PRs on an arbitrary threshold feels counterproductive.

@SteveSandersonMS
Copy link
Member

Agreed. I find the code coverage reports to be useful, but blocking PRs on an arbitrary threshold feels counterproductive.

Also agreed.

In some rare cases it might be helpful to catch cases where code coverage dropped unexpectedly, but my sense is that most of the time it would go down only for good and valid reasons.

If the bot simply posted the coverage delta as a comment, that would be enough to help us to notice if anything weird is going on, and perhaps would make it easier for reviewers to ask for an explanation or changes if new code seriously lacks coverage.

It's not fun to have to make edits to the coverage thresholds in csproj files when you know it's just bureaucracy and doesn't reflect anything to do with the product's actual quality.

@RussKie RussKie requested a review from a team as a code owner December 13, 2024 02:32
@RussKie RussKie enabled auto-merge (squash) December 13, 2024 06:25
@RussKie
Copy link
Member Author

RussKie commented Dec 17, 2024

Bump, still waiting for an approval.

@RussKie RussKie merged commit c08790c into dotnet:main Dec 17, 2024
6 checks passed
@RussKie RussKie deleted the bump_cc branch December 18, 2024 00:07
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants