is there a way to see what files are being changed...
# general
f
is there a way to see what files are being changed when Pants says
Copy code
13:22:13.05 [INFO] Filesystem changed during run: retrying `Test` in 500ms...
I've tried
-ldebug
but i'm not seeing the information I want. I just see a bunch of things like
Copy code
13:20:47.09 [DEBUG] Dependency @rule(pants.engine.internals.build_files.evaluate_preludes()) of Some("@rule(pants.engine.internals.build_files.parse_address_family(tests/components/security))") changed.
but that target demonstrably didn't change
w
Anything useful in the .pants.d/ files?
e
Yeah, that's the ticket.
f
Copy code
13:22:27.53 [INFO] notify invalidation: cleared 1 and dirtied 11336 nodes for: {"", "rpmbuild"}
13:22:28.71 [INFO] notify invalidation: cleared 1 and dirtied 11336 nodes for: {"", "rpmbuild"}
13:22:29.21 [INFO] notify invalidation: cleared 1 and dirtied 11336 nodes for: {"", "rpmbuild"}
that what I'm looking for?
e
Yup
Should be meaningful to you, but if not...
f
that path is in gitignore though, which should make it in pants ignore
e
Ok, well it sounds like you have a crease to dig into anyhow.
f
I guess, but why does pants watch nodes in paths that are gitignored?
w
I wish Slack kept more history, I could swear I was in this exact thread before . Something that should have been gitignored - was there a setting to use gitignore? Or is it default
e
That's what I mean, you'll need to dig. Not sure.
šŸ‘šŸ» 1
c
the default is to respect .gitignore, iirc
e
I'd start with identifying whether the "" detail is noise or significant.
w
And just a sanity (https://www.pantsbuild.org/docs/troubleshooting#pants-cannot-find-a-file-in-your-project) Do you touch
pants_ignore
anywhere in configs? https://www.pantsbuild.org/docs/reference-global#pants_ignore I think last time, someone set pants_ignore, instead of pants_ignore.add (maybe not, as there is a separate pants_use_gitignore)
e
Maybe that's the name of the containing dir and that's the build root? I'd have to read some code.
f
pants_ignore_use_gitingore is what controlls if gitignore is included, you don't need pants_ignore.add for that
I can confirm that the path is ignored for e.g. tailor: adding a python file there
Copy code
āÆ touch rpmbuild/some_python_source.py
āÆ ./pants tailor rpmbuild/some_python_source.py 
13:41:01.44 [ERROR] 1 Exception encountered:

  Exception: Unmatched glob from CLI arguments: "rpmbuild/some_python_source.py"
i'll have to wait to later to drill into what the
""
may be about
w
Maybe of use?
f
yeah interesting, although changing to
pants_ingore.add
doesn't solve the issue
w
And it's not a tempfile/lock issue, like in Bastian's case? Some random thing with a ~ added?
I doubt it... But šŸ¤·
f
okay fun wrinkle: adding "rpmbuild" to my
pants_ignore.add
fixes this, at least until the next problem
leaving that out of pants_ignore.add and just explicitly having pants_ingore_use_gitignore does not lead to it being ignored
looks like bug in how this ignore rules are interpreted, I can try to repro in something open source when I have a minute
thanks all
e
How is rpmbuild in gitignore exactly? The exact
/rpmbuild/
or something more fuzzy?
f
Copy code
āÆ grep rpmbuild .gitignore
/rpmbuild/
e
Nice! I like exact syntax!! Ok, well, I'm sure the eventual dig will be enlightening.
f
I was able to repro on Pants main, so I made an issue https://github.com/pantsbuild/pants/issues/17642 It seems related to the trailing slash in gitignore patterns
šŸ‘€ 1