in src/main/java/com/google/devtools/build/remote/client/ActionGrouping.java [156:178]
List<Digest> failedActions() throws IOException {
if (V1found) {
System.err.println(
"This functinality is not supported for V1 API. Please upgrade your Bazel version.");
System.exit(1);
}
ArrayList<Digest> result = new ArrayList<>();
for (String hash : actionMap.keySet()) {
ActionDetails a = actionMap.get(hash);
if (a.isFailed()) {
Digest digest = a.getDigest();
if (digest == null) {
System.err.println("Error: missing digest for failed action " + hash);
} else {
result.add(digest);
}
}
}
return result;
}