Engineering operations
A coverage report needs the right format and the right commit
Treat coverage ingestion as a chain of evidence: the intended tests produced this report, from this revision, for these files, and every expected upload arrived. Start by repairing a rejected format; finish by reconciling what the reviewer can actually see.
GitHub announced on 23 November 2026 that upload-code-coverage now rejects unsupported report formats. Previously, an upload could appear successful while showing no pull-request coverage. The required format is Cobertura XML. Valid reports are also treated more tolerantly: minor structural issues need not reject the whole file, and lines without a usable line number or hit count are skipped. That makes an accepted report a useful starting point, not proof of complete line data. (GitHub)
Establish whether this is your ingestion path
This feature requires Code Quality to be enabled. The announcement covers GitHub Team and Enterprise Cloud, including Enterprise Cloud with data residency, and excludes Enterprise Server. The setup guide expects existing tests running in Actions and a tool producing Cobertura XML. Its upload workflow needs code-quality: write; its example excludes fork pull requests from the upload step. (GitHub, GitHub)
For a Swiss business working with an external agency, name the repository owner before changing the workflow. An agency having access to code does not establish which organisation has bought the relevant product. Record the account, repository, workflow and responsible maintainer together. If this is a different coverage service, first identify its own report and permission contract rather than applying this change by resemblance.
Trace a report back to its producer
Our recommended review starts at the test job, not at the upload action. Record the framework and exporter versions, generation command, output path and repository revision. Check a small sample of paths against that revision. When a converter is involved, keep its input and configuration with the report: renaming a file cannot demonstrate a format conversion.
Use a deliberately small fixture in an authorised test repository before changing merge controls. Include a line intended to be exercised and a line intended to remain unexercised. Inspect the generated XML and the displayed file view together. A successful upload with an absent file should prompt investigation of paths and scope, rather than an assumption that the file has no uncovered code. These are proposed checks; KIURO has not run this fixture.
Match both sides of the comparison
GitHub’s documented workflow checks out the pull-request head commit rather than the merge commit so line numbers map to the diff. It runs on default-branch pushes to establish a baseline and on pull requests for comparison. When using Restrict code coverage, the guide says to require every status check associated with an expected coverage upload. Automatic workflow generation has no additional setup charge according to that guide. (GitHub)
Keep the two revision identities visible in the review record. “Latest main” is an unstable description of a baseline; a commit identifier lets the next maintainer reconstruct the comparison. Separately note the report produced by each expected job. In a mixed-language repository, an aggregate percentage is much easier to interpret when the reviewer knows which components contributed and which never reported.
A proposed acceptance record
| Evidence to retain | Question it answers | Reason to hold acceptance |
|---|---|---|
| Head revision and checked-out revision | Did this report come from the code under review? | The recorded revisions cannot be reconciled. |
| Default-branch revision and report reference | Which baseline did the reviewer compare? | The baseline identity is unknown or outside the agreed scope. |
| Exporter, converter and report digest | Can the exact uploaded artifact be identified? | The retained file differs from the uploaded artifact. |
| Expected job labels and actual upload checks | Did every agreed component contribute? | An expected report is missing or its result is unexplained. |
| Sample file paths and covered/uncovered lines | Does the display represent the agreed fixture? | Paths or line states do not match the fixture. |
| Exceptions with named owner and expiry | Why is incomplete evidence acceptable temporarily? | A bypass has no accountable decision. |
Illustrative case, not an executed test: a team expects backend and frontend uploads. The backend report arrives while the frontend job is skipped. The handover should say “frontend evidence missing”, retain the backend result and identify why the job did not run. It should not invent a combined percentage or call missing evidence zero coverage. The owner can then decide whether to repair the job, change the agreed scope or hold the change.
What this acceptance does and does not buy
Budget for the account’s GitHub entitlement, Actions execution and ongoing workflow maintenance. The cited setup statement concerns automatic setup; it does not establish a zero-cost CI service, Swiss hosting location or an account-specific entitlement. The hosted service remains subject to the applicable GitHub agreement. This article reuses no vendor artwork and supplies no third-party test fixture. (GitHub)
Finally, define the product decision separately. Executing a line does not establish that an assertion checked the right business outcome. Keep critical behavioural cases alongside the coverage evidence: for example, whether a rejected order leaves stock unchanged. The useful next step is to complete one report-to-revision record for the existing workflow and resolve any missing upload before tightening the merge rule.
Sources
- Code coverage uploads now flag invalid report formats — GitHub · 2026-11-23
- Setting up code coverage for your repository — GitHub