Skip to content

noisy coverage statistics #132

Description

@danieleades

the coverage metrics seem to be a bit all over the place. This could be because some of the uploads to codecov are failing.

This can occur due to github's rate limiting API, and this is silent since by default the codecov action doesn't fail the job if the upload fails.

The best way to address this is to add the CODECOV_TOKEN to the repository secrets. When uploading using this token, there's no rate-limiting and this failure mode can no longer occur.

https://docs.codecov.com/docs/adding-the-codecov-token

You can also configure the codecov action to fail the build if the upload fails.

      - name: Upload coverage to Codecov
        uses: codecov/codecov-action@v4
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          files: lcov.info
          flags: ${{ matrix.crate }}
          fail_ci_if_error: true

I'd suggest doing both

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions