| OLD | NEW |
| 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-list.html"> | 7 <link rel="import" href="ct-builder-list.html"> |
| 8 <link rel="import" href="ct-commit-list.html"> | 8 <link rel="import" href="ct-commit-list.html"> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 var totalFailures = 0; | 35 var totalFailures = 0; |
| 36 var resultNodes = this.failures[i].resultNodesByBuilder; | 36 var resultNodes = this.failures[i].resultNodesByBuilder; |
| 37 for (var r in resultNodes) { | 37 for (var r in resultNodes) { |
| 38 totalFailures += resultNodes[r].failingBuildCount; | 38 totalFailures += resultNodes[r].failingBuildCount; |
| 39 if (totalFailures > 1) | 39 if (totalFailures > 1) |
| 40 return false; | 40 return false; |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 return true; | 43 return true; |
| 44 }; | 44 }; |
| 45 |
| 46 CTStepFailureGroupData.prototype.fileBugMessage = function() { |
| 47 var message = ''; |
| 48 this.failures.forEach(function(failure) { |
| 49 message += failure.step; |
| 50 if (failure.testName) { |
| 51 message += ' ' + failure.testName + '\n'; |
| 52 message += failure.flakinessDashboardURL(this.tree); |
| 53 } |
| 54 message += '\n'; |
| 55 }); |
| 56 message += '\nRevision range:\n'; |
| 57 this.commitList.repositories.forEach(function(repository) { |
| 58 message += repository.name + ' ' + repository.range + '\n'; |
| 59 }); |
| 60 message += '\nFailing builders:\n'; |
| 61 this.builderList.builders.forEach(function(builder) { |
| 62 message += builder.builder + ': ' + builder.buildUrl + '\n'; |
| 63 }); |
| 64 |
| 65 return message; |
| 66 }; |
| 67 |
| 68 CTStepFailureGroupData.prototype.fileBugLink = function() { |
| 69 var fileBugUrl = 'https://code.google.com/p/chromium/issues/entry?' + |
| 70 'status=Available&labels=Pri-2,gardening-blink&' + |
| 71 'summary=Build%20failure&comment=Build%20is%20broken:%0a'; |
| 72 return fileBugUrl + encodeURIComponent(this.fileBugMessage()); |
| 73 }; |
| 45 </script> | 74 </script> |
| OLD | NEW |