feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Feedback about the new pull request comment

Open kylemann opened this issue 3 years ago • 66 comments

Thanks for dropping by! 👋

We've been iterating and updating the layout, summary, and copy of the pull request comment.

  • What do you think about the changes?
  • What would you'd like to see improved?
  • What are challenges you've experienced with the report?
  • How do you use the comment today?
  • How could the report better help your workflow?
  • Any general thoughts you'd like to share!

We greatly appreciate your time and thoughts - looking forward to hearing from you ❤

Codecov team

This issue is intended to share and collect feedback about the tool. If you have support needs or questions, please see our support page.

kylemann avatar Dec 17 '21 10:12 kylemann

I think it's a great feature, but it can sometimes clog up a PR review screen, so it would be great if they were collapsible so that we can read the code around them more easily when desired.

TechMaz avatar Feb 15 '22 17:02 TechMaz

@TechMaz thank you for your feedback. We are actually experimenting with a new layout, see below. It prioritizes the high level summary and then collapses the other reporting data (impacted files, table, etc).

Would love to hear your feedback 🙏

new_comment

codecovdesign avatar Mar 03 '22 12:03 codecovdesign

@eliatcodecov Please watch this issue we have open this issue one week ago still don't get any respond yet.

https://github.com/httpie/httpie/pull/1434

openrefactory avatar Sep 07 '22 04:09 openrefactory

I love it! It's so much cleaner and less obtuse <3

daniellockyer avatar Sep 15 '22 14:09 daniellockyer

I'm not sure how that's possible but pull request form shows me wrong coverage result - it says my pull request will decrease project coverage, although I'm confident my changes won't not affect coverage at all. I don't see that problem in the codecov web application.

I also compared coverage.xml files uploaded to codecov for corresponding commits and they're identical.

The pull request with wrong form: https://github.com/unmade/shelf-back/pull/97

Full report at codecov: https://app.codecov.io/gh/unmade/shelf-back/pull/97

Screenshot 2022-10-05 at 22 22 19

And here's the coverage files for corresponding commits:

unmade avatar Oct 05 '22 19:10 unmade

Hi,

thanks for providing codecov tests to the Open Source community for free. After adding some tests, I found your report reported lower coverage than before, when no test was there at all. See https://github.com/argoproj/argo-rollouts/pull/2303#issuecomment-1272410769

I do not trust the codecov report, because why it's going down when I literally create the first test file in this package?

PS: I just measured the test coverage of the new file created, this is 87% (according to IntelliJ).

nitram509 avatar Oct 08 '22 23:10 nitram509

This may sound like a nitpick but the coverage diff has a sign error in the GitHub comment that the bot is posting. It says "coverage decreases by -3%" but decreasing by a negative amount would mean increasing. Perhaps it should say "coverage decreases: -3%" to make it more accurate?

KnorpelSenf avatar Oct 23 '22 10:10 KnorpelSenf

On this pull request I simply added some lines to the documentation (README.md and README.rst), but CodeCov warned that code coverage had been reduced by my change. It would be nice if obvious documentation files didn't count. Thanks.

ssb22 avatar Oct 29 '22 21:10 ssb22

Hi,

On this PR, I just copy an old case and then mod one function call, no tests were removed, and the test coverage decreased.

mamil avatar Nov 21 '22 08:11 mamil

I'm unable to view the coverage report like before on the PR's. Codecov is such a big mess rn.

sayo96 avatar Dec 14 '22 10:12 sayo96

"coverage decreases by -3%"...Perhaps it should say "coverage decreases: -3%" to make it more accurate?

Thank you, @KnorpelSenf that makes sense - will update text clarification in next iteration.

codecovdesign avatar Dec 14 '22 13:12 codecovdesign

unable to view the coverage report like before on the PR @sayo96 it's a new PR layout we are testing. is there something specific that you noticed and/or preferred to see that was in the the previous comment?

codecovdesign avatar Dec 14 '22 13:12 codecovdesign

Is it possible to disable the automatic comments?

We'd like to keep using the Codecov GitHub app (so that our codecov.yml file gets synced with Codecov) but not receive the PR comments.

Update: it looks like comments can be disabled by adding comment: false in the Codecov config.

PaulRBerg avatar Feb 07 '23 19:02 PaulRBerg

Is it possible to manually request that codecov re-run the report? I've found the most spotty aspect of codecov in our development workflow to be when we force push to a branch with new test coverage but codecov doesn't update the statistics.

It would be great to be able to basically say "@codecov rerun" or something along those lines in the PR.

slifty avatar Feb 14 '23 18:02 slifty

Hey! Over at https://github.com/Significant-Gravitas/Auto-GPT/, we are running into some severe problems with CodeCov. We tried reaching out to a rep and getting some of it worked out and a demo, but they were unavailable at our scheduled time. We liked CodeCov, but it currently needs fixing and denying all PRs. I don't particularly want to swap providers, but hundreds of people are asking us why CodeCov is broken, and we need help finding answers. I would love a reply as soon as you can

ntindle avatar Apr 25 '23 01:04 ntindle

What about the StateHasChanged implementation for the other components, like MudTabs and etc. ?

borislavnnikolov avatar May 05 '23 11:05 borislavnnikolov

The pull request comment seems good to me (I'm just starting with Codecov), but there seems to be a bootstrap problem which I describe here: when there is nothing to compare to (because the base commit doesn't have any code in it yet), it's treated as a error situation instead of as though all the changes are new code (which...they are 😁).

Once my PR is merged, we'll presumably never encounter the situation again, so perhaps it's not real important, but fixing it would improve the user's on-boarding experience, and it doesn't seem like it would be that hard to address.

