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

Issue 2067373002: [Findit] Add fracas analysis result feedback page for manual triage. (Closed)

Created:
4 years, 6 months ago by Sharu Jiang
Modified:
4 years, 2 months ago
Reviewers:
stgao
CC:
chromium-reviews, infra-reviews+infra_chromium.org, mbarbella (wrong one), aarya, mmandlis, lijeffrey, chanli
Base URL:
https://chromium.googlesource.com/infra/infra.git@only-dashboard
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Findit] Add fracas analysis result feedback page for manual triage. Open the dashboard: https://findit-for-me.googleplex.com/crash/fracas-dashboard Click the signature of a crash, the page will be redirected to the feedback page of this crash. Sheriff can triage 4 results findit provided: regression_range, suspected_cls, suspected_project, suspected_components BUG=615267

Patch Set 1 : Fix bugs. #

Total comments: 20

Patch Set 2 : Merge branch 'only-dashboard' into dashboard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+832 lines, -44 lines) Patch
A appengine/findit/handlers/crash/fracas_result_feedback.py View 1 chunk +109 lines, -0 lines 0 comments Download
A appengine/findit/handlers/crash/test/fracas_result_feedback_test.py View 1 chunk +138 lines, -0 lines 0 comments Download
A appengine/findit/handlers/crash/test/triage_fracas_analysis_test.py View 1 chunk +108 lines, -0 lines 0 comments Download
A appengine/findit/handlers/crash/triage_fracas_analysis.py View 1 chunk +72 lines, -0 lines 0 comments Download
M appengine/findit/main.py View 2 chunks +6 lines, -0 lines 0 comments Download
M appengine/findit/model/crash/crash_analysis.py View 4 chunks +15 lines, -21 lines 0 comments Download
M appengine/findit/model/crash/test/crash_analysis_test.py View 1 chunk +5 lines, -22 lines 0 comments Download
M appengine/findit/model/triage_status.py View 1 chunk +1 line, -1 line 0 comments Download
A appengine/findit/templates/crash/fracas_result_feedback.html View 1 chunk +378 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 9 (6 generated)
Sharu Jiang
PTAL :)
4 years, 6 months ago (2016-06-16 00:59:31 UTC) #7
stgao
This CL is too big for review as it is, because it includes quite a ...
4 years, 6 months ago (2016-06-16 17:32:05 UTC) #8
Sharu Jiang
4 years, 6 months ago (2016-06-21 20:28:50 UTC) #9
The comments were addressed in https://codereview.chromium.org/2075153003/ 

:)

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/crash/...
File appengine/findit/crash/results.py (right):

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/crash/...
appengine/findit/crash/results.py:40: line_parts.append('frame #%d' %
frame.index)
On 2016/06/16 17:32:04, stgao wrote:
> Could we avoid including the change from the other CL?

Yes, I uploaded separate cl for this, after rebase, this will be gone.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/handle...
File appengine/findit/handlers/crash/fracas_result_feedback.py (right):

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/handle...
appengine/findit/handlers/crash/fracas_result_feedback.py:21: from
handlers.result_status import NO_TRY_JOB_REASON_MAP
On 2016/06/16 17:32:05, stgao wrote:
> Can you please clean up the code when coping from the other handler for
try-job
> or failures on waterfall?

Done.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/handle...
appengine/findit/handlers/crash/fracas_result_feedback.py:46: PERMISSION_LEVEL =
Permission.ANYONE
On 2016/06/16 17:32:05, stgao wrote:
> Why it is anyone? Shouldn't it be just corp user?

Done.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/handle...
appengine/findit/handlers/crash/fracas_result_feedback.py:56:
analysis.result['regression_range'] if 'regression_range' in
On 2016/06/16 17:32:05, stgao wrote:
> This could be simplified by dict.get('key', 'default_value').
> 
> Same for all below.

Done.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/handle...
appengine/findit/handlers/crash/fracas_result_feedback.py:58:
'culprit_regression_range': analysis.culprit_regression_range,
On 2016/06/16 17:32:05, stgao wrote:
> What's the difference between 'regression_range' and
'culprit_regression_range'?

regression_range is the result findit found.

culprit_regression_range is what sheriff manually found.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/handle...
appengine/findit/handlers/crash/fracas_result_feedback.py:88: """Triggers
analysis of a build failure on demand and return current result.
On 2016/06/16 17:32:05, stgao wrote:
> Not clean up again for the copyover from another handler.

Oops...sorry.
Done.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/model/...
File appengine/findit/model/crash/crash_analysis.py (right):

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/model/...
appengine/findit/model/crash/crash_analysis.py:102: setattr(self, key, value)
On 2016/06/16 17:32:05, stgao wrote:
> What if the key is not an attribute of the entity?

This will be addressed in another cl which contains the triage feedback
functions.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/templa...
File appengine/findit/templates/crash/fracas_result_feedback.html (right):

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/templa...
appengine/findit/templates/crash/fracas_result_feedback.html:124: alert('Please
fill the culprit if you found it.')
On 2016/06/16 17:32:05, stgao wrote:
> No alert. Too many alerts are not user-friendly.

Done.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/templa...
appengine/findit/templates/crash/fracas_result_feedback.html:124: alert('Please
fill the culprit if you found it.')
On 2016/06/16 17:32:05, stgao wrote:
> And those input fields are not saved anywhere.

Actually it will be saved by pressing enter, but I will change it to a save
button.

https://codereview.chromium.org/2067373002/diff/80001/appengine/findit/templa...
appengine/findit/templates/crash/fracas_result_feedback.html:223: {% for
metadata in historical_metadata %}
On 2016/06/16 17:32:05, stgao wrote:
> This seems not the right usage of a <thead> in a <table>.

Because UMA right now only stores 20 days' data, so Fracas can only give us 20
versions data, so a row won't be too long.

Powered by Google App Engine
This is Rietveld 408576698