Skip to content

Commit

Permalink
Remove duplicate printing of ExecutionInfo in aquery output
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 556893406
Change-Id: I91c8849577f69d10cb5e57d2d341545ec013c994
  • Loading branch information
Googler authored and copybara-github committed Aug 14, 2023
1 parent d8b8ab0 commit dd3b0ec
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import static java.nio.charset.StandardCharsets.UTF_8;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import com.google.common.collect.Streams;
import com.google.devtools.build.lib.actions.AbstractAction;
Expand Down Expand Up @@ -52,7 +51,6 @@
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.stream.Collectors;
import net.starlark.java.eval.EvalException;
Expand Down Expand Up @@ -246,23 +244,6 @@ private void writeAction(ActionAnalysisMetadata action, PrintStream printStream)
.collect(Collectors.joining(", ")))
.append("]\n");
}
ImmutableSet<Entry<String, String>> executionInfoSpecifiers =
abstractAction.getExecutionInfo().entrySet();
if (!executionInfoSpecifiers.isEmpty()) {
stringBuilder
.append(" ExecutionInfo: {")
.append(
executionInfoSpecifiers.stream()
.sorted(Map.Entry.comparingByKey())
.map(
e ->
String.format(
"%s: %s",
ShellEscaper.escapeString(e.getKey()),
ShellEscaper.escapeString(e.getValue())))
.collect(Collectors.joining(", ")))
.append("}\n");
}
}
if (options.includeCommandline && action instanceof CommandAction) {
stringBuilder
Expand Down

0 comments on commit dd3b0ec

Please sign in to comment.