| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <head> | 2 <head> |
| 3 <title>Build Failure</title> | 3 <title>Build Failure</title> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <link rel="stylesheet" href="/common.css"> | 5 <link rel="stylesheet" href="/common.css"> |
| 6 <style> | 6 <style> |
| 7 .running { | 7 .running { |
| 8 color: #666666; | 8 color: #666666; |
| 9 background-color: #fffc6c; | 9 background-color: #fffc6c; |
| 10 border-color: #c5c56d; | 10 border-color: #c5c56d; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 </style> | 69 </style> |
| 70 <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.
11.1/themes/smoothness/jquery-ui.css"> | 70 <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.
11.1/themes/smoothness/jquery-ui.css"> |
| 71 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
"></script> | 71 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
"></script> |
| 72 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.m
in.js"></script> | 72 <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.m
in.js"></script> |
| 73 <script> | 73 <script> |
| 74 var findit = {}; | 74 var findit = {}; |
| 75 findit.analysisCompleted = '{{analysis_completed}}' == 'True'; | 75 findit.analysisCompleted = '{{analysis_completed}}' == 'True'; |
| 76 findit.analysisFailed = '{{analysis_failed}}' == 'True'; | 76 findit.analysisFailed = '{{analysis_failed}}' == 'True'; |
| 77 findit.builderUrl = 'https://build.chromium.org/p/{{master_name}}/builders/{
{builder_name}}'; | 77 findit.builderUrl = 'https://build.chromium.org/p/{{master_name}}/builders/{
{builder_name}}'; |
| 78 findit.buildUrl = findit.builderUrl + '/builds/{{build_number}}'; | 78 findit.buildUrl = findit.builderUrl + '/builds/{{build_number}}'; |
| 79 findit.triageReferenceAnalysisUrl = '/waterfall/build-failure?url=https://bu
ild.chromium.org/p/{{triage_reference_analysis_master_name}}/builders/{{triage_r
eference_analysis_builder_name}}/builds/{{triage_reference_analysis_build_number
}}' |
| 79 findit.analysisCorrect = '{{analysis_correct}}'; // Possible values: 'None'
, 'True', or 'False'. | 80 findit.analysisCorrect = '{{analysis_correct}}'; // Possible values: 'None'
, 'True', or 'False'. |
| 81 findit.analysisDuplicate = '{{analysis_duplicate}}' == 'True'; |
| 80 findit.showTriageHelpButton = '{{show_triage_help_button}}' == 'True'; | 82 findit.showTriageHelpButton = '{{show_triage_help_button}}' == 'True'; |
| 81 findit.showDebugInfo = '{{show_debug_info}}' == 'True'; | 83 findit.showDebugInfo = '{{show_debug_info}}' == 'True'; |
| 82 findit.analysisResult = {{analysis_result | tojson | safe}}; | 84 findit.analysisResult = {{analysis_result | tojson | safe}}; |
| 83 findit.tryjobStatusMessageMap = {{status_message_map | tojson | safe}}; | 85 findit.tryjobStatusMessageMap = {{status_message_map | tojson | safe}}; |
| 84 findit.defaultGitBaseUrl = 'https://chromium.googlesource.com/chromium/src.g
it/+/'; | 86 findit.defaultGitBaseUrl = 'https://chromium.googlesource.com/chromium/src.g
it/+/'; |
| 85 | 87 |
| 86 function triageAnalysisResult(e) { | 88 function triageAnalysisResult(e) { |
| 87 var target = $(this); | 89 var target = $(this); |
| 88 if (target.hasClass('triaged')) | 90 if (target.hasClass('triaged')) |
| 89 return; | 91 return; |
| 90 | 92 |
| 91 var correct = target.hasClass('thumb-up'); | 93 var correct = target.hasClass('thumb-up'); |
| 92 $.getJSON('/waterfall/triage-analysis?correct=' + correct + '&url=' + find
it.buildUrl, function(data) { | 94 $.getJSON('/waterfall/triage-analysis?correct=' + correct + '&url=' + find
it.buildUrl, function(data) { |
| 93 if (data['success']) { | 95 if (data['success']) { |
| 94 $('.triaged').addClass('triage').removeClass('triaged'); | 96 $('.triaged').addClass('triage').removeClass('triaged'); |
| 95 target.addClass('triaged').removeClass('triage'); | 97 target.addClass('triaged').removeClass('triage'); |
| 96 } else { | 98 } else { |
| 97 alert('Failed to update datastore. Please refresh and try again.'); | 99 alert('Failed to update datastore. Please refresh and try again.'); |
| 98 } | 100 } |
| 101 $('#duplicates_marked').html("Number of matching build analyses that wer
e also triaged: " + data['num_duplicate_analyses']) |
| 102 $('#duplicate_reference').html("") |
| 99 }).error(function(xhr) { | 103 }).error(function(xhr) { |
| 100 // Replace the whole page with errors from server side. | 104 // Replace the whole page with errors from server side. |
| 101 document.body.outerHTML = xhr.responseText; | 105 document.body.outerHTML = xhr.responseText; |
| 102 }); | 106 }); |
| 103 | 107 |
| 104 e.preventDefault(); | 108 e.preventDefault(); |
| 105 } | 109 } |
| 106 | 110 |
| 107 function triageHelp(e) { | 111 function triageHelp(e) { |
| 108 $('#triage_help_button').prop('disabled', true); | 112 $('#triage_help_button').prop('disabled', true); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 } else { | 392 } else { |
| 389 $('#triage-and-table').text('no failure is found'); | 393 $('#triage-and-table').text('no failure is found'); |
| 390 } | 394 } |
| 391 | 395 |
| 392 if (findit.analysisCorrect == 'True') { | 396 if (findit.analysisCorrect == 'True') { |
| 393 $('.thumb-up').addClass('triaged').removeClass('triage'); | 397 $('.thumb-up').addClass('triaged').removeClass('triage'); |
| 394 } else if (findit.analysisCorrect == 'False') { | 398 } else if (findit.analysisCorrect == 'False') { |
| 395 $('.thumb-down').addClass('triaged').removeClass('triage'); | 399 $('.thumb-down').addClass('triaged').removeClass('triage'); |
| 396 } | 400 } |
| 397 | 401 |
| 402 if (findit.analysisDuplicate) { |
| 403 $('#duplicate_reference').html("This analysis was automatically tria
ged as a duplicate because of another build analysis: " + |
| 404 "<a href='" + findit.triageReferenceA
nalysisUrl + "'>{{triage_reference_analysis_master_name}}/" + |
| 405 "{{triage_reference_analysis_builder_
name}}/{{triage_reference_analysis_build_number}}</a>") |
| 406 } |
| 407 |
| 398 if (findit.showTriageHelpButton) { | 408 if (findit.showTriageHelpButton) { |
| 399 $('#triage_help_button').click(triageHelp); | 409 $('#triage_help_button').click(triageHelp); |
| 400 } | 410 } |
| 401 } | 411 } |
| 402 } | 412 } |
| 403 | 413 |
| 404 $('#score-explanation-dialog').dialog({ | 414 $('#score-explanation-dialog').dialog({ |
| 405 autoOpen: false, | 415 autoOpen: false, |
| 406 modal: true, | 416 modal: true, |
| 407 width: 600, | 417 width: 600, |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 </table> | 577 </table> |
| 568 <br> | 578 <br> |
| 569 </div> | 579 </div> |
| 570 </div> | 580 </div> |
| 571 | 581 |
| 572 <div class="thumbs-up-down"> | 582 <div class="thumbs-up-down"> |
| 573 <b>Feedback on Findit result:</b><br> | 583 <b>Feedback on Findit result:</b><br> |
| 574 <div class="triage thumb-up">Correct <img src="https://www.gstatic.com
/images/icons/material/system/1x/thumb_up_black_24dp.png"/></div> | 584 <div class="triage thumb-up">Correct <img src="https://www.gstatic.com
/images/icons/material/system/1x/thumb_up_black_24dp.png"/></div> |
| 575 <div class="triage thumb-down"><img src="https://www.gstatic.com/image
s/icons/material/system/1x/thumb_down_black_24dp.png"/> Incorrect</div> | 585 <div class="triage thumb-down"><img src="https://www.gstatic.com/image
s/icons/material/system/1x/thumb_down_black_24dp.png"/> Incorrect</div> |
| 576 </div> | 586 </div> |
| 587 <div id="duplicates_marked"></div> |
| 588 <div id="duplicate_reference"></div> |
| 577 </div> | 589 </div> |
| 578 {% endif %} | 590 {% endif %} |
| 579 {% endif %} | 591 {% endif %} |
| 580 | 592 |
| 581 {% if show_triage_help_button %} | 593 {% if show_triage_help_button %} |
| 582 <br><br> | 594 <br><br> |
| 583 <div id="triage_help"> | 595 <div id="triage_help"> |
| 584 <button id="triage_help_button">Triage help</button> | 596 <button id="triage_help_button">Triage help</button> |
| 585 <br> | 597 <br> |
| 586 <div id="triage_help_result"> | 598 <div id="triage_help_result"> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 appearing in the failure log. (eg: file.h was changed and | 630 appearing in the failure log. (eg: file.h was changed and |
| 619 file_unittest.cc or file_impl.cc appeared in the log.)</li> | 631 file_unittest.cc or file_impl.cc appeared in the log.)</li> |
| 620 <li>1: The CL rolled a dependency within src/DEPS and a file of that | 632 <li>1: The CL rolled a dependency within src/DEPS and a file of that |
| 621 dependency appears in the failure log. (eg: third_party/dep | 633 dependency appears in the failure log. (eg: third_party/dep |
| 622 was changed in src/DEPS and third_party/dep/f.cpp appeared | 634 was changed in src/DEPS and third_party/dep/f.cpp appeared |
| 623 in the log.)</li> | 635 in the log.)</li> |
| 624 </ul> | 636 </ul> |
| 625 (More rules will be added when implemented.) | 637 (More rules will be added when implemented.) |
| 626 </div> | 638 </div> |
| 627 </body> | 639 </body> |
| OLD | NEW |