we have an open PR in our repo with several changes to codecov.yml, including the name change from .codecov.yml to codecov.yml (as required in the current docs).
Most of all we want to disable patch statuses and set a 1% threshold.
The changes have no effect on the PR builds though, and checking the yaml on the report page I noticed that it’s the old yaml of the master branch (not even the develop branch that we want to merge into). The validation tool confirms the new yaml is valid.
Optional('skip_if_assumes'): <class 'bool'>}) did not validate {'target': '55%', 'threshold': '1%', 'flags': 'unit'}
Key 'flags' error:
Or(None, [Regex('^[\\w\\.\\-]{1,45}$')]) did not validate 'unit'
'unit' should be instance of 'list'
Looks like your flags section is off. Can you share the codecov.yml here and we’ll take a look?
Edit: Didn’t realize this was public, looking…
(as an aside, our old validate endpoint is not yet linked to our new, stricter, validator, so it’s only 97% trustworthy right now)
I think it’s upset because you aren’t defining the flags anywhere, that I can see. They need to be defined under the top-level flags key in order to be used in the status.