I seem to be getting this a lot lately - is there ...
# general
n
I seem to be getting this a lot lately - is there a way I can find out what’s causing it?
e
Yes,
.pants.d/pants.log
should have record of the changes.
Here I ran
./pants test ::
and edited `src/python/pants/util/docutil.py`:
Copy code
10:09:57.49 [INFO] notify invalidation: cleared 1 and dirtied 9054 nodes for: {"src/python/pants/util", "src/python/pants/util/4913"}
10:09:57.50 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util", "src/python/pants/util/4913"}
10:09:57.50 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/4913", "src/python/pants/util"}
10:09:57.53 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/4913", "src/python/pants/util"}
10:09:57.57 [INFO] notify invalidation: cleared 1 and dirtied 3541 nodes for: {"src/python/pants/util/docutil.py", "src/python/pants/util"}
10:09:57.57 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/docutil.py", "src/python/pants/util"}
10:09:57.59 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/docutil.py", "src/python/pants/util"}
10:09:57.60 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/docutil.py"}
10:09:57.61 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/docutil.py", "src/python/pants/util"}
10:09:57.63 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util", "src/python/pants/util/docutil.py"}
10:09:57.65 [INFO] notify invalidation: cleared 0 and dirtied 0 nodes for: {"src/python/pants/util/docutil.py", "src/python/pants/util"}
n
Got it, thanks! Found the offender.
h
Was it a legit offender? If it's something like a file Pants should ignore, you can tell Pants to ignore it by adding to your top-level
.gitignore
file or adding this to
pants.toml
Copy code
[GLOBAL]
pants_ignore.add = ["bad_file"]
👍 1
n
In this case an artifact from another process that was running in the background that I didn’t realise - not really required, but that’s good to now.
👍 1