Bugs filed from the flakiness dashboard should include a link to the dashboard
authorryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Nov 2017 19:17:29 +0000 (19:17 +0000)
committerryanhaddad@apple.com <ryanhaddad@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Nov 2017 19:17:29 +0000 (19:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180090

Reviewed by Aakash Jain.

* TestResultServer/static-dashboards/flakiness_dashboard.js:
(createBugHTML):
Open the bug compose page in a new tab and include a link
to the flakiness dashboard results for the selected test.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225230 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestResultServer/static-dashboards/flakiness_dashboard.js

index aac597d..b7ed6c5 100644 (file)
@@ -1,3 +1,15 @@
+2017-11-28  Ryan Haddad  <ryanhaddad@apple.com>
+
+        Bugs filed from the flakiness dashboard should include a link to the dashboard
+        https://bugs.webkit.org/show_bug.cgi?id=180090
+
+        Reviewed by Aakash Jain.
+
+        * TestResultServer/static-dashboards/flakiness_dashboard.js:
+        (createBugHTML):
+        Open the bug compose page in a new tab and include a link
+        to the flakiness dashboard results for the selected test.
+
 2017-11-28  Jonathan Bedard  <jbedard@apple.com>
 
         webkitpy: Standardize Version representation
index 9f37a8a..45767d0 100644 (file)
@@ -1319,13 +1319,14 @@ function createBugHTML(test)
 {
     var symptom = test.isFlaky ? 'flaky' : 'failing';
     var title = encodeURIComponent('Layout Test ' + test.test + ' is ' + symptom);
+    var dashboardURL = 'https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=' + encodeURIComponent(test.test);
     var description = encodeURIComponent('The following layout test is ' + symptom + ' on ' +
-        '[insert platform]\n\n' + test.test + '\n\nProbable cause:\n\n' +
-        '[insert probable cause]');
+        '[insert platform]\n\n' + test.test + '\n\nProbable cause:\n\n' + '[insert probable cause]' +
+        '\n\nFlakiness Dashboard:\n\n' + dashboardURL);
     
     var component = encodeURIComponent('Tools / Tests');
     url = 'https://bugs.webkit.org/enter_bug.cgi?assigned_to=webkit-unassigned%40lists.webkit.org&product=WebKit&form_name=enter_bug&component=' + component + '&short_desc=' + title + '&comment=' + description;
-    return '<a href="' + url + '" class="file-bug">File</a>';
+    return '<a href="' + url + '" class="file-bug" target="_blank">File</a>';
 }
 
 function isCrossBuilderView()