Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2855)

Unified Diff: Tools/GardeningServer/model/ct-failure-group.html

Issue 557173002: Some perf improvements to sheriff-o-matics updates. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/GardeningServer/model/ct-failure-group.html
diff --git a/Tools/GardeningServer/model/ct-failure-group.html b/Tools/GardeningServer/model/ct-failure-group.html
index 1b8565ef14d3e24aeb82aba86ca37a627b09eade..26d51d5545451ee119da235afb4845b8ffbfdc11 100644
--- a/Tools/GardeningServer/model/ct-failure-group.html
+++ b/Tools/GardeningServer/model/ct-failure-group.html
@@ -48,11 +48,11 @@ CTFailureGroup.prototype._failedOnce = function() {
var totalFailures = 0;
for (var i = 0; i < this.data.dataToExamine().length; i++) {
var resultNodes = this.data.dataToExamine()[i].resultNodesByBuilder;
esprehn 2014/09/10 02:40:23 What does dataToExamine() do? Calling it repeatedl
ojan 2014/09/10 03:41:18 Yeah, this isn't right. Particularly, this concept
- Object.keys(resultNodes, function(r) {
+ for (var r in resultNodes) {
totalFailures += resultNodes[r].failingBuildCount;
if (totalFailures > 1)
return false;
- }.bind(this));
+ }
}
return totalFailures == 1;
esprehn 2014/09/10 02:40:23 This can just return true right? If you got here y
ojan 2014/09/10 03:41:18 Technically it's possible to have no failures in t
}
« Tools/GardeningServer/model/ct-failure.html ('K') | « Tools/GardeningServer/model/ct-failure.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698