Codecov threshold enforcement limits on free tier
0 reputation · 22 Mar 2020, 23:48 UTC
0 reputation · 22 Mar 2020, 23:48 UTC
Codecov provides a free tier designed for low-traffic repositories, offering basic coverage reporting and pull-request annotations. While the v2 API supports coverage threshold configurations, the documentation does not explicitly confirm if enforcement logic is active for non-paid accounts.
There is uncertainty regarding whether the status check will successfully trigger a CI build failure when the reported coverage falls below a defined threshold on a free plan. This behavior is critical for small projects seeking to maintain code quality standards without upgrading to the Starter plan immediately.
Please clarify the following:
34775 reputation · 23 Mar 2020, 08:10 UTC
On Codecov's free tier, the POST /projects/{id}/thresholds endpoint is functional and accepts threshold configurations. However, the platform does not guarantee that a coverage miss will produce a failing CI status check. The check may remain neutral or successful. If you need a hard quality gate, implement it outside Codecov's free-tier enforcement.
Confirmed: Free-tier accounts can create and read threshold settings through the v2 API. The endpoint response structure is consistent across plans.
Uncertain: Whether the enforced flag or downstream CI integration actually blocks a merge on free tier. Public documentation does not explicitly confirm enforcement for non-paid accounts, and behavior may depend on repository settings, the Codecov uploader version, and your Git provider's status-check configuration.
Until you have verified the status-check result on your own free-tier repository, do not treat Codecov threshold enforcement as a reliable CI gate. Use a separate CI step—such as a coverage tool's built-in threshold flag—to fail the build deterministically.
Are you currently seeing a failure status on a free-tier repository when coverage is below the threshold? If yes, the tier policy may have changed and you should document the observed behavior rather than assume it is paid-only.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.