I opened a PR that updates our repository
codecov.yml file to added some ignore paths. Unfortunately the paths I’ve tried have not been picked up and are being included in the coverage report for that PR.
codecov.yml file looks like this:
I’ve tried various ways of building the paths, including doing something like
**/Wrapper for example. Unfortunately no matter what I try in the yml file works. However, if I tell Slather to ignore these files, it works fine. I’d like to leverage Codecov as much as possible for this so that I’m not maintain coverage in two separate places.
According to the docs, Codecov should be using the
codecov.yml file in the branch, and not the
master version. Short of this, I’m running out of ideas.
Also, if I specify the path in the
Pods is still included.
Can you share a commit SHA so I can check the logs for errors?
I am having same issue, no ignores seem to be working.
Sorry for the delay here. Your ignore section is invalid. It should be
Can you confirm it matches that format please?
Please provide a recent commit SHA, @scott
Thanks @drazisi. Question:l Are the ignore paths relative to the “paths” listed in the “project” and “patch” section, or is it global from the root of the project / base where the codecov.yml file exists?
All paths anywhere in the codecov.yml would be relative to the git repo root, or, if used, the
-R flag of the bash uploader.
**/*.generated.swift is not working. Even if I give a full path to a generated file it doesn’t work.
It looks like you are using
branch under your pull comment. The correct key is
I have corrected the docs
That fixed it thanks! It said my yml was valid before. Is there another way to know that my yml is broken?
Our validate endpoint is a little…confused… right now. Once we finish deploying all the new things it relies on, we’ll get it fixed. Sorry it was incorrect.
For now, please trust the yaml reference in the docs.