webbnh avatar May 05 '23 15:05 webbnh

@webbnh thank you for your feedback!

Once my PR is merged, we'll presumably never encounter the situation again, so perhaps it's not real important, but fixing it would improve the user's on-boarding experience

💯 that's right, the comment has a missing base report and looks like an error 🙉 . We are actively looking to have the 1st comment more welcoming and clear as seen below. If you have any thoughts or revisions you'd make let me know!

1st_time_ux

codecovdesign avatar May 23 '23 12:05 codecovdesign

Let's do the math!) Screen Shot 2023-07-15 at 3 59 46 PM

iselo avatar Jul 15 '23 14:07 iselo

Those are rounded numbers, so it could have gone down by 0.008 from 99.614 to 99.606 which would be rounded to 0.01 from 99.61 to 99.61. Perhaps we would want the diff to operate based on the rounded absolute values, but that could effectively hide a decrease in test coverage.

KnorpelSenf avatar Jul 16 '23 04:07 KnorpelSenf

Explicit rounding aside, floating point math is much harder than it seems. (Any time you see a decimal point in the middle of the number, assume that anything to the right of it is "an estimate"! 😁)

webbnh avatar Jul 18 '23 18:07 webbnh

Thanks for your great service!

I'm not sure if I'm doing smth wrong, but I get the following warning on my personal (!) project:

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

ref: https://github.com/Gottox/libsqsh/pull/88#issuecomment-1698853529

I also enabled the app for this account: image

Is that a false positive?

Gottox avatar Aug 30 '23 10:08 Gottox

@Gottox thank you for raising this 🙏 . If the GitHub app is installed, this appears to be a bug and should not have been shown. I've created an bug issue and raised with the team.

codecovdesign avatar Aug 31 '23 17:08 codecovdesign

We've already setup comment without feedback: image

But why we're still getting this feedback section? image

yuekui avatar Sep 07 '23 23:09 yuekui

@yuekui thank you for surfacing this 🙏. We investigated it and appears to have been a bug that is now fixed. Let me know if you're still seeing the issue!

codecovdesign avatar Sep 12 '23 16:09 codecovdesign

image I took me a while to understand that this means the current run that uploads the report has not completed yet.

I would suggest to make this more obvious by changing the wording to something like

This the last uploaded report is for commit 1234567 but the latest commit for this PR is 4567890, this comment will be updated as soon as the report for that commit has been uploaded.

karfau avatar Oct 04 '23 20:10 karfau

👋 Hey there, big fan of PR comments and y'alls coverage checks in general! Really appreciate this place for feedback!

A recent change might have moved the `diff` into a details section with `files` being shown at the top level patch

Previously only the diff was shown with the same header and footer, without the specifics on files. I preferred that approach since it focused more on improving coverage in the patch instead of missing coverage[^1].

I found a section in the docs on changing this layout and was wondering if the comment example[^2] is accurate with the dropdown above? The codecov.yml used in the comment's project has no layout section at the moment.

Also wondering how adding condensed_ changes the comment layout? I'll probably try out a few different options soon but it's not super clear to me right now. Thanks for all of the great features! :raised_hands:

[^1]: 😉 💚 https://about.codecov.io/blog/the-case-against-100-code-coverage/ [^2]: Small note, there's an extra space before the hide_project_coverage field

zimeg avatar Nov 28 '23 03:11 zimeg

👋 Hey there, big fan of PR comments and y'alls coverage checks in general! Really appreciate this place for feedback!

A recent change might have moved the diff into a details section with files being shown at the top level Previously only the diff was shown with the same header and footer, without the specifics on files. I preferred that approach since it focused more on improving coverage in the patch instead of missing coverage1.

I found a section in the docs on changing this layout and was wondering if the comment example2 is accurate with the dropdown above? The codecov.yml used in the comment's project has no layout section at the moment.

Also wondering how adding condensed_ changes the comment layout? I'll probably try out a few different options soon but it's not super clear to me right now. Thanks for all of the great features! 🙌

Footnotes

  1. 😉 💚 https://about.codecov.io/blog/the-case-against-100-code-coverage/
  2. Small note, there's an extra space before the hide_project_coverage field

@zimeg thanks for the detailed feedback here 👍🏽

You can bring back the older view by adding the following to your codecov.yml

layout: " header, diff, files, footer"

However, since you're open to it, I'd encourage experimenting with the options a little bit; there's a lot of good stuff in the new changes that I'm sure you'd benefit from.

Adding condensed_ accomplishes the following for each element

  • condensed_header : updated verbiage to be more concise.
  • condensed_diff : is more verbose - giving you coverage "diff" between current and last commit for which we have coverage
  • condensed_files : is now furled by default, which is largely driven by feedback we've historically received about the PR comment being large

rohan-at-sentry avatar Nov 28 '23 22:11 rohan-at-sentry

In this report, codecov tells me that there is 1 line missing coverage in my change:

image

However, clicking 1 missing, or any other link, only leads me to the full coverage breakdown of throttler.go, nothing to show me what specific 1 line was missing coverage in my change.

Link to OSS vitessio/vitess PR comment: https://github.com/vitessio/vitess/pull/14971#issuecomment-1895210210

shlomi-noach avatar Jan 17 '24 07:01 shlomi-noach

It pollutes the entire PR, I cannot review the diff. Cause it pulls in unnecessary lines-of-code as well. This was not well thought out from UX point of view, I want to disable codecov just to get rid of the comments.

EverWinter23 avatar Jan 30 '24 18:01 EverWinter23