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

Issue 2338273006: [Findit] Factoring out the components, so they can classify themselves (Closed)

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

Description

[Findit] Factoring out the components, so they can classify themselves Rather than having ComponentClassifier do a bunch of logic about whether various components are responsible for various stack frames, we instead have a new class: Component, which encapsulates the work necessary for that specific component. That is, each Component can —by itself— recognize whether it is responsible for a given stack frame (or, in the future: a given CL, file, etc); and the ComponentClassifier class now simply stores a list of Components, and calls their methods for them to decide whether they match or not. In addition, the ComponentClassifier class no longer depends on CrashConfig. Instead the constructor is given the values it needs, and therefore client code is free to get those values from wherever they so desire (rather than forcing clients to use our internal configuration tools). BUG=chromium:605770 Committed: https://chromium.googlesource.com/infra/infra/+/98028c43b368a15f082446772a5077e0e6cb8b68

Patch Set 1 #

Total comments: 26

Patch Set 2 : addressing nits #

Patch Set 3 : rebase-update #

Patch Set 4 : rebase-update #

Patch Set 5 : rebase-update #

Patch Set 6 : rebasing to remove dependency on crrev.com/2344443005 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -40 lines) Patch
A appengine/findit/crash/component.py View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M appengine/findit/crash/component_classifier.py View 1 2 3 4 5 3 chunks +17 lines, -25 lines 0 comments Download
M appengine/findit/crash/findit_for_chromecrash.py View 1 2 2 chunks +11 lines, -2 lines 0 comments Download
M appengine/findit/crash/test/component_classifier_test.py View 1 4 chunks +35 lines, -13 lines 0 comments Download
M appengine/findit/model/crash/crash_config.py View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
wrengr
This new CL helps clean up the stuff about components, to make way for work ...
4 years, 3 months ago (2016-09-16 00:46:56 UTC) #5
Martin Barbella
lgtm https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py#newcode31 appengine/findit/crash/component.py:31: # We interpret function_regex=None to mean the regex ...
4 years, 3 months ago (2016-09-19 21:17:18 UTC) #6
Sharu Jiang
https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py#newcode22 appengine/findit/crash/component.py:22: re.compile(path_regex), We don't need to compile the regex here, ...
4 years, 3 months ago (2016-09-20 00:31:29 UTC) #7
stgao
I like this change, many thanks. LGTM with style nits. https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py#newcode27 ...
4 years, 3 months ago (2016-09-21 21:57:28 UTC) #8
wrengr
https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py#newcode22 appengine/findit/crash/component.py:22: re.compile(path_regex), On 2016/09/20 00:31:29, sharu jiang wrote: > We ...
4 years, 2 months ago (2016-09-27 22:00:40 UTC) #9
Sharu Jiang
lgtm with one comment related to removing the compilation in config. I like this Component ...
4 years, 2 months ago (2016-09-27 22:31:03 UTC) #10
wrengr
https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2338273006/diff/1/appengine/findit/crash/component.py#newcode22 appengine/findit/crash/component.py:22: re.compile(path_regex), On 2016/09/27 22:31:03, sharu jiang wrote: > On ...
4 years, 2 months ago (2016-09-27 22:54:33 UTC) #11
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/2338273006/100001
4 years, 2 months ago (2016-09-28 20:50:59 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 21:05:20 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/infra/infra/+/98028c43b368a15f082446772a507...

Powered by Google App Engine
This is Rietveld 408576698