quaint-telephone-89068
12/13/2022, 3:00 PM./pants update-build-files --check will fail with
15:20:56.90 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Run Black on python/test/BUILD.pants.' failed with exit code 123.
stdout:
stderr:
error: cannot format python/mlop/BUILD.pants: [Errno 13] Permission denied: 'python/test/BUILD.pants'
Oh no! 💥 💔 💥
1 file failed to reformat.
Use --no-process-execution-local-cleanup to preserve process chroots for inspection.
When running outside of remove execution everything seems to work as expected. My assumption of what's going on here is that changes are required for python/test/BUILD.pants. When it's sent over to Build barn or any RE runner the files are removed of their write permission. There is an issue in update-build-files where --check isn't being propagated to the remote action. Found the command to be ./black.pex_pex_shim.sh python/test/BUILD.pants in my BB logs which I assume should have a --check flag as well.
This does correctly fail build on CI when the build files haven't been updated but would be nice to get the better error message pants gives.
Pants version
2.8.0
OS
macosx locally
linux for RE and CI
Additional info
Some screenshots from my BB scheduler.
Screen Shot 2022-02-15 at 10 24 58 AMâ–¾
Screen Shot 2022-02-15 at 10 26 42 AMâ–¾
user
12/13/2022, 3:00 PM