From 62d31dadd4c22c7f04055c7dc8b3633d3f0f7373 Mon Sep 17 00:00:00 2001 From: janakr Date: Thu, 18 Nov 2021 10:34:53 -0800 Subject: [PATCH] Enforce that TestRunnerAction is not shareable: the test log's name is derived from the target's name, which must be unique. PiperOrigin-RevId: 410843147 --- .../devtools/build/lib/analysis/test/TestRunnerAction.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/google/devtools/build/lib/analysis/test/TestRunnerAction.java b/src/main/java/com/google/devtools/build/lib/analysis/test/TestRunnerAction.java index 2e8adcc1380803..12e71510e735fa 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/test/TestRunnerAction.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/test/TestRunnerAction.java @@ -423,6 +423,12 @@ public ImmutableList> getTestOutputsMapping( return builder.build(); } + // Test actions are always distinguished by their target name, which must be unique. + @Override + public final boolean isShareable() { + return false; + } + @Override protected void computeKey( ActionKeyContext actionKeyContext,