CodeCoverageSummary icon indicating copy to clipboard operation
CodeCoverageSummary copied to clipboard

Implement MyPy compatibility

Open webknjaz opened this issue 1 year ago • 2 comments

I'm hitting "Overall lines covered not found" (https://github.com/irongut/CodeCoverageSummary/blob/f138489/src/CodeCoverageSummary/Program.cs#L172C41-L172C74) when trying to display coverage data produced by the most used Python type checker — MyPy.

It's generated using the --cobertura-xml-report CLI flag per https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-cobertura-xml-report.

To grab an example, go to https://app.codecov.io/github/aio-libs/yarl/commit/1fe1e02357537b5cf348b2088bcedb30847fbbf9, find an upload with the MyPy flag in the widget on the right, click Download. You'll get the payload sent to the Codecov service. The beginning on the text is just a list of files, so scroll down to the <<<<<< network delimiter and you'll see the XML under it.

webknjaz avatar Aug 19 '24 14:08 webknjaz

I also filed an issue over @ MyPy, as it seems to be violating the spec: https://github.com/python/mypy/issues/17689.

webknjaz avatar Aug 19 '24 14:08 webknjaz

So https://github.com/python/mypy/pull/17738 has been merged yesterday. Once it gets released, we'll be able to re-test the compatibility of the produced report.

webknjaz avatar Sep 16 '24 20:09 webknjaz

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Dec 16 '24 02:12 github-actions[bot]

Looks like this should be fixed in v1.12.0. Just needs to be tested.

webknjaz avatar Dec 16 '24 05:12 webknjaz

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Mar 18 '25 02:03 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Jun 17 '25 02:06 github-actions[bot]

Urgh.. Need to find time to actually validate this.

webknjaz avatar Jun 17 '25 06:06 webknjaz

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days.

github-actions[bot] avatar Sep 17 '25 02:09 github-actions[bot]

This issue was closed because it has been stale for 30 days with no activity.

github-actions[bot] avatar Oct 17 '25 02:10 github-actions[bot]

@irongut looks like it's now failing differenlty..

webknjaz avatar Nov 14 '25 05:11 webknjaz