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

Side by Side Diff: Tools/GardeningServer/model/ct-step-failure-group-data.html

Issue 502293003: Allow filing a bug from the "Link Bug" dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix link click Created 6 years, 2 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
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-failure-card-buttons.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-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
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>
OLDNEW
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-failure-card-buttons.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698