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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-failure-card-buttons.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/model/ct-step-failure-group-data.html
diff --git a/Tools/GardeningServer/model/ct-step-failure-group-data.html b/Tools/GardeningServer/model/ct-step-failure-group-data.html
index 7d60f74024485cd70cfa436577c97deb528d391e..eb7ab7f22194ebb0d45efebca5b59336ec1a661d 100644
--- a/Tools/GardeningServer/model/ct-step-failure-group-data.html
+++ b/Tools/GardeningServer/model/ct-step-failure-group-data.html
@@ -42,4 +42,33 @@ CTStepFailureGroupData.prototype.failedOnce = function() {
}
return true;
};
+
+CTStepFailureGroupData.prototype.fileBugMessage = function() {
+ var message = '';
+ this.failures.forEach(function(failure) {
+ message += failure.step;
+ if (failure.testName) {
+ message += ' ' + failure.testName + '\n';
+ message += failure.flakinessDashboardURL(this.tree);
+ }
+ message += '\n';
+ });
+ message += '\nRevision range:\n';
+ this.commitList.repositories.forEach(function(repository) {
+ message += repository.name + ' ' + repository.range + '\n';
+ });
+ message += '\nFailing builders:\n';
+ this.builderList.builders.forEach(function(builder) {
+ message += builder.builder + ': ' + builder.buildUrl + '\n';
+ });
+
+ return message;
+};
+
+CTStepFailureGroupData.prototype.fileBugLink = function() {
+ var fileBugUrl = 'https://code.google.com/p/chromium/issues/entry?' +
+ 'status=Available&labels=Pri-2,gardening-blink&' +
+ 'summary=Build%20failure&comment=Build%20is%20broken:%0a';
+ return fileBugUrl + encodeURIComponent(this.fileBugMessage());
+};
</script>
« 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