diff options
author | 2018-02-22 10:33:28 -0800 | |
---|---|---|
committer | 2018-02-22 10:35:26 -0800 | |
commit | ec0855331c8f81b8eff738669d800b6d7f34271d (patch) | |
tree | 865e56ebb1eee02eeb76b6cf89cc20e8f36ff068 /src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java | |
parent | fe13ee3df1181c9054f338f712e3b60ef68b65e3 (diff) |
Adding a property name to the SpawnRunner. Most runners already had it, I just add it to the interface, and include it in the SpawnResult. This will be used to categorize/aggregate spawns executed by various runners.
Also, minor refinement to the cacheHit property of the SpawnResult with remote execution.
RELNOTES: None
TESTED=presubmit, next cl
PiperOrigin-RevId: 186637978
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java b/src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java index 3e4af216e7..d125d7a4cd 100644 --- a/src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java +++ b/src/main/java/com/google/devtools/build/lib/sandbox/SandboxActionContextProvider.java @@ -125,6 +125,11 @@ final class SandboxActionContextProvider extends ActionContextProvider { } @Override + public String getName() { + return "sandbox-fallback"; + } + + @Override public SpawnResult exec(Spawn spawn, SpawnExecutionPolicy policy) throws InterruptedException, IOException, ExecException { if (!Spawns.mayBeSandboxed(spawn)) { |