Hello I am encountering an exception coming from P...
# general
p
Hello I am encountering an exception coming from Pants's Rust engine in CI/CD. Would anyone know a workaround?
Copy code
Exception: Snapshot failed: Failed to digest inputs: Throw { val: Failed to watch filesystem for `/some/path`: Error { kind: MaxFilesWatch, paths: ["/some/path"] }, python_traceback: "Traceback (no traceback):\n  <pants native internals>\nException: Failed to watch filesystem for `/some/path`: Error { kind: MaxFilesWatch, paths: [\"/some/path\"] }", engine_traceback: ["digest_file"] }
p
Thanks Stu for link. I don't have root access to the CI/CD and I believe it runs in a Docker container with restricted access. Am I out of luck then?
w
the only other option is to set both
--no-pantsd
and `--no-watch-filesystem`: it will mean that running multiple
pants
commands in a row is slower, but individual commands should be the same speed
👍 1
p
Thank you Stu. I will give it a try! 😄
h
It would be nice to be able to pass --no-watch-filesystem while keeping pantsd. On CI, source files wouldn't be changed.
👍 1
I think Bazel allows this
w
it sounds like @broad-processor-92400 is in favor of adding the ability to do this on the ticket: he just wants to adjust option names to make it hard to do incorrectly, which I agree is a good idea.
h
I agree. Would you like me to attempt that or is it something you could pick up?
w
i won't be able to pick it up: sorry.
h
Okay, good to know. I will try to update the PR then.