All articles

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.

KIURO Editorial · Published: · Reviewed:

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

Original handover template. Populate with observed evidence; these entries are questions, not executed results.
Evidence to retainQuestion it answersReason to hold acceptance
Head revision and checked-out revisionDid this report come from the code under review?The recorded revisions cannot be reconciled.
Default-branch revision and report referenceWhich baseline did the reviewer compare?The baseline identity is unknown or outside the agreed scope.
Exporter, converter and report digestCan the exact uploaded artifact be identified?The retained file differs from the uploaded artifact.
Expected job labels and actual upload checksDid every agreed component contribute?An expected report is missing or its result is unexplained.
Sample file paths and covered/uncovered linesDoes the display represent the agreed fixture?Paths or line states do not match the fixture.
Exceptions with named owner and expiryWhy 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

Privacy & analytics

With your permission, Kiuro uses Google Analytics 4 to understand page visits and interactions such as navigation between pages, reading depth, project views, contact-link clicks and starting or successfully submitting a form. Google also processes browser, device and approximate location information. The provider is Google Ireland Limited (Ireland); processing may also take place at Google LLC in the United States.

We do not send your name, email address or message content. Advertising storage, advertising personalisation and Google signals are disabled. Google Analytics is not loaded before you allow it.

After consent, a temporary record in this tab is valid for 30 seconds and consumed when the next page loads. Your choice is saved on this browser for six months. Analytics cookies are configured to expire after six months. You can change your choice here at any time; rejecting stops measurement and removes this website’s Analytics cookies.

Your light/dark and motion preferences are stored separately on this device so the interface remembers your choices. Contact: hello@kiuro.ch.