coveragepy 7.0 breaks virtualenv CI · Issue #1511 · nedbat/coveragepy (original) (raw)

Hey, not sure why and what, but 7 of coverage broke virtualenv: https://github.com/pypa/virtualenv/actions/runs/3747468248/jobs/6363725929

This is the last good version https://github.com/pypa/virtualenv/actions/runs/3723905258/jobs/6315709040

A lot of these showed up too, are we loosing coverage annotation (aka what tested what?)

Skipping duplicate data .tox/.coverage.py311.fv-az186-962.4986.507187 Skipping duplicate data .tox/.coverage.py311.fv-az186-962.4872.961381 Skipping duplicate data .tox/.coverage.py311.fv-az186-962.5108.664082

And ultimately, the CI fails with:

py311: commands[3]> python -m coverage report --skip-covered --show-missing No source for code: '/home/runner/work/virtualenv/virtualenv/.tox/py311/lib/python3.11/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl/pip/init.py'.

The config should remap this file to src https://github.com/pypa/virtualenv/blob/main/.coveragerc#L9-L24, but does not
the config seems correct to me 🤔:

omit = # site.py is ran before the coverage can be enabled, no way to measure coverage on this src/virtualenv/create/via_global_ref/builtin/python2/site.py src/virtualenv/create/via_global_ref/_virtualenv.py src/virtualenv/activation/python/activate_this.py src/virtualenv/seed/wheels/embed/pip-.whl/ [coverage:paths] source = src .tox//lib/python/site-packages .tox/pypy*/site-packages .tox*\Lib\site-packages .tox\py\site-packages **/src **\src