Closed MartykQ closed 2 months ago
Looks like Pants can't write into its sandbox dirs in the GHA container. So that's a permissions thing to figure out in that container.
Pants needs to run in a directory that it can write under.
Closing as this turned out to be a docker/ubuntu-related problem, which was caused because in the Dockerfile I've used a user which was not root
. And because of how the user ID mapping works on Ubuntu there were those permission problems happening
Describe the bug Hello,
as in the description, I have a problem with running
pants test
in the GitHub actions CI.It fails when trying to execute
pants test
for tests that are run indocker_environment
.It works completely fine on local setups (both Mac and Linux). In CI, when running tests that are executed on the host machine it works fine, as well when running linters etc.
Action config
Dir structure:
common-package/tests/demo_tests/test_demo.py
Dockerfile
LOGS:
full.log
Pants version Which version of Pants are you using?
2.20.1
also tried on2.18.2
with the same result