-
Notifications
You must be signed in to change notification settings - Fork 156
Patch Status should compare to merge-base instead of HEAD #83
Comments
Can you diagram this out? Because from my understand this is not an expected behavior. The base commit used for comparison would only change if the pull request is rebased, not upon new commits to the base branch. Please see https://docs.codecov.io/docs/comparing-commits for more details. |
@sfgeorge and I wish. This is totally not happening at for instance https://github.com/zephyrproject-rtos/zephyr/pulls. Unless the submitter constantly rebases, even for a fixing a typo, the codecov report for is:open requests is useless because polluted by a daily stream of newer and completely unrelated commits. In other words all reports compare PR with master instead of comparing PR with PRbase as they should
Here's a specific example at zephyrproject-rtos/zephyr#13608
b40d6d0 is the PR and 992f29a is newer by 112 commits so 992f29a is clearly not the PR base! (Not sure about is:closed requests, they seem OK. I don't care much about is:closed in this project) |
One may suggest: "just rebase all the time". Sure, it's a mitigation. However:
|
For zephyr the "solution" was unfortunately to disable/remove the codecov spam. |
Are there any updates on this issue? |
Is there a workaround where we can specify the merge base to codecov? This is getting to the point where it's a showstopper on more complex/bigger projects. |
Any updates on this? It's practically useless for us because the PR has to rebase (or worse, merge) the base before triggering the build, and that creates a really bad practice among our team. |
Some hopefully relevant discussions and pointers:
|
@marc-h38 I'm having a hard time trying to understand how those links are relevant to this discussion. Are you trying to infer that there is work to be done here to get to the desired behavior and those pointers should serve as reference? |
So for anyone dealing with this issue in terms of github actions: Jobs run with |
As per codecov/codecov-bash#83 codecov has issues with github actions triggered by pullrequest. To remedy the situation, we use push as a trigger instead.
As per codecov/codecov-bash#83 codecov has issues with github actions triggered by pullrequest. To remedy the situation, we use push as a trigger instead.
As per codecov/codecov-bash#83 codecov has issues with github actions triggered by pullrequest. To remedy the situation, we use push as a trigger instead.
As per codecov/codecov-bash#83 codecov has issues with github actions triggered by pullrequest. To remedy the situation, we use push as a trigger instead.
A common false-positive I see from Codecov is as follows
The problem: The base of comparison being used is the latest-and-greatest of the integration branch, even though I branched off from an older commit of the integration branch.
One work-around is for me to simply rebase my feature branch atop the integration branch, and rebuild to get an accurate delta.
But it would be ideal if Codecov did a comparison against the merge-base for the PR. In git terms that would be
git merge-base integration-branch feature-branch
.The text was updated successfully, but these errors were encountered: