Skip to content

Codecov not reporting back to Github Pull Request checks #290

Closed

Description

Describe the bug
Codecov not reporting back to Github Pull Request checks, even though report is successfully uploaded. Checks always remain in "Expected" state.

Environment (please complete the following information):

  • System: Codecov Github Action, codecov/codecov-action@v4

To Reproduce
Steps to reproduce the behavior:

  1. Action runs fine, e.g. https://github.com/bcgov/wps/actions/runs/8086129987/job/22095603938?pr=3422
  2. Results are on Codecov, e.g. https://app.codecov.io/github/bcgov/wps/commit/354c7a21c6c34060e2000dd9d486ee72cd037232
  3. Checks never move from expected to success state, e.g.
    Screenshot 2024-02-29 at 8 24 58 AM

Expected behavior
A successful Codecov processed run should update the checks

Additional context

  • Can view results on codecov page
  • Validated yaml here with:
curl -X POST --data-binary @projects/wps/codecov.yml https://codecov.io/validate
Valid!

{
  "ignore": [
    "^web/src/features/cHaines.*",
    "^web/src/features/fwiCalculator.*",
    "^web/src/features/fba.*",
    "^web/src/api/fbaAPI.ts.*",
    "^web/src/utils/env.ts.*",
    "^api/app/auto_spatial_advisory.*",
    "^api/app/db/crud.*",
    "^api/app/db/database.py.*",
    "^api/app/tests.*"
  ],
  "coverage": {
    "status": {
      "patch": {
        "default": {
          "threshold": 100.0
        }
      },
      "project": {
        "default": {
          "target": 80.0,
          "threshold": 3.0
        },
        "api": {
          "paths": [
            "^api/app.*"
          ],
          "threshold": 3.0
        },
        "web": {
          "paths": [
            "^web/src.*"
          ],
          "target": 73.0
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugFor issues and unexpected behaviors

Type

No type

Projects

  • Status

    Waiting for: Support

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions