aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2017-05-09 08:34:23 -0400
committerGravatar Kristina Chodorow <kchodorow@google.com>2017-05-09 10:55:15 -0400
commitc240b4c2057e8b757377219b6087034bfcdbec93 (patch)
tree5260af41c00212d28c3d4dd487734371785b5fde /src/main/java/com/google/devtools/build/lib/actions
parent20d545ecb95f0211dd203758e27a181f17dc455f (diff)
Automated g4 rollback of commit 56e8d90674a35ebe727f74cd2d47108bfcaa4515.
*** Reason for rollback *** Looks like it broke stuff - the presubmit bypass was added by accident. *** Original change description *** Add a custom interface for cache hit processing in actions The new interface mirrors ActionExecutionContext, but is restricted to exactly the parts used right now. I did consider using ActionExecutionContext, but it contains some parts that we don't want to make available for cache hits. The end goal is to allow the build event stream access to artifact metadata, in particular for TestResult and TestSummary events, which in turn requires making artifact metadata available when the TestRunnerAc... *** PiperOrigin-RevId: 155493797
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java b/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java
index 7129daeed5..ac58b89f4a 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/NotifyOnActionCacheHit.java
@@ -14,40 +14,17 @@
package com.google.devtools.build.lib.actions;
-import com.google.common.eventbus.EventBus;
-import com.google.devtools.build.lib.actions.Executor.ActionContext;
-import com.google.devtools.build.lib.vfs.Path;
-
/**
* An action which must know when it is skipped due to an action cache hit.
*
* Use should be rare, as the action graph is a functional model.
*/
public interface NotifyOnActionCacheHit extends Action {
- /**
- * A custom interface similar to {@link ActionExecutionContext}, but specific to cache hits.
- */
- public interface ActionCachedContext {
- /** The EventBus for the current build. */
- EventBus getEventBus();
-
- /**
- * Returns the execution root. This is the directory underneath which Blaze builds its entire
- * output working tree, including the source symlink forest. All build actions are executed
- * relative to this directory.
- */
- Path getExecRoot();
-
- /**
- * Looks up and returns an action context implementation of the given interface type.
- */
- <T extends ActionContext> T getContext(Class<? extends T> type);
- }
/**
* Called when action has "cache hit", and therefore need not be executed.
*
- * @param context the action context for a cache hit
+ * @param executor the executor
*/
- void actionCacheHit(ActionCachedContext context);
+ void actionCacheHit(Executor executor);
}