Index: Tools/GardeningServer/ui/ct-failure-analyzer.html |
diff --git a/Tools/GardeningServer/ui/ct-failure-analyzer.html b/Tools/GardeningServer/ui/ct-failure-analyzer.html |
index 6920dc01035802707acca4d4efcea6f866476b87..49ddd683043308751b3a88ea24488f6394952f8d 100644 |
--- a/Tools/GardeningServer/ui/ct-failure-analyzer.html |
+++ b/Tools/GardeningServer/ui/ct-failure-analyzer.html |
@@ -4,11 +4,12 @@ Use of this source code is governed by a BSD-style license that can be |
found in the LICENSE file. |
--> |
-<polymer-element name="ct-failure-analyzer" attributes="failures status"> |
+<polymer-element name="ct-failure-analyzer" attributes="failures status builderLatestRevisions"> |
<script> |
Polymer({ |
failures: {}, |
pendingUnexpectedFailures: [], |
+ builderLatestRevisions: {}, |
update: function() { |
this._updateFailingBuilders(); |
@@ -21,6 +22,15 @@ found in the LICENSE file. |
}).bind(this)); |
}, |
+ _updateBuilderLatestRevisions: function() { |
+ this.builderLatestRevisions = {}; |
+ Object.keys(config.builders, function(builder) { |
+ this.builderLatestRevisions[builder] = { |
+ blink: model.state.resultsByBuilder[builder].blink_revision, |
+ }; |
+ }.bind(this)); |
+ }, |
+ |
_updateUnexpectedFailures: function() { |
this.pendingUnexpectedFailures = []; |
var numberOfTestsAnalyzed = 0; |
@@ -33,6 +43,7 @@ found in the LICENSE file. |
}.bind(this)).then(function() { |
this.status = 'Done'; |
this.failures.unexpected = this.pendingUnexpectedFailures; |
+ this._updateBuilderLatestRevisions(); |
}.bind(this)); |
}.bind(this)); |
}, |