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
rsc re-uses DirectoryDigest from process execution rather than re-snapshotting #7861
rsc re-uses DirectoryDigest from process execution rather than re-snapshotting #7861
Conversation
Depends on #7858 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
a952759
to
399b9f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful!!!
@@ -678,14 +656,13 @@ def _runtool_nonhermetic(self, parent_workunit, classpath, main, tool_name, args | |||
return runjava_workunit | |||
|
|||
def _runtool(self, args, distribution, | |||
tgt=None, input_digest=None, output_dir=None): | |||
tgt=None, input_digest=None, ctx=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great change!
@@ -361,7 +337,7 @@ def work_for_vts_rsc(vts, ctx): | |||
classpath_product = self.context.products.get_data('rsc_mixed_compile_classpath') | |||
classpath_entries = classpath_product.get_classpath_entries_for_targets(dependencies_for_target) | |||
for _conf, classpath_entry in classpath_entries: | |||
classpath_paths.append(classpath_entry.path) | |||
classpath_paths.append(fast_relpath(classpath_entry.path, get_buildroot())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping the path as absolute within the ClasspathEntry
itself seems definitely like the right thing to do here -- thanks for making this consistent compared to the first diff I had posted!
I might note in the description that this fixes what is almost definitely a quadratic slowdown induced by filesystem traversals -- or perhaps link to #7838 / steal that PR's description. |
No description provided.