This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] New parameters to set coverage watermark
ClosedPublic

Authored by tanjinhua on Jan 8 2022, 7:52 PM.
Tokens
"Cup of Joe" token, awarded by tanjinhua.

Details

Summary

Add a pairs of parameters to set coverage watermark for llvm-cov, and user can change the percentage thresholds marked with different colors in the report.

Diff Detail

Event Timeline

tanjinhua requested review of this revision.Jan 8 2022, 7:52 PM
tanjinhua created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 8 2022, 7:52 PM
tanjinhua updated this revision to Diff 398390.Jan 8 2022, 8:09 PM

add reviewer

tanjinhua edited the summary of this revision. (Show Details)Jan 8 2022, 8:23 PM
tanjinhua added reviewers: arphaman, aprantl, vsk.
tanjinhua updated this revision to Diff 398474.Jan 9 2022, 5:41 PM

format code with clang-format

I'm not sure if we should support parameters in this direction, I'll add test cases if you guys think so.

tanjinhua updated this revision to Diff 398553.Jan 10 2022, 3:04 AM

update commit details

em... Any one know should I invite other guys to review this? Or do I still need to do anything else?

tanjinhua edited reviewers, added: kazu, alanphipps; removed: keith.Jan 23 2022, 5:54 PM

I'd prefer using "high" and "low" watermark instead of "medium" and "low".

Please add a test case. The documentation for llvm-cov tool also needs update.

tanjinhua updated this revision to Diff 403934.Jan 28 2022, 2:13 AM

add test cases and documentation

tanjinhua updated this revision to Diff 403967.Jan 28 2022, 4:28 AM

fix test case

Done, could you help me review again? So thanks!
@phosek @davidxl

Or anyone can help to review? Thanks a lot!

Hi, @phosek @davidxl, could you help me review again? So thanks!

phosek accepted this revision.Feb 24 2022, 1:07 AM

LGTM

This revision is now accepted and ready to land.Feb 24 2022, 1:07 AM

Hi, this is my first commit for llvm-project, I think this commit can try to push this branch to main now?
Refer to this link: https://llvm.org/docs/Phabricator.html#committing-a-change, is it ok to just leave a comment here, or what I do for next step?
If anyone can help me, so THX!

Hi @phosek, I'm fresh to llvm-project, could you teach me how to do next step?

Hi @phosek, I'm fresh to llvm-project, could you teach me how to do next step?

If you don't have a commit access, I can land the change for you.

Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 10:20 PM

Hi @phosek, I'm fresh to llvm-project, could you teach me how to do next step?

If you don't have a commit access, I can land the change for you.

Thanks, I don't have any permission to push, and I have try to ask here: https://discourse.llvm.org/t/ask-help-to-review-or-merge-my-commit/60702/5, lol
Could you help me land it, thanks a lot!