| 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 c6c04d0ff7460d0fb3f8ae12cb3be22b5808856b..7651748aac0d9247300896241862cb2e45bce01f 100644
|
| --- a/Tools/GardeningServer/ui/ct-failure-analyzer.html
|
| +++ b/Tools/GardeningServer/ui/ct-failure-analyzer.html
|
| @@ -7,22 +7,32 @@ found in the LICENSE file.
|
| <polymer-element name="ct-failure-analyzer" attributes="failures status">
|
| <script>
|
| Polymer({
|
| - failures: [],
|
| -
|
| - pendingFailures: [],
|
| + failures: {},
|
| + pendingUnexpectedFailures: [],
|
|
|
| update: function() {
|
| - this.pendingFailures = [];
|
| + this._updateFailingBuilders();
|
| + this._updateUnexpectedFailures();
|
| + },
|
| +
|
| + _updateFailingBuilders: function() {
|
| + builders.buildersFailingNonLayoutTests().then((function(builders) {
|
| + this.failures.builders = builders;
|
| + }).bind(this));
|
| + },
|
| +
|
| + _updateUnexpectedFailures: function() {
|
| + this.pendingUnexpectedFailures = [];
|
| var numberOfTestsAnalyzed = 0;
|
| this.status = 'Updating ...';
|
| Promise.all([model.updateRecentCommits(), model.updateResultsByBuilder()]).then(function() {
|
| this.status = 'Analyzing test failures ...';
|
| model.analyzeUnexpectedFailures(function(failureAnalysis, total) {
|
| this.status = 'Analyzing test failures ... ' + ++numberOfTestsAnalyzed + '/' + total + ' tests analyzed.';
|
| - this.pendingFailures.push(failureAnalysis);
|
| + this.pendingUnexpectedFailures.push(failureAnalysis);
|
| }.bind(this)).then(function() {
|
| this.status = 'Done!!!';
|
| - this.failures = this.pendingFailures;
|
| + this.failures.unexpected = this.pendingUnexpectedFailures;
|
| }.bind(this));
|
| }.bind(this));
|
| },
|
|
|