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

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

Issue 546433003: Add failed_once category to Sheriff-O-Matic. (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
« no previous file with comments | « no previous file | Tools/GardeningServer/model/test/ct-failure-group-tests.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 812a2a5efaac998e5f0e7996e3e8759402c5198c..5406e70c8da2a854d238518d4f21c01dcd8ad869 100644
--- a/Tools/GardeningServer/model/ct-failure-group.html
+++ b/Tools/GardeningServer/model/ct-failure-group.html
@@ -47,8 +47,19 @@ CTFailureGroup.prototype._computeProperties = function() {
if (this.isSnoozed) {
this.category = 'snoozed';
} else {
+ var totalFailures = 0;
+ this.failures.map(function(f) {
ojan 2014/09/05 18:39:44 In the common case, this is going to do a ton of w
+ var resultNodes = f.resultNodesByBuilder;
+ Object.keys(resultNodes, function(r) {
+ totalFailures += resultNodes[r].failingBuildCount;
+ }.bind(this));
+ });
+ if (totalFailures == 1) {
+ this.category = 'failed_once';
ojan 2014/09/05 18:39:44 Nit: We don't have many cases of string values lik
+ } else {
+ this.category = 'default';
+ }
// FIXME: crbug.com/400397 Split into: Whole step failure, Tree closer, Test failure, Flaky tests
- this.category = 'default';
}
this.bug = this._annotation.bug;
« no previous file with comments | « no previous file | Tools/GardeningServer/model/test/ct-failure-group-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698