Skip to content

[CODE-874] New uploader is unable to find and upload coverage reports from Xcode #223

Closed
@chris-araman

Description

@chris-araman

Describe the bug
The new uploader fails to find coverage reports from Xcode.

To Reproduce

  1. git clone https://github.com/chris-araman/CombineCloudKit.git
  2. cd CombineCloudKit
  3. swift package generate-xcodeproj
  4. xcodebuild test -enableCodeCoverage YES -scheme CombineCloudKit-Package
  5. bin/codecov -n -Q github-action-2.0.1 -Z

Expected behavior
The coverage report is found and uploaded successfully.

Additional context
codecov-action@v2 uses the new uploader. codecov-action@v1 used the old bash uploader. The new uploader fails to find coverage reports from Xcode when the bash uploader found them successfully. I encountered this issue when attempting to migrate from codecov-action@v1 to @v2.

It seems this functionality was implemented in the bash uploader here:
https://github.com/codecov/codecov-bash/blob/ae76691c8554334bc1ddc355f6667fd36d6890f5/codecov#L1148

There are notes in #15 about wanting to keep this project a "pure uploader". I think separating the concerns of the uploader from the concerns of something processing reports is admirable. However, I think this sort of boilerplate logic is useful to users of the uploader. Perhaps it can be ported to a more coverage-friendly environment (Node.js, Typescript) alongside the uploader functionality, even if it's in a separate module?

This issue is preventing me from migrating to the new uploader via codecov-action@v2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    selected for developmentUsed for issues that the codecov team is/will be actively working on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions