<#18913 coverage-py fails with Intrinsic error whe...
# github-notifications
c
#18913 coverage-py fails with Intrinsic error when you have multiple relocated files with the same name Issue created by ndellosa95 Describe the bug We have 2 Python projects in our monorepo that utilize a config file with the same name (the name of this file cannot be changed). When these projects our deployed as part of a docker image, this config file is copied to the working directory of the Docker image. For our unit tests, we use the
relocated_files
target to place this file in the sandbox directory. This works perfectly, except when we go to generate the coverage report, we get the following error:
Copy code
IntrinsicError: Can only merge Directories with no duplicates, but found 2 duplicate entries in :
This seems to be the problematic line of code in question, as it attempts to merge the sandboxes of the individual unit tests. Pants version 2.16.0rc1 OS Both MacOS and Linux (via Windows WSL). Additional info I'm not familiar with what files are generated by the
pytest_runner
or what files coverage requires, but could a possible solution be only merging the output digests of the
pytest_runner
process? pantsbuild/pants