Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC for metadata-based invalidation #20914

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

tdyas
Copy link
Contributor

@tdyas tdyas commented May 13, 2024

This PR is a proof of concept for invalidating adhoc_tool and shell_command targets based on the metadata (and not just the content) of the files in the repository.

The PR adds:

  • A new intrinsic (and rule graph support) for getting "full" metadata of a filesystem entry.
  • Use of that support for adhoc_tool and shell_command target types via a new invalidation_globs field.

Naming and API design subject to change.

@tdyas
Copy link
Contributor Author

tdyas commented Jun 1, 2024

@stuhood: I rebased this PR on top of main with your change to intrinsics to make them (appear as?) functions. I'm getting rule graph errors now: https://github.com/pantsbuild/pants/actions/runs/9332193530/job/25687760655?pr=20914#step:9:344

What do I need to do to properly add an intrinsic post the intrinsics as functions change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant