Codecov.yml not working?

Description

Hi everyone,
We have have 3 projects (in a monorepo). Those projects live under “saf-web”, “saf-api” and “saf-ops”, the reports are uploaded from CI directly from each project (that are in separate docker containers). This causes that our file structure in CodeCov does not have each report on each folder.

Basically, what I am trying to do is using path fixing and projects/flags, but our changes are not being picked up by CodeCov (I think it worked in the PR, since I saw in GitHub verifications “project/api, “project/web” and so on and not just “project”).

I also need to apply path fixing so we can navigate the file structure.

Here are the contents of our yaml, just in case:

codecov:
  max_report_age: off
  notify:
    require_ci_to_pass: yes
    after_n_builds: 3
coverage:
  fixes:
    - "app/::saf-api/app/"
    - "src/::saf-ops/src/"
    - "core/::saf-web/core/"
    - "modules/::saf-web/modules/"
    - "containers/::saf-web/containers/"
  status:
    project:
      default: off
      api:
        flags: api
      web:
        flags: web
      ops:
        flags: ops
  ignore:
    - "db/.*"
    - "spec/.*"
flags:
  api:
    paths:
      - app
  web:
    paths:
      - core
      - modules
      - containers
  ops:
    paths:
      - src

I ran the validation tool and it passes fine, but in https://codecov.io/gh/safxgroup/saf/settings/yaml for “Current repository yaml”:

{
    "codecov": {
        "require_ci_to_pass": true
    }, 
    "comment": {
        "behavior": "default", 
        "layout": "reach, diff, flags, files, footer", 
        "require_base": false, 
        "require_changes": false, 
        "require_head": true
    }, 
    "coverage": {
        "precision": 2, 
        "range": [
            70.0, 
            100.0
        ], 
        "round": "down", 
        "status": {
            "changes": false, 
            "patch": true, 
            "project": true
        }
    }, 
    "parsers": {
        "gcov": {
            "branch_detection": {
                "conditional": true, 
                "loop": true, 
                "macro": false, 
                "method": false
            }
        }, 
        "javascript": {
            "enable_partials": false
        }
    }
}

Our File tree in Overview does not have the root folders as it should after the path fixing.

Repository

Private

Thanks!

2 Likes