breezy-manchester-62939
02/18/2022, 10:41 PM[test].use_coverage = true) on pants version 2.8.0.
I get an error when I try to run with these two configurations
• [coverage-py].global_report = true in pants.toml
• [tool.coverage.run].branch = true in pyproject.toml
Everything works fine if one of these is set to false, but throws following error message if both are set to `true`:
ProcessExecutionFailure: Process 'Merge 2 Pytest coverage reports.' failed with exit code 1.
stdout:
Can't combine arc data with line data
stderr:breezy-manchester-62939
02/18/2022, 10:41 PMlibrary_a/
__init__.py
BUILD
simple.py
test/
__init__.py
library_a/
__init__.py
BUILD
test_simple.py
pants
pants.toml
pyproject.tomlbreezy-manchester-62939
02/18/2022, 10:43 PMbranch = truehundreds-father-404
02/18/2022, 10:45 PMcoverage combine?
See https://github.com/pantsbuild/pants/blob/0faf9908b811107ba31dbd13154313ab10262637/src/python/pants/backend/python/goals/coverage_py.py#L56-L74 for how Pants implements coverage supportbreezy-manchester-62939
02/18/2022, 10:45 PMcoverage combine, I meant coverage runbusy-vase-39202
02/18/2022, 10:47 PMcoverage-py?hundreds-father-404
02/18/2022, 10:48 PMbreezy-manchester-62939
02/18/2022, 10:49 PMhappy-kitchen-89482
02/18/2022, 10:50 PMhappy-kitchen-89482
02/18/2022, 10:50 PMhappy-kitchen-89482
02/18/2022, 10:51 PMhappy-kitchen-89482
02/18/2022, 10:54 PMCan't combine arc data with line data, so I imagine it won't be hard to debug once we have a consistent way to reproduce the bugbreezy-manchester-62939
02/18/2022, 10:55 PMbreezy-manchester-62939
02/18/2022, 11:01 PMhappy-kitchen-89482
02/19/2022, 12:52 AMhappy-kitchen-89482
02/19/2022, 12:52 AMhappy-kitchen-89482
02/19/2022, 1:02 AMhappy-kitchen-89482
02/19/2022, 1:02 AMbreezy-manchester-62939
02/19/2022, 1:27 AMlibrary_a directory is under source, and I had to manually add [source] configuration in pants.toml.breezy-manchester-62939
02/19/2022, 1:29 AM[source]
root_patterns = ["/"]
does not work for the other example.happy-kitchen-89482
02/19/2022, 1:34 AMhappy-kitchen-89482
02/19/2022, 1:36 AMhappy-kitchen-89482
02/19/2022, 1:37 AMcoverage combine. But first we create an initial, trivial, coverage file to merge into, by running coverage on an empty source file. And in that run we don't set branch=True even if you set it in your own coverage config.happy-kitchen-89482
02/19/2022, 1:38 AMbreezy-manchester-62939
02/19/2022, 1:39 AMbreezy-manchester-62939
02/19/2022, 1:40 AMglobal_report = true and branch = true in that example.happy-kitchen-89482
02/19/2022, 1:42 AMhappy-kitchen-89482
02/19/2022, 6:50 AMsource/ but directly at the package root. So in this second case that run sees no files at all, and evidently creates a coverage file that is even more trivial, and that doesn't cause issueshappy-kitchen-89482
02/19/2022, 6:51 AMhappy-kitchen-89482
02/19/2022, 6:51 AMhappy-kitchen-89482
02/19/2022, 6:52 AMhappy-kitchen-89482
02/19/2022, 6:52 AMbreezy-manchester-62939
02/19/2022, 12:38 PMhappy-kitchen-89482
02/19/2022, 4:25 PMbreezy-manchester-62939
02/20/2022, 12:37 AMhappy-kitchen-89482
02/21/2022, 5:48 PMhappy-kitchen-89482
02/21/2022, 9:23 PMhappy-kitchen-89482
02/21/2022, 9:23 PMhappy-kitchen-89482
02/21/2022, 9:27 PMhappy-kitchen-89482
02/21/2022, 9:27 PMbreezy-manchester-62939
03/12/2022, 9:05 PMbreezy-manchester-62939
03/12/2022, 9:05 PM