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

Fix branch coverage #17226

Closed

Conversation

krisukox
Copy link
Contributor

@krisukox krisukox commented Jan 17, 2023

This PR fixes a branch coverage final report issue.

Currently, in the mergeBranches function we add only LHS if two branch coverages, which we want to merge, have different amount of branches. This causes an inaccurate final coverage report. This PR enables merging LHS and RHS.

@krisukox krisukox marked this pull request as ready for review January 17, 2023 11:33
@krisukox krisukox requested a review from lberki as a code owner January 17, 2023 11:33
@sgowroji sgowroji added team-Rules-Server Issues for serverside rules included with Bazel awaiting-review PR is awaiting review from an assigned reviewer labels Jan 17, 2023
@comius comius requested review from c-mita and removed request for lberki February 14, 2023 10:19
@c-mita
Copy link
Member

c-mita commented Feb 14, 2023

Whilst I'm not necessarily against this change, it doesn't really make the report more "accurate".

If the number of branches doesn't match, then we can't really say that the first branch from both sides correspond to one another.

I am curious as to how you're getting into the case with differing branches though; I know its possible with C++ templates but I am curious if other constructs can cause it.

@comius comius added awaiting-user-response Awaiting a response from the author and removed awaiting-review PR is awaiting review from an assigned reviewer labels Aug 23, 2023
@comius
Copy link
Contributor

comius commented Sep 25, 2023

Closing, because no user response since Feb, and for one month after flagged with waiting for user response. Please reopen if you have a response.

@comius comius closed this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-user-response Awaiting a response from the author coverage team-Rules-Server Issues for serverside rules included with Bazel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants