Codecov.yml not updating

Description

Tried everything I can think of to get our codecov.yml to update, but still no success. For a long time it was stuck on an old version that our repo had long since modified. Somehow amidst trying various things that old one disappeared, but it still won’t pick up the current one. Looking at https://codecov.io/gh/VivaaHealth/vivaa/settings/yaml

Some things I’ve tried:

  • Looked at the docs and at other posts in this forum regarding this problem
  • Made sure it’s named “codecov.yml” (no initial dot) and is at the repo root
  • Checked that it passes validation
  • Tried changing it to just say “comment: off” as the entire content (in case of an undetected validation failure)
  • Tried adding the “-y” option to explicitly set the yaml location
  • Tried manually uploading via bash uploader (without “-F” flags, which our CI uses)
  • Tried manually uploading via Python uploader, latest version (likewise)
  • Tried setting the default branch to something else besides “master” and uploading from there
  • Checked under commit > Build > Yaml, but it says “No yaml found” for all commits
  • The settings page has a button to “Create a codecov.yml file”. Pushing that and proceeding leads to GitHub complaining that the file already exists.

Any ideas?

Repository

Private repo: https://github.com/VivaaHealth/vivaa

Here’s a recent commit on master:
https://codecov.io/gh/VivaaHealth/vivaa/commit/c3d461591052341d8820593f1bd59b87325c5603/build

Versions

Running in CircleCI using the bash uploader, and locally on MacOS Catalina.

Hi @LukeNotable, I’m noticing an error in your codecov.yml file which is why it’s not updating. Feel free to post or DM your yaml and I can help debug it with you.

Thanks, Tom!

Here’s what we currently have:

comment: off

ignore:
  - "backend/ehr-export/orchestrator/scripts"
  - "backend/ehr-export/orchestrator/db"
  - "backend/primary/scripts"
  - "backend/primary/db"
  - "backend/primary/bin"

coverage:
  status:
    patch: off
    project:
      default: off
      orchestrator:
        flags: orchestrator
        target: 80
      primary:
        flags: primary
        target: 80
      rate_limiter_api:
        flags: rate_limiter_api
        target: 85

flags:
  orchestrator:
    paths:
      - backend/ehr-export/orchestrator
    carryforward: true
  primary:
    paths:
      - backend/primary
    carryforward: true
  rate_limiter_api:
    paths:
      - backend/rate-limiter/api
    carryforward: true

I’ve also tried it with just the first line (comment: off) and with just a YAML comment, among other variations, all without success.

Hi @LukeNotable,

comment: off

ignore:
  - "backend/ehr-export/orchestrator/scripts"
  - "backend/ehr-export/orchestrator/db"
  - "backend/primary/scripts"
  - "backend/primary/db"
  - "backend/primary/bin"

coverage:
  status:
    patch: off
    project:
      default: off
      orchestrator:
        flags:
          - orchestrator
        target: 80
      primary:
        flags:
          - primary
        target: 80
      rate_limiter_api:
        flags:
          - rate_limiter_api
        target: 85

flags:
  orchestrator:
    paths:
      - backend/ehr-export/orchestrator
    carryforward: true
  primary:
    paths:
      - backend/primary
    carryforward: true
  rate_limiter_api:
    paths:
      - backend/rate-limiter/api
    carryforward: true

should work for you!

It worked! Thanks!!!