pantsbuild / pants

The Pants Build System
https://www.pantsbuild.org
Apache License 2.0
3.35k stars 640 forks source link

Allow --no-watch-filesystem with pantsd #21448

Open x0f0 opened 2 months ago

x0f0 commented 2 months ago

I am working with a CI system that has strict limits on max file watches but I don't want to pay the price for subsequent pantsd boots. In this CI, I can guarantee that files will remain unchanged.

In this case, I would like to just pass --no-watch-filesystem while retaining the pantsd.

benjyw commented 2 months ago

I think this is reasonable to do, if we emit a warning that this read-only mode is only suitable for read-only environments like CI, and that no guarantees are made if files are edited during the lifetime of pantsd.

x0f0 commented 2 months ago

Inviting @chrisjrn from #12210, would you know the answer to this? Thanks for your time.

benjyw commented 2 months ago

@x0f0 are you still getting benefit from pantsd in CI? Have you tried simply turning it off?