Skip to content

[BUG] codecov-action generates coverage.xml when it already exists and disable_search is enabled #1933

@Dreamsorcerer

Description

@Dreamsorcerer

Describe the bug
When specifying the file that should be uploaded (coverage.xml) with the files option and even using disable_search as the docs suggest, the logs still show "Generating coverage.xml" and the action overwrites the existing coverage.xml, fails (because it's using the wrong RC file) and the job fails.

This seems particularly odd behaviour to me given that the example workflows suggest you should generate the xml file in the previous step. So why is codecov-action generating it a second time?

To Reproduce
https://github.com/aio-libs/aiohttp/actions/runs/24285058345/job/70912960518

Expected behavior
Don't overwrite my coverage.xml file.

Product Area
action

Versions

  • CI/CD: GitHub Actions
  • Uploader: codecov-action@v6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions