eager-dress-66405
12/03/2021, 3:46 AM23:31:28.31 [ERROR] saw filesystem changes covered by invalidation globs: content changed (Digest('d4cd7349f655cdec6b7205d5639dc60a2c0bb7b23c9c63e60abc9ac129b3abae', 337) fs Digest('c02add6f83006535b9c4d0382501f86a486283419549edd02e97906b04d0a28a', 337)). terminating the daemon.
23:31:28.49 [ERROR] service failure for <pants.pantsd.service.scheduler_service.SchedulerService object at 0x7f498aef4fd0>.
Any tips on figuring out what files are actually causing the digest to change?
In the case where just the digest and not the fileset changes it doesn't look like the culprits aren't even calculated: https://github.com/pantsbuild/pants/blob/e70071244c20cd377c88bcbf87c4a6b0ec7d68b4/src/python/pants/pantsd/service/scheduler_service.py#L109
It looks like the invalidation glob could potentially be large: https://github.com/pantsbuild/pants/blob/e70071244c20cd377c88bcbf87c4a6b0ec7d68b4/src/python/pants/option/global_options.py#L1540happy-kitchen-89482
12/03/2021, 4:20 AMinvalidation_globs
in your pants.toml?happy-kitchen-89482
12/03/2021, 4:20 AM.pants.d/pants.log
?happy-kitchen-89482
12/03/2021, 4:24 AMeager-dress-66405
12/03/2021, 5:21 AMeager-dress-66405
12/03/2021, 5:24 AM$PYTHONPATH
and sometimes I run ./pants
from inside a terminal where that virtualenv has been activated. This makes my entire source tree part of the invalidation glob!happy-kitchen-89482
12/03/2021, 4:36 PMhappy-kitchen-89482
12/03/2021, 4:36 PMhappy-kitchen-89482
12/03/2021, 4:39 PMwitty-crayon-22786
12/03/2021, 6:20 PMpants
executable won’t, but the pants
script might …? still a bug obviously, but…happy-kitchen-89482
12/03/2021, 8:45 PMwitty-crayon-22786
12/03/2021, 8:51 PMpantsd
defaults to invalidating based on its own sys.path
witty-crayon-22786
12/03/2021, 8:59 PMeager-dress-66405
12/04/2021, 2:14 AMeager-dress-66405
12/04/2021, 2:16 AMwitty-crayon-22786
12/04/2021, 2:16 AMeager-dress-66405
12/04/2021, 2:37 AMsrc
directory is ending up in there somehow.eager-dress-66405
12/04/2021, 2:37 AMwitty-crayon-22786
12/04/2021, 5:15 PM-ldebug
. https://github.com/pantsbuild/pants/blob/e70071244c20cd377c88bcbf87c4a6b0ec7d68b4/src/python/pants/pantsd/service/scheduler_service.py#L143