<#21429 [Feature Request] Improved logging for fai...
# github-notifications
c
#21429 [Feature Request] Improved logging for failures Issue created by logan-markewich Over at llama-index, we are huge users of pants, using it to test across 500+ python packages in a monorepo Quite often, some package will depend on some external python package that updates and breaks things. One thing I've noticed is that issues like envs failing to solve, or issues around interpreter constraints, are often very hard to debug. When failing to solve venvs, usually I can read the dependencies and figure out which packages it might be failing on, but the actual name of the package or test its trying to build isn't reported in the error. More recently, I hit some issues with interpreter constraints, and the error is even more vague
Copy code
ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython==3.10.*,==3.11.* OR CPython==3.10.*,==3.12.* OR CPython==3.11.* OR CPython==3.11.*,==3.12.* OR CPython==3.11.*,==3.9.* OR CPython==3.12.* OR CPython==3.12.*,==3.9.*' failed with exit code 102.

stdout:

stderr:
Could not find a compatible interpreter.

Examined the following interpreters:
1.) /home/runner/.cache/pypoetry/virtualenvs/llama-index-MknZL8ZV-py3.10/bin/python CPython==3.10.15
2.)                                                             /usr/bin/python3.10 CPython==3.10.12

No interpreter compatible with the requested constraints was found:
  Version matches CPython==3.10.*,==3.11.* or CPython==3.10.*,==3.12.* or CPython==3.11.* or CPython==3.11.*,==3.12.* or CPython==3.11.*,==3.9.* or CPython==3.12.* or CPython==3.12.*,==3.9.*

Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.

make: *** [Makefile:14: test] Error 1
While the error is clear enough, what isn't clear is where and what package/tests in my monorepo is causing the issue 😅 What I would like to see is just, when something goes wrong, pants doing its best to report what/where the issue is pantsbuild/pants