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

Switch to positive check for linkInputDirectories #1500

Merged
merged 5 commits into from
Oct 15, 2023

Conversation

werkt
Copy link
Collaborator

@werkt werkt commented Oct 13, 2023

No description provided.

@werkt werkt force-pushed the linked-input-directories branch 7 times, most recently from d75a4d6 to 8d474c5 Compare October 15, 2023 00:15
Selecting realInputDirectories by regex permits flexible patterns that
can yield drastic improvements in directory reuse for specialized
deployments. runfiles in particular are hazardous expansions of
nearly-execroot in the case of bazel.

Care must be taken to match directories exclusively.
The entire input tree is traversed for matches against expanded paths
under the root, to allow for nested selection.
Each match thus costs the number of input directories.
Counterintuitively, OutputFiles are augmented to avoid the recursive
check for OutputDirectories which only applies to actual reported
results, resulting in a path match when creating the exec root.
Regex style is java.util.Pattern, and must match the full input
directory.
This will include the path to the missed directory and the operation
which required it.
Prevent adding duplicate realInputDirectories matches
Ensure that the last leg of the execution presents a directory, rather
than the parent, per OutputDirectory's stamping.
@werkt werkt merged commit f8017bd into bazelbuild:main Oct 15, 2023
2 checks passed
@werkt werkt deleted the linked-input-directories branch October 15, 2023 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant