Skip a lookup for action template expansion outputs.
This resolves a TODO now that we have a method to distinguish between the two types of TreeFileArtifacts. Template expansion outputs won't be stored in a tree artifact, so we can skip that lookup for them.
RELNOTES: None.
PiperOrigin-RevId: 314947630
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ActionMetadataHandler.java b/src/main/java/com/google/devtools/build/lib/skyframe/ActionMetadataHandler.java
index ed3404f..7614571 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/ActionMetadataHandler.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/ActionMetadataHandler.java
@@ -267,8 +267,7 @@
}
// This artifact was not injected directly to the store, but it may have been injected as part
// of a tree artifact.
- // TODO(jhorvitz): We can skip this for action template expansion artifacts.
- if (artifact.hasParent()) {
+ if (artifact.isChildOfDeclaredDirectory()) {
TreeArtifactValue tree = store.getTreeArtifactData(artifact.getParent());
if (tree != null) {
value = tree.getChildValues().get(artifact);