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

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: update and delete old code 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 }, 122 },
123 123
124 failuresChanged: function() { 124 failuresChanged: function() {
125 // Create a set of builders for each result type (e.g., text, crash). 125 // Create a set of builders for each result type (e.g., text, crash).
126 this.resultTypes = {}; 126 this.resultTypes = {};
127 var passingRevisions = []; 127 var passingRevisions = [];
128 this.failures.forEach(function(failure) { 128 this.failures.forEach(function(failure) {
129 passingRevisions.push(failure.newestPassingRevision); 129 passingRevisions.push(failure.newestPassingRevision);
130 var results = failure.resultNodesByBuilder; 130 var results = failure.resultNodesByBuilder;
131 Object.keys(results, (function(builder) { 131 Object.keys(results, (function(builder) {
132 var result = results[builder]; 132 var result = results[builder].actual;
133 if (!result.is_unexpected) 133 if (!Object.has(this.resultTypes, result))
ojan 2014/07/21 00:44:56 With the new backend, we only have data for unexpe
134 return; 134 this.resultTypes[result] = {};
135 135 this.resultTypes[result][builder] =
136 if (!Object.has(this.resultTypes, result.actual))
137 this.resultTypes[result.actual] = {};
138 this.resultTypes[result.actual][builder] =
139 config.builders[builder]; 136 config.builders[builder];
140 }).bind(this)); 137 }).bind(this));
141 }, this); 138 }, this);
142 139
143 var buildingType = this._getBuilding(passingRevisions); 140 var buildingType = this._getBuilding(passingRevisions);
144 if (!Object.isEmpty(buildingType)) 141 if (!Object.isEmpty(buildingType))
145 this.resultTypes['BUILDING'] = buildingType; 142 this.resultTypes['BUILDING'] = buildingType;
146 }, 143 },
147 144
148 _buildersInFlightForRevision: function(revision) { 145 _buildersInFlightForRevision: function(revision) {
(...skipping 18 matching lines...) Expand all
167 if (!config.builders[builder]) 164 if (!config.builders[builder])
168 return; 165 return;
169 building[builder] = {'debug': config.builders[builder].debug}; 166 building[builder] = {'debug': config.builders[builder].debug};
170 }); 167 });
171 168
172 return building; 169 return building;
173 }, 170 },
174 }); 171 });
175 </script> 172 </script>
176 </polymer-element> 173 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698