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

Issue 2657913002: [Predator] Add ``Project`` class and ``ClassifySuspect`` method to project and component classifier (Closed)

Created:
3 years, 11 months ago by Sharu Jiang
Modified:
3 years, 10 months ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org, inferno, stgao, ymzhang1
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Predator] Add ``Project`` class and ``ClassifySuspect`` method to project classifier and component classifier. Add ``Project`` class and ``ClassifySuspect`` method to project classifier and component classifier. Also add validation for component classifier and project classifier. N.B. Since I changed the config format of project classifier, so I included the validations in this cl. BUG=657177, 685448 TBR=wrengr@chromium.org Review-Url: https://codereview.chromium.org/2657913002 Committed: https://chromium.googlesource.com/infra/infra/+/c6075535547c4e038d4466680d90479388581625

Patch Set 1 : . #

Total comments: 22

Patch Set 2 : Fix nits. #

Total comments: 12

Patch Set 3 : Fix nits and add project_test #

Patch Set 4 : Fix nits. #

Total comments: 6

Patch Set 5 : Fix nits. #

Total comments: 45

Patch Set 6 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+819 lines, -514 lines) Patch
M appengine/findit/crash/component.py View 1 2 3 4 5 3 chunks +7 lines, -5 lines 0 comments Download
M appengine/findit/crash/component_classifier.py View 1 2 3 4 5 1 chunk +60 lines, -73 lines 0 comments Download
M appengine/findit/crash/findit_for_chromecrash.py View 3 chunks +13 lines, -6 lines 0 comments Download
M appengine/findit/crash/predator.py View 1 1 chunk +9 lines, -5 lines 0 comments Download
A appengine/findit/crash/project.py View 1 2 3 4 5 1 chunk +114 lines, -0 lines 0 comments Download
M appengine/findit/crash/project_classifier.py View 1 2 3 4 5 3 chunks +63 lines, -81 lines 0 comments Download
M appengine/findit/crash/test/component_classifier_test.py View 1 2 3 4 5 1 chunk +50 lines, -188 lines 0 comments Download
M appengine/findit/crash/test/findit_for_chromecrash_test.py View 1 chunk +4 lines, -2 lines 0 comments Download
M appengine/findit/crash/test/predator_testcase.py View 1 chunk +3 lines, -9 lines 0 comments Download
M appengine/findit/crash/test/project_classifier_test.py View 1 chunk +61 lines, -144 lines 0 comments Download
A appengine/findit/crash/test/project_test.py View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
M appengine/findit/handlers/crash/crash_config.py View 2 chunks +162 lines, -1 line 0 comments Download
A appengine/findit/handlers/crash/test/crash_config_test.py View 1 chunk +178 lines, -0 lines 0 comments Download
M appengine/findit/libs/gitiles/change_log.py View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M appengine/findit/libs/gitiles/test/change_log_test.py View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (17 generated)
Sharu Jiang
3 years, 11 months ago (2017-01-26 01:14:02 UTC) #8
Sharu Jiang
PTAL.
3 years, 11 months ago (2017-01-26 01:14:10 UTC) #9
chanli
https://codereview.chromium.org/2657913002/diff/80001/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2657913002/diff/80001/appengine/findit/crash/component.py#newcode39 appengine/findit/crash/component.py:39: def MatchesTouchedFile(self, dep_path, touched_file): This function is similar to ...
3 years, 11 months ago (2017-01-26 21:31:07 UTC) #12
Martin Barbella
Thanks for working on this. Looks like it'll make things easier to understand when it ...
3 years, 11 months ago (2017-01-26 23:59:48 UTC) #13
Sharu Jiang
https://codereview.chromium.org/2657913002/diff/80001/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2657913002/diff/80001/appengine/findit/crash/component.py#newcode39 appengine/findit/crash/component.py:39: def MatchesTouchedFile(self, dep_path, touched_file): On 2017/01/26 21:31:06, chanli wrote: ...
3 years, 11 months ago (2017-01-27 03:20:42 UTC) #14
Sharu Jiang
3 years, 11 months ago (2017-01-27 03:23:08 UTC) #15
lijeffrey
https://codereview.chromium.org/2657913002/diff/200001/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2657913002/diff/200001/appengine/findit/crash/component.py#newcode49 appengine/findit/crash/component.py:49: if self.path_regex.match(os.path.join(dep_path, path)): how about just return path.regex.match(...) https://codereview.chromium.org/2657913002/diff/200001/appengine/findit/crash/project.py ...
3 years, 10 months ago (2017-01-27 15:42:20 UTC) #19
Sharu Jiang
https://codereview.chromium.org/2657913002/diff/200001/appengine/findit/crash/component.py File appengine/findit/crash/component.py (right): https://codereview.chromium.org/2657913002/diff/200001/appengine/findit/crash/component.py#newcode49 appengine/findit/crash/component.py:49: if self.path_regex.match(os.path.join(dep_path, path)): On 2017/01/27 15:42:20, lijeffrey wrote: > ...
3 years, 10 months ago (2017-01-27 18:39:04 UTC) #20
Sharu Jiang
Ping :)
3 years, 10 months ago (2017-01-27 22:44:09 UTC) #22
Martin Barbella
lgtm https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/project.py File appengine/findit/crash/project.py (right): https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/project.py#newcode11 appengine/findit/crash/project.py:11: # Some projects like "chromium", it has many ...
3 years, 10 months ago (2017-01-27 23:30:58 UTC) #23
wrengr
lgtm with nits/comments. In particular, the stuff about None is concerning https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/component_classifier.py File appengine/findit/crash/component_classifier.py (right): ...
3 years, 10 months ago (2017-01-30 19:14:19 UTC) #24
Sharu Jiang
https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/component_classifier.py File appengine/findit/crash/component_classifier.py (right): https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/component_classifier.py#newcode30 appengine/findit/crash/component_classifier.py:30: self.components = [] if components is None else components ...
3 years, 10 months ago (2017-01-30 22:23:52 UTC) #25
Sharu Jiang
3 years, 10 months ago (2017-01-30 22:23:54 UTC) #26
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/2657913002/240001
3 years, 10 months ago (2017-01-30 22:24:44 UTC) #29
wrengr
https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2657913002/diff/220002/appengine/findit/crash/findit_for_chromecrash.py#newcode60 appengine/findit/crash/findit_for_chromecrash.py:60: projects = [Project(name, path_regexs, function_regexs, host_directories) On 2017/01/30 22:23:52, ...
3 years, 10 months ago (2017-01-30 22:30:58 UTC) #30
commit-bot: I haz the power
3 years, 10 months ago (2017-01-30 22:34:04 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:240001) as
https://chromium.googlesource.com/infra/infra/+/c6075535547c4e038d4466680d904...

Powered by Google App Engine
This is Rietveld 408576698