Skip to content

Coverage Report Not Arriving to GitHub when Test Results Are Uploaded As Well #843

@hisaac

Description

@hisaac

Describe the bug

I'm working on implementing test result reporting in our project. I've been able to get test results to upload and show up in the Codecov web UI as expected, but for some reason on the PR to add the test result functionality, code coverage information never gets posted.

The code coverage functionality works as expected in other pull requests, but has this issue specifically in the pull request to add test result reporting.

Environment (please complete the following information):

To Reproduce

Steps to reproduce the behavior:

  1. Introduce test result uploading in GitHub Actions workflow
  2. Upload code coverage information as before, and also upload test results
  3. Note that test results show up correctly in the Codecov web UI
  4. Note that code coverage information shows up correctly in the Codecov web UI
  5. Note that the coverage information does not get updated on the GitHub pull request

Expected behavior

I expected both test results and code coverage features to function as expected on the same pull request.

Additional context

Here is what I've got in my GitHub actions workflow:

Uploading code coverage:

- name: Upload Code Coverage to Codecov
  uses: codecov/codecov-action@v5
  with:
    fail_ci_if_error: true
    report_type: coverage
    token: ${{ secrets.CODECOV_TOKEN }}

Uploading test results:

- name: Upload Test Results to Codecov
  uses: codecov/codecov-action@v5
  with:
    files: ./artifacts/${{ inputs.test_plan }}.test-results.xml
    report_type: test_results
    token: ${{ secrets.CODECOV_TOKEN }}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions