-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Add a make target to generate test coverage report #3310
🌱 Add a make target to generate test coverage report #3310
Conversation
We've had coverage reports in the past and wasn't really helpful in many ways. Is there a related issue we're trying to fix by adding this command? How are we expected to use it? I'm not opposed to merging this in, just trying to clarify expectations. |
It looks like there might be an upstream bot related to producing coverage data here: https://github.com/kubernetes/test-infra/blob/aa3d9843f6fc0443dbdce78dab126687334afade/robots/coverage/docs/design.md |
I spoke with Ben about the coverage bot and he point me the that knative is using that, so i went in their slack and spoke with them to see what we need to do and got this answer below, before was not clear enough to me how to enable the whole thing High level steps are:
the 0 step is adding similar command that Fabrizio did here, I'm going to replicate this to capaz as well :D thanks! |
@vincepri I agree that having coverage reports and not taking actions on them is a waste of resources.
I don't see a real value in having those data generate continuously, but I'm. not opposed on having such a bot generating |
I think something like https://codecov.io/ would be really helpful but people insisted on using prow and it is rather convoluted from my brief attempt to make it work |
I tend to agree with @benmoss of using codecov, less work on the configuration side and easy to plug in |
We've discussed this a while ago, it would be great to use what prow offers by default instead of adding additional external tools |
any plans to move forward with this? |
@vincepri @fabriziopandini @benmoss are we okay to move forward with this as-is for now? Personally I also prefer codecov and have used it successfully in the past but I understand the value of standardizing tooling across the k8s projects. Maybe we can reach out to sig-testing for guidance. I think it's good incremental value to at least be able to calculate the coverage so +1 from me. |
@CecileRobertMichon No problem from my part merging this as-is, it'd only be used in development. One thing I'd like to avoid is to use code coverage percentages as a target we have to achieve or keep up with. Usually, that has the adverse effect and tests are written to cover statements, rather than to test specific behaviors. If we all agree that the intent is just informational, +1 merging and keep iterating |
Yeah I think was all side-track conversation about @vincepri's comment
I don't have a strong opinion about this PR, I probably won't ever use it 😄 |
/retest |
/lgtm |
/approve |
1 similar comment
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benmoss, ncdc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR adds a make target to generate test coverage reports