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

Side by Side Diff: Tools/GardeningServer/ui/ct-builder-grid.html

Issue 402603007: Get sheriff-o-matic data from auto-sheriff.appspot.com. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="ct-builder.html"> 7 <link rel="import" href="ct-builder.html">
8 8
9 <!-- Table of failure types, listing the failing builders for each type. --> 9 <!-- Table of failure types, listing the failing builders for each type. -->
10 <polymer-element name="ct-builder-grid" attributes="failures builderLatestRevisi ons"> 10 <polymer-element name="ct-builder-grid" attributes="failures builderLatestRevisi ons">
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 }, 118 },
119 119
120 failuresChanged: function() { 120 failuresChanged: function() {
121 // Create a set of builders for each result type (e.g., text, crash). 121 // Create a set of builders for each result type (e.g., text, crash).
122 this.resultTypes = {}; 122 this.resultTypes = {};
123 var passingRevisions = []; 123 var passingRevisions = [];
124 this.failures.forEach(function(failure) { 124 this.failures.forEach(function(failure) {
125 passingRevisions.push(failure.newestPassingRevision); 125 passingRevisions.push(failure.newestPassingRevision);
126 var results = failure.resultNodesByBuilder; 126 var results = failure.resultNodesByBuilder;
127 Object.keys(results, (function(builder) { 127 Object.keys(results, (function(builder) {
128 var result = results[builder]; 128 var result = results[builder].actual;
129 if (!result.is_unexpected) 129 if (!Object.has(this.resultTypes, result))
130 return; 130 this.resultTypes[result] = {};
131 131 this.resultTypes[result][builder] =
132 if (!Object.has(this.resultTypes, result.actual))
133 this.resultTypes[result.actual] = {};
134 this.resultTypes[result.actual][builder] =
135 config.builders[builder]; 132 config.builders[builder];
136 }).bind(this)); 133 }).bind(this));
137 }, this); 134 }, this);
138 135
139 var buildingType = this._getBuilding(passingRevisions); 136 var buildingType = this._getBuilding(passingRevisions);
140 if (!Object.isEmpty(buildingType)) 137 if (!Object.isEmpty(buildingType))
141 this.resultTypes['BUILDING'] = buildingType; 138 this.resultTypes['BUILDING'] = buildingType;
142 }, 139 },
143 140
144 _buildersInFlightForRevision: function(revision) { 141 _buildersInFlightForRevision: function(revision) {
(...skipping 15 matching lines...) Expand all
160 if (!config.builders[builder]) 157 if (!config.builders[builder])
161 return; 158 return;
162 building[builder] = {'debug': config.builders[builder].debug}; 159 building[builder] = {'debug': config.builders[builder].debug};
163 }); 160 });
164 161
165 return building; 162 return building;
166 }, 163 },
167 }); 164 });
168 </script> 165 </script>
169 </polymer-element> 166 </polymer-element>
OLDNEW
« no previous file with comments | « Tools/GardeningServer/scripts/svn-log_unittests.js ('k') | Tools/GardeningServer/ui/ct-commit.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698