feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Component's project coverage status doesn't match with the specified paths in the component config

Open kwonoj opened this issue 4 months ago • 1 comments

Describe the bug I'm trying to understand project coverage check for the components, I'm seeing the number differences the coverage in the paths vs. what codecov reports in the pull request checker.

I have a config like below, to enable check for the partial coverage of the whole source files.

component_management:
  individual_components:
    - component_id: api
      name: "@some/api"
      paths:
        - packages/api/src/**
      statuses:
        - type: project
          target: 25
          threshold: 3

In the file explorer, given path have about > 70% of coverage

Image

The component section however, gives ~24% of coverage for HEAD

Image

as well as ci checker

Image

I have trouble to understand why there are large differences in the actual path vs. component coverage I configured, and also where does those 24% comes from.

Did I miss something in the config? or if not, is there a way to debug this further + how do I correctly fix?

Environment (please complete the following information): Self hostes, 25.6.2

kwonoj avatar Jul 31 '25 18:07 kwonoj