coveragepy: KeyError __init__.py not found on sqldata.py
Describe the bug Since v5.0 was released on PyPi, we are getting the following error:
... .... ...
690 INTERNALERROR> Traceback (most recent call last):
691 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/_pytest/main.py", line 209, in wrap_session
692 INTERNALERROR> session.exitstatus = doit(config, session) or 0
693 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/_pytest/main.py", line 249, in _main
694 INTERNALERROR> config.hook.pytest_runtestloop(session=session)
695 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/pluggy/hooks.py", line 284, in __call__
696 INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs)
697 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/pluggy/manager.py", line 67, in _hookexec
698 INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs)
699 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/pluggy/manager.py", line 61, in <lambda>
700 INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
701 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall
702 INTERNALERROR> gen.send(outcome)
703 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/pytest_cov/plugin.py", line 229, in pytest_runtestloop
704 INTERNALERROR> self.cov_controller.finish()
705 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/pytest_cov/engine.py", line 167, in finish
706 INTERNALERROR> self.cov.stop()
707 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/coverage/control.py", line 651, in combine
708 INTERNALERROR> combine_parallel_data(self._data, aliases=aliases, data_paths=data_paths, strict=strict)
709 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/coverage/data.py", line 117, in combine_parallel_data
710 INTERNALERROR> data.update(new_data, aliases=aliases)
711 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/coverage/sqldata.py", line 705, in update
712 INTERNALERROR> for (file, context), numbits in lines.items()
713 INTERNALERROR> File "/usr/local/lib/python3.6/site-packages/coverage/sqldata.py", line 705, in <listcomp>
714 INTERNALERROR> for (file, context), numbits in lines.items()
715 INTERNALERROR> KeyError: '/builds/meltano/meltano/src/meltano/__init__.py'
To Reproduce
How can we reproduce the problem? Please be specific.
- What version of Python are you using?
Python 3.6
- What version of coverage.py are you using? The output of
coverage debug sys
is helpful.
Latest on PyPi --> 5.0 (coverage-5.0-cp36-cp36m-manylinux1_x86_64.whl)
- What versions of what packages do you have installed? The output of
pip freeze
is helpful.
You can check our full pip install '.[dev]'
log in our runner’s log together with the pytests and the coverage run afterwards:
https://gitlab.com/meltano/meltano/-/jobs/379770331
- What code are you running? Give us a specific commit of a specific repo that we can check out.
https://gitlab.com/meltano/meltano/blob/master/.gitlab/ci/test.gitlab-ci.yml#L46
- What commands did you run?
We are running coveragepy as part of our automated tests after our pytests are done:
- pytest -v --cov-report= --cov meltano -m "$PYTEST_MARKERS"
- coverage combine .coverage
- coverage report
- coverage html
Expected behavior This was running without issues on the latest pre v5.0 stable release.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Better releng - Remove docker image from leaf repo - Use generix multipy image to run tox - Simplify tox - Simplify Makefile (dev mode for venv install) - Update documentation README - Remove Python ... — committed to legatoproject/leaf by deleted user 5 years ago
- Fix test/CI failures due to upstream changes (#347) * Don't use IPython.utils.py3compat * Don't use coverage 5.x (see: https://github.com/nedbat/coveragepy/issues/881) * Fix python3 installation fo... — committed to JuliaPy/pyjulia by tkf 4 years ago
- Add fix for sloppy tests that mess with CWD and break coverage's internals. Fixes https://github.com/nedbat/coveragepy/issues/881 and #306 others. — committed to pytest-dev/pytest-cov by ionelmc 4 years ago
- Add fix for sloppy tests that mess with CWD and break coverage's internals. Fixes https://github.com/nedbat/coveragepy/issues/881. Closes #306. — committed to pytest-dev/pytest-cov by ionelmc 4 years ago
- Add fix for sloppy tests that mess with CWD and break coverage's internals. Fixes https://github.com/nedbat/coveragepy/issues/881. Closes #306. — committed to pytest-dev/pytest-cov by ionelmc 4 years ago
- Merge #12 #13 #14 12: Pin pytest-cov to latest version 2.9.0 r=aragilar a=pyup-bot This PR pins [pytest-cov](https://pypi.org/project/pytest-cov) to the latest release **2.9.0**. <details> <su... — committed to aragilar/stringtopy by bors[bot] 4 years ago
- Merge #12 12: Pin pytest-cov to latest version 2.9.0 r=aragilar a=pyup-bot This PR pins [pytest-cov](https://pypi.org/project/pytest-cov) to the latest release **2.9.0**. <details> <summary>Ch... — committed to aragilar/stringtopy by bors[bot] 4 years ago
- Merge #16 16: Pin pytest-cov to latest version 2.9.0 r=aragilar a=pyup-bot This PR pins [pytest-cov](https://pypi.org/project/pytest-cov) to the latest release **2.9.0**. <details> <summary>Ch... — committed to aragilar/stringtopy by bors[bot] 4 years ago
- pytest-cov: Autospec creation for update from version 2.8.1 to version 2.9.0 Anders Hovmöller (1): Avoid importing coverage for test runs that don't need it Daniel Hahler (2): setup.py: ... — committed to clearlinux-pkgs/pytest-cov by fenrus75 4 years ago
- Merge #142 142: Update pytest-cov to 2.9.0 r=YourLocalBlake a=pyup-bot This PR updates [pytest-cov](https://pypi.org/project/pytest-cov) from **2.8.1** to **2.9.0**. <details> <summary>Changel... — committed to pykoala/koala by bors[bot] 4 years ago
- Merge #5 5: Update pytest-cov to 2.10.1 r=aragilar a=pyup-bot This PR updates [pytest-cov](https://pypi.org/project/pytest-cov) from **2.8.1** to **2.10.1**. <details> <summary>Changelog</summ... — committed to aragilar/pytest-info-collector by bors[bot] 4 years ago
- Merge #5 5: Pin pytest-cov to latest version 2.11.1 r=aragilar a=pyup-bot This PR pins [pytest-cov](https://pypi.org/project/pytest-cov) to the latest release **2.11.1**. <details> <summary>Ch... — committed to aragilar/spaceplot by bors[bot] 3 years ago
- Merge #22 #23 22: Pin sphinx_rtd_theme to latest version 0.5.2 r=aragilar a=pyup-bot This PR pins [sphinx_rtd_theme](https://pypi.org/project/sphinx_rtd_theme) to the latest release **0.5.2**. *... — committed to aragilar/spaceplot by bors[bot] 3 years ago
- Merge #6 6: Pin pytest-cov to latest version 2.12.1 r=aragilar a=pyup-bot This PR pins [pytest-cov](https://pypi.org/project/pytest-cov) to the latest release **2.12.1**. <details> <summary>Ch... — committed to aragilar/venv_tools by bors[bot] 3 years ago
- Merge #22 #23 22: Pin sphinx_rtd_theme to latest version 0.5.2 r=aragilar a=pyup-bot This PR pins [sphinx_rtd_theme](https://pypi.org/project/sphinx_rtd_theme) to the latest release **0.5.2**. *... — committed to aragilar/venv_tools by bors[bot] 3 years ago
Alright, next release of pytest-cov will have a fix.