Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Option to Suppress Specific Error Messages in PR Comments #642

Open
Kobby-Bawuah opened this issue Feb 4, 2025 · 0 comments

Comments

@Kobby-Bawuah
Copy link

What product do you want to improve?
PR comments and test report processing in the Codecov web application.

Is your feature request related to a problem? Please describe.
When JUnit XML files fail to process (e.g., due to failed tests or 0 tests in the report), Codecov posts a separate error message in PRs. This message can confuse end users since no coverage report is provided. Some users are looking for a way to reduce this noise while keeping other comments and status checks intact.

Describe the solution you'd like
Add a configuration option in codecov.yml to suppress specific error messages (e.g., "We are unable to process any of the uploaded JUnit XML files...") from PR comments. This would allow users to maintain other PR feedback while avoiding noisy or confusing error messages.

Describe alternatives you've considered

  • Disabling PR comments entirely (not ideal for the user as they want to retain coverage feedback).
  • Validating test reports before upload (helps but not always feasible for all cases).
  • Advised the user to address the underlining issue such as adjusting their CI/CD to either ensure tests always run, skip uploads if no tests are collected, or add a placeholder test.

Additional context
This issue is most common with edge cases involving failed tests or XML reports with 0 tests. Users see error messages without coverage data in their PRs, which adds unnecessary confusion. Example of error message:
We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

@covecod covecod bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

1 participant