Require Codecov coverage reporting for C# and Python projects - #255
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Codifies Codecov coverage reporting as a required (best-effort) behavior for C# and Python repositories by extending the workflow contract and the machine-readable spec used for audits/validation.
Changes:
- Add WORKFLOW.md contract clause D1.6 requiring best-effort coverage upload to Codecov for C# and Python repos with tests.
- Extend secrets spec to support per-language required mechanisms via
typeMechanisms(mapping C# and Python -> Codecov mechanism). - Add new project-type checks documenting the expected coverage collection + Codecov upload behavior for C# and Python.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| WORKFLOW.md | Adds D1.6 coverage-to-Codecov guarantee for C# and Python (best-effort). |
| spec/secrets.schema.json | Extends the secrets schema with a typeMechanisms property. |
| spec/secrets.json | Documents and defines typeMechanisms mapping for C# and Python to require the Codecov mechanism. |
| spec/project-types.json | Adds new per-type checks describing required Codecov coverage reporting for C# and Python. |
Promote codecov from an opt-in feature to a per-language requirement: - project-types.json: add csharp.coverage.codecov and python.coverage.codecov checks (tests collect coverage and upload via codecov/codecov-action, best-effort; CODECOV_TOKEN present, threaded via secrets: inherit). - secrets.json: add typeMechanisms (csharp -> codecov, python -> codecov) so the audit requires the codecov mechanism for those types, not just when the action happens to be present. secrets.schema.json gains the property. - WORKFLOW.md D1.6: the coverage guarantee. Best-effort by design (fail_ci_if_error: false), so a Codecov outage or an absent token never reds the required gate; a missing upload or token is a conformance finding, not a broken build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ptr727
force-pushed
the
feature/codecov-required
branch
from
July 7, 2026 16:12
620490f to
60fa907
Compare
This was referenced Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codifies your rule: C# and Python projects must report coverage to Codecov (best-effort,
CODECOV_TOKENpresent). Promotes codecov from an opt-in feature to a per-language requirement.csharp.coverage.codecov+python.coverage.codecovchecks.typeMechanisms(csharp/python->codecov) so the audit requires the codecov mechanism (CODECOV_TOKEN) for those types;secrets.schema.jsongains the property; the topnoteexplains it.fail_ci_if_error: false, so a Codecov outage never reds the gate).The implementation PRs land alongside: PlexCleaner already wired; Utilities #377, LanguageTags #249, NxWitness #490 add the upload step + coverlet +
secrets: inherit; aiopurpleair/HA already conformant. jq + validate.py (23 cataloged) + markdownlint + editorconfig-checker all clean.