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

Issue 2562623004: Making CallStack immutable, so it can be hashable (Closed)

Created:
4 years ago by wrengr
Modified:
4 years ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org, aarya
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Making CallStack immutable, so it can be hashable To use loglinear models for classifying CLs, we need CallStack and Stacktrace to be valid argument types for MemoizedFunction, which means they must be hashable, which means they must be immutable. This CL makes CallStack immutable (a separate CL will handle Stacktrace). BUG= TBR=stgao@chromium.org Review-Url: https://codereview.chromium.org/2562623004 Committed: https://chromium.googlesource.com/infra/infra/+/cdf1d3bfc59fd7d31bd4cdee58a9055c09954562

Patch Set 1 #

Total comments: 23

Patch Set 2 : Moving ParseStackTrace function to StackTrace.Parse method #

Patch Set 3 : Addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -211 lines) Patch
M appengine/findit/crash/callstack_filters.py View 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/crash/changelist_classifier.py View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M appengine/findit/crash/chromecrash_parser.py View 1 2 chunks +24 lines, -14 lines 0 comments Download
M appengine/findit/crash/component_classifier.py View 1 chunk +2 lines, -1 line 0 comments Download
M appengine/findit/crash/predator.py View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/findit/crash/project_classifier.py View 1 chunk +2 lines, -1 line 0 comments Download
M appengine/findit/crash/stacktrace.py View 1 2 9 chunks +154 lines, -50 lines 0 comments Download
M appengine/findit/crash/test/changelist_classifier_test.py View 12 chunks +27 lines, -27 lines 0 comments Download
M appengine/findit/crash/test/chromecrash_parser_test.py View 3 chunks +23 lines, -32 lines 0 comments Download
M appengine/findit/crash/test/component_classifier_test.py View 2 chunks +4 lines, -8 lines 0 comments Download
M appengine/findit/crash/test/occurrence_test.py View 2 chunks +10 lines, -10 lines 0 comments Download
M appengine/findit/crash/test/project_classifier_test.py View 3 chunks +13 lines, -16 lines 0 comments Download
M appengine/findit/crash/test/stacktrace_test.py View 1 2 4 chunks +64 lines, -41 lines 0 comments Download
M appengine/findit/crash/test/stacktrace_test_suite.py View 1 chunk +11 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (12 generated)
wrengr
PTAL
4 years ago (2016-12-08 19:27:28 UTC) #7
Sharu Jiang
https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py File appengine/findit/crash/stacktrace.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode85 appengine/findit/crash/stacktrace.py:85: # method on ``StackFrame``. I think in ``StackFrame`` and ...
4 years ago (2016-12-08 22:23:44 UTC) #8
Martin Barbella
Mostly nits. LGTM overall. https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/changelist_classifier.py File appengine/findit/crash/changelist_classifier.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/changelist_classifier.py#newcode61 appengine/findit/crash/changelist_classifier.py:61: # TODO(wrengr): use CallStack.SliceFrames Nit: ...
4 years ago (2016-12-08 22:30:55 UTC) #9
stgao
https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py File appengine/findit/crash/stacktrace.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode85 appengine/findit/crash/stacktrace.py:85: # method on ``StackFrame``. On 2016/12/08 22:30:55, Martin Barbella ...
4 years ago (2016-12-08 23:42:17 UTC) #11
wrengr
Addressed nits https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/changelist_classifier.py File appengine/findit/crash/changelist_classifier.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/changelist_classifier.py#newcode61 appengine/findit/crash/changelist_classifier.py:61: # TODO(wrengr): use CallStack.SliceFrames On 2016/12/08 22:30:55, ...
4 years ago (2016-12-08 23:42:37 UTC) #13
Sharu Jiang
https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py File appengine/findit/crash/stacktrace.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode166 appengine/findit/crash/stacktrace.py:166: # memoization) we has-a tuple rather than is-a list. ...
4 years ago (2016-12-09 00:13:58 UTC) #14
Sharu Jiang
https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py File appengine/findit/crash/stacktrace.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode166 appengine/findit/crash/stacktrace.py:166: # memoization) we has-a tuple rather than is-a list. ...
4 years ago (2016-12-09 00:29:21 UTC) #15
Sharu Jiang
https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py File appengine/findit/crash/stacktrace.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode166 appengine/findit/crash/stacktrace.py:166: # memoization) we has-a tuple rather than is-a list. ...
4 years ago (2016-12-09 00:57:15 UTC) #16
wrengr
On 2016/12/09 00:13:58, Sharu Jiang wrote: > One thing is, do you really want to ...
4 years ago (2016-12-09 18:58:05 UTC) #17
wrengr
https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py File appengine/findit/crash/stacktrace.py (right): https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode166 appengine/findit/crash/stacktrace.py:166: # memoization) we has-a tuple rather than is-a list. ...
4 years ago (2016-12-09 18:58:38 UTC) #18
Sharu Jiang
On 2016/12/09 18:58:38, wrengr wrote: > https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py > File appengine/findit/crash/stacktrace.py (right): > > https://codereview.chromium.org/2562623004/diff/20001/appengine/findit/crash/stacktrace.py#newcode166 > ...
4 years ago (2016-12-09 19:47:19 UTC) #19
Sharu Jiang
lgtm About the filtering on immutable callstack, I don't think this will be a bottom ...
4 years ago (2016-12-09 20:43:28 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2562623004/60001
4 years ago (2016-12-12 17:55:04 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-12 18:11:26 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/infra/infra/+/cdf1d3bfc59fd7d31bd4cdee58a90...

Powered by Google App Engine
This is Rietveld 408576698