-
Notifications
You must be signed in to change notification settings - Fork 1
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
Failed check status 1 - No coverage information found on head #1595
Comments
Verbiage revision: "This commit (sha link) is missing coverage information causing a failure of your Codecov project check. Please upload a coverage report for this commit." |
umm... the revision doesn't call out the HEAD missing a report |
Interestingly it seems that we already do this: https://github.com/codecov/worker/blob/d4496ed0e950f772c5ad0e33e770bf251223d87e/services/notification/notifiers/mixins/message/sections.py#L148 Apparently we have a message in the PR comment when there's no coverage information for the base or the head. It links to https://docs.codecov.com/docs/error-reference#section-missing-pull_request-commit It's not explicit if it's the BASE or HEAD that's missing, but you have the branch and the commit info. |
@giovanni-guidini That's great, and can we improve the existing error messaging? A good error message should be specific and give user a good direction so... Should it be link to https://docs.codecov.com/docs/error-reference#missing-head-commit Can we be specific about it's missing a head commit? |
Yes, we can change the error messaging for sure. I'm not quite convinced this message will ever be sent for the head commit though. UPDATE As mentioned in the detailed investigation, the UI messages could also be more actionable. See more details here |
Current message:
Proposed message:
Please review the proposed message @giovanni-guidini @aj-codecov |
I don't particularly like "before proceeding to push a pull request". Technically you push commits. They can be to a pull request. And pushing a new commit would change the HEAD, and we might have a new report for it anyway. I'd keep the ending of the current message. "Please upload reports for the commit aadfd57 to get more accurate results." I'd also maybe break it into 2 separate lines to make it more similar to a callout.
|
@giovanni-guidini Thanks for elaborating the nuances. That makes sense. |
ticket: codecov/engineering-team#1595 Change message when the HEAD of the PR we have is not up to date with the PR's most recent head. Makes the message more actionable. Check ticket for further info.
CI failure scenarios: No coverage info for HEAD commit
PR check status message: Your project check has failed due to HEAD missing a report. Please upload the report before proceeding to push a pull request.
Use-case: Project coverage
User configurable: yes
The text was updated successfully, but these errors were encountered: