List only the last failing run per version
@@ -97,6 +97,7 @@ public class DeploymentStatistics {
.takeWhile(run -> run.hasFailed())
.forEach(run -> {
failingUpgrade.putIfAbsent(run.versions().targetPlatform(), new ArrayList<>());
+ if (failingUpgrade.get(run.versions().targetPlatform()).stream().noneMatch(existing -> existing.id().job().equals(run.id().job())))
failingUpgrade.get(run.versions().targetPlatform()).add(run);
}));
