Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Patch Status should compare to merge-base instead of HEAD #83

@sfgeorge

Description

@sfgeorge

A common false-positive I see from Codecov is as follows

  1. I create a pull request which Codecov reports green as improving code coverage by ~ 1%. ✅
  2. Separately, a colleague's PR which improves coverage by ~ 4% is merged into the integration branch. ✅
  3. I trigger a new build on my PR - and now Codecov falsely reports that the Patch Status for the change in coverage introduced by my PR would purportedly decrease coverage by ~3%. ❌

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions