I am in the process of setting up carryforward flags so that I can run only relevant tests in a build.
We have a monorepo, which has several projects, but only two projects are tested, frontend and backend.
I have set up my CI to only run frontend or backend tests if respective files have changed, so only relevant coverage is reported to CodeCov.
Now, for a PR, if only frontend tests are run, I expect that backend test coverage will be carried froward from the last commit of master, but it looks like it’s trying to carry it from the last commit on the branch the PR is on, because of which I am getting 0% coverage from backend flag and hence my PR check is failing.
It’s a private repo, but if it helps to debug, the latest commit SHA on my test branch is 0669d83f971cba046eb9faf1a8f713547b9a1b5e.
We’re also experiencing this. Where a project had no coverage update, it shows as 100% in the comment and the coverage fails to carry over from master as expected. Here’s our YAML: