Skip to content

Codecov is not in sync and shows inaccurate coverage #40174

Description

@shahar1

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

After merging my PR that added unit and integration tests to Kafka's hook (#40142), I noticed that its source code and associated coverage did not update on its corresponding Codecov page.

I'm aware that there were issues with the Codecov token that should have been solved after merging #40138, but it seems it went out of sync as it got stuck on this commit, while no errors were omitted.

Finally, I find the calculation of the coverage metric, shown in the commits page, to be very weird (it jumps between constant values that are quite far from one another):

image

What you think should happen instead?

  1. Ensure how the coverage metric is calculated.
  2. Rerun Codecov manually for all existing source code.
  3. Fix the post-tests-success action if needed, and figure out if it's possible to make it more verbose than it is today.

How to reproduce

Take a look at the Codecov recent commits.

Operating System

N/A

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

cc: @potiuk

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:CIAirflow's tests and continious integrationarea:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codearea:dev-toolskind:bugThis is a clearly a bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions