-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Update codecov config to support commenting in PR #18143
Conversation
8a004fe
to
e02b101
Compare
@serathius I was checking other project's codecov configuration file and the official documentation, we should consider putting codecov token in Github Secret (maybe we need to regenerate a new token first, but we need to have access to the codecov account, which I don't know who to ping). I can't do this on my own since I don't have Github Repo Setting access, so this part I might need your help to look into this! Thanks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted filessee 22 files with indirect coverage changes @@ Coverage Diff @@
## main #18143 +/- ##
==========================================
- Coverage 69.08% 68.83% -0.25%
==========================================
Files 416 416
Lines 35127 35127
==========================================
- Hits 24266 24181 -85
- Misses 9475 9544 +69
- Partials 1386 1402 +16 Continue to review full report in Codecov by Sentry.
|
b885d3d
to
04cbea8
Compare
/retest |
db3968a
to
973fd14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks @henrybear327, the preview above in this pr is looking good.
3631092
to
7d424f5
Compare
Thanks for reviewing @jmhbnz! :) Currently, the Codecov comment is set to update the existing code coverage comment when a new commit is pushed (default behavior), instead of deleting the existing comment and creating a new one. Using the default behavior means that the code coverage information will likely be at the top of the comment, so PRs with long discussion threads will require some scrolling to view the code coverage information. Deleting the old one and adding a new comment with each commit will generate more email notifications though. In order to avoid email spamming, I think it's better that we use the default behavior. What do you think? :) |
/retest |
Thanks @henrybear327 for the PR. But I am curious why the coverage decreased for many go files even this PR doesn't change any go source code? |
Agreed. Let's keep it to one coverage comment per pr that is always up to date. |
@ahrtr I suspect it's due to rebasing. I will look into this! |
/lgtm thank you @henrybear327 ! |
7d424f5
to
2983939
Compare
This is due to indirect changes [1]. I suspect that during test coverage execution, we have some of the tests written in a way that is not deterministic. Because when I check the "indirect changes" of PRs from this list, hit/miss differences come from things like select cases (e.g. error handling, timeout, etc.), cache eviction, etc. So our test coverage percentage will have a small variation across runs, as you can see here. Do you think this makes sense @ahrtr? Reference: |
Thanks for the clarification, which basically makes sense. Can you pls add a comment to include the link for reference? |
2983939
to
45fa7ea
Compare
Thanks @ahrtr! I have
Not sure if this is what you expected :) |
Sorry for the confusion, I was saying to add a comment into the repo, e.g. above the Line 263 in 5790774
|
No worries :) Done as requested! Thanks |
Add missing directory fixing go.etcd.io/etcd/etcdutl/v3/::etcdutl/ Note: we have some of the tests written in a way that is non-deterministic across runs, thus, even when there is no code changes there might still have slight variation for test coverage [2] Reference: [1] etcd-io#18131 [2] https://docs.codecov.com/docs/unexpected-coverage-changes#reasons-for-indirect-changes Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
45fa7ea
to
1579c57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @henrybear327
Reference:
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.