Serialize combining build results in parallel syncs
@@ -636,11 +636,13 @@ public class BlazeIdeInterfaceAspectsImpl implements BlazeIdeInterface {
progressTracker.onBuildCompleted(context); // TODO(b/216104482) track failures
printShardFinishedSummary(context, task.getName(), result);
if (!result.buildResult.outOfMemory()) {
+ synchronized (combinedResult) {
combinedResult.set(
combinedResult.isNull()
? result
: combinedResult.get().updateOutputs(result));
}
+ }
return result.buildResult;
});
BuildResult buildResult =
