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

Issue 2414523002: [Findit] Reorganizing findit_for_*.py (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : rebase_update #

Patch Set 3 : trying to fix some tests #

Total comments: 51

Patch Set 4 : addressing comments and some unittest bugfixing #

Patch Set 5 : Fixing some bugs in changelist_classifier_test.py #

Patch Set 6 : Checking off todos #

Patch Set 7 : moving GetPublishResultFromAnalysis to be a method of CrashAnalysis, breaking out findit_for_cluste… #

Patch Set 8 : debugging the unittests #

Patch Set 9 : Fixing call to ScheduleNewAnalysis in handlers/crash/crash_handler.py #

Total comments: 12

Patch Set 10 : crash_pipeline_test.py: cleaning up the crash_data to better match the old code. #

Patch Set 11 : more debugging #

Total comments: 4

Patch Set 12 : linting for coverage #

Total comments: 9

Patch Set 13 : Fixed crash_handler_test.py. Also various other unittest debugging. #

Patch Set 14 : cleaning up where regression_range lives in crash_data #

Patch Set 15 : rebase-update #

Patch Set 16 : Addressing the crash_config.fracas issue #

Total comments: 13

Patch Set 17 : rebasing against recently landed cls #

Total comments: 5

Patch Set 18 : more debugging of mocking #

Patch Set 19 : Finally fixed the mock tests! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1949 lines, -2124 lines) Patch
A appengine/findit/crash/azalea.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +31 lines, -0 lines 0 comments Download
A + appengine/findit/crash/changelist_classifier.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +113 lines, -77 lines 0 comments Download
D appengine/findit/crash/classifier.py View 1 chunk +0 lines, -107 lines 0 comments Download
M appengine/findit/crash/component.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -3 lines 0 comments Download
M appengine/findit/crash/component_classifier.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +25 lines, -10 lines 0 comments Download
M appengine/findit/crash/crash_pipeline.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +117 lines, -93 lines 0 comments Download
A appengine/findit/crash/crash_report.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +45 lines, -0 lines 0 comments Download
A appengine/findit/crash/culprit.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +171 lines, -0 lines 0 comments Download
A appengine/findit/crash/findit.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +290 lines, -0 lines 0 comments Download
M appengine/findit/crash/findit_for_chromecrash.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +145 lines, -210 lines 0 comments Download
D appengine/findit/crash/findit_for_client.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -177 lines 0 comments Download
A appengine/findit/crash/findit_for_clusterfuzz.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +42 lines, -0 lines 0 comments Download
D appengine/findit/crash/findit_for_crash.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -260 lines 0 comments Download
A appengine/findit/crash/occurrence.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +111 lines, -0 lines 0 comments Download
M appengine/findit/crash/project_classifier.py View 1 2 3 4 5 6 7 5 chunks +50 lines, -30 lines 0 comments Download
M appengine/findit/crash/results.py View 1 2 3 4 5 6 7 6 chunks +25 lines, -6 lines 0 comments Download
A + appengine/findit/crash/test/changelist_classifier_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 13 chunks +87 lines, -70 lines 0 comments Download
D appengine/findit/crash/test/classifier_test.py View 1 chunk +0 lines, -76 lines 0 comments Download
M appengine/findit/crash/test/crash_pipeline_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +152 lines, -173 lines 0 comments Download
M appengine/findit/crash/test/crash_test_suite.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/crash/test/detect_regression_range_test.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -5 lines 0 comments Download
M appengine/findit/crash/test/findit_for_chromecrash_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +244 lines, -71 lines 0 comments Download
D appengine/findit/crash/test/findit_for_client_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -247 lines 0 comments Download
D appengine/findit/crash/test/findit_for_crash_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -422 lines 0 comments Download
A appengine/findit/crash/test/findit_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +123 lines, -0 lines 0 comments Download
A + appengine/findit/crash/test/occurrence_test.py View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +15 lines, -10 lines 0 comments Download
M appengine/findit/crash/test/project_classifier_test.py View 1 2 3 4 5 6 7 3 chunks +6 lines, -13 lines 0 comments Download
M appengine/findit/crash/test/results_test.py View 1 2 3 4 5 6 7 6 chunks +8 lines, -7 lines 0 comments Download
M appengine/findit/crash/test/stacktrace_test.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/handlers/crash/crash_handler.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -10 lines 0 comments Download
M appengine/findit/handlers/crash/test/crash_handler_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +27 lines, -44 lines 0 comments Download
M appengine/findit/model/crash/crash_analysis.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +37 lines, -0 lines 0 comments Download
M appengine/findit/model/crash/test/crash_analysis_test.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +72 lines, -1 line 0 comments Download

Messages

Total messages: 55 (18 generated)
wrengr
Some of the unittests don't pass, but it's not entirely clear how to fix them. ...
4 years, 2 months ago (2016-10-11 22:05:50 UTC) #3
stgao
I really like the change in this CL. And it should improve the code a ...
4 years, 2 months ago (2016-10-12 15:46:58 UTC) #4
Sharu Jiang
Post some comments first, will take a further look, for failed tests, can you post ...
4 years, 2 months ago (2016-10-12 17:46:30 UTC) #5
wrengr
Thanks for the comments. I have a few followup questions included below. Also, still need ...
4 years, 2 months ago (2016-10-12 21:14:51 UTC) #6
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2414523002/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode28 appengine/findit/crash/crash_pipeline.py:28: # TODO(wrengr): this should prolly be a method on ...
4 years, 2 months ago (2016-10-12 22:35:03 UTC) #9
stgao
https://codereview.chromium.org/2414523002/diff/40001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2414523002/diff/40001/appengine/findit/crash/crash_pipeline.py#newcode100 appengine/findit/crash/crash_pipeline.py:100: logging.error('Aborted analysis for %s', repr(self.crash_identifiers)) On 2016/10/12 21:14:51, wrengr ...
4 years, 2 months ago (2016-10-13 06:03:17 UTC) #10
wrengr
I've posted a newer version of the CL. Still having issues with crash.test.findit_for_chromecrash_test.testFindCulpritForChromeCrash being flaky ...
4 years, 2 months ago (2016-10-18 23:13:54 UTC) #11
wrengr
I've included some stack traces for unittests which are still failing. I need help debugging ...
4 years, 2 months ago (2016-10-18 23:28:10 UTC) #12
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/200001/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2414523002/diff/200001/appengine/findit/crash/findit_for_chromecrash.py#newcode64 appengine/findit/crash/findit_for_chromecrash.py:64: crash_data.get('customized_data', {}).get('historical_metadata', [])) Should also set model.regression_range here or ...
4 years, 2 months ago (2016-10-19 00:20:06 UTC) #13
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/200001/appengine/findit/handlers/crash/test/crash_handler_test.py File appengine/findit/handlers/crash/test/crash_handler_test.py (right): https://codereview.chromium.org/2414523002/diff/200001/appengine/findit/handlers/crash/test/crash_handler_test.py#newcode80 appengine/findit/handlers/crash/test/crash_handler_test.py:80: self.assertEqual(1, len(requested_crashes)) On 2016/10/18 23:28:10, wrengr wrote: > The ...
4 years, 2 months ago (2016-10-19 00:53:07 UTC) #14
wrengr
Any idea about where the "FinditForWhatever is not JSON serializable" errors are coming from? I ...
4 years, 2 months ago (2016-10-19 18:05:16 UTC) #15
stgao
https://codereview.chromium.org/2414523002/diff/240001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2414523002/diff/240001/appengine/findit/crash/crash_pipeline.py#newcode120 appengine/findit/crash/crash_pipeline.py:120: run_analysis = yield CrashAnalysisPipeline(findit_client, crash_identifiers) And same here for ...
4 years, 2 months ago (2016-10-19 18:20:53 UTC) #16
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/200001/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2414523002/diff/200001/appengine/findit/crash/findit_for_chromecrash.py#newcode64 appengine/findit/crash/findit_for_chromecrash.py:64: crash_data.get('customized_data', {}).get('historical_metadata', [])) On 2016/10/19 18:05:16, wrengr wrote: > ...
4 years, 2 months ago (2016-10-19 21:03:10 UTC) #17
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit.py File appengine/findit/crash/findit.py (right): https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit.py#newcode187 appengine/findit/crash/findit.py:187: analysis_pipeline = self._pipeline_cls(self.client_id, crash_identifiers) This is like we construct ...
4 years, 2 months ago (2016-10-21 21:57:06 UTC) #18
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py#newcode42 appengine/findit/crash/findit_for_chromecrash.py:42: crash_config = CrashConfig.Get() There is already a config property ...
4 years, 2 months ago (2016-10-21 22:06:33 UTC) #19
wrengr
Okay, I finally have a version that's actually ready for review, as such. There arere ...
4 years, 2 months ago (2016-10-22 00:18:49 UTC) #23
wrengr
Ping. https://codereview.chromium.org/2414523002/diff/240001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2414523002/diff/240001/appengine/findit/crash/crash_pipeline.py#newcode120 appengine/findit/crash/crash_pipeline.py:120: run_analysis = yield CrashAnalysisPipeline(findit_client, crash_identifiers) On 2016/10/19 18:20:53, ...
4 years, 1 month ago (2016-10-24 18:36:14 UTC) #24
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py#newcode42 appengine/findit/crash/findit_for_chromecrash.py:42: crash_config = CrashConfig.Get() On 2016/10/21 22:06:33, sharu jiang wrote: ...
4 years, 1 month ago (2016-10-24 19:38:23 UTC) #25
wrengr
https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py#newcode50 appengine/findit/crash/findit_for_chromecrash.py:50: top_n_frames = crash_config.fracas.get('top_n', _DEFAULT_TOP_N)), On 2016/10/24 19:38:23, sharu jiang ...
4 years, 1 month ago (2016-10-24 22:29:48 UTC) #26
wrengr
https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py File appengine/findit/crash/findit_for_chromecrash.py (right): https://codereview.chromium.org/2414523002/diff/320001/appengine/findit/crash/findit_for_chromecrash.py#newcode42 appengine/findit/crash/findit_for_chromecrash.py:42: crash_config = CrashConfig.Get() On 2016/10/21 22:06:33, sharu jiang wrote: ...
4 years, 1 month ago (2016-10-24 22:39:00 UTC) #27
aarya
lgtm. lets land this, this CL is already getting huge. And we can track individual ...
4 years, 1 month ago (2016-10-25 02:45:40 UTC) #29
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/2414523002/400001
4 years, 1 month ago (2016-10-25 17:23:52 UTC) #31
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 1 month ago (2016-10-25 17:23:55 UTC) #33
stgao
On 2016/10/25 17:23:55, commit-bot: I haz the power wrote: > No L-G-T-M from a valid ...
4 years, 1 month ago (2016-10-25 17:25:00 UTC) #34
stgao
lgtm as I didn't see any big issue. Regarding the cycle dependency, I'd like to ...
4 years, 1 month ago (2016-10-25 18:03:42 UTC) #35
stgao
I also agree with Abhishek that we'd better avoid huge CL like this in the ...
4 years, 1 month ago (2016-10-25 18:23:11 UTC) #36
Sharu Jiang
lgtm with some comments. https://codereview.chromium.org/2414523002/diff/400001/appengine/findit/crash/culprit.py File appengine/findit/crash/culprit.py (right): https://codereview.chromium.org/2414523002/diff/400001/appengine/findit/crash/culprit.py#newcode119 appengine/findit/crash/culprit.py:119: class NullCulprit(object): # pragma: no ...
4 years, 1 month ago (2016-10-25 18:31:44 UTC) #37
wrengr
https://codereview.chromium.org/2414523002/diff/400001/appengine/findit/crash/crash_pipeline.py File appengine/findit/crash/crash_pipeline.py (right): https://codereview.chromium.org/2414523002/diff/400001/appengine/findit/crash/crash_pipeline.py#newcode146 appengine/findit/crash/crash_pipeline.py:146: client_config = self._findit.config On 2016/10/25 18:03:41, stgao wrote: > ...
4 years, 1 month ago (2016-10-25 19:49:54 UTC) #38
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/2414523002/400001
4 years, 1 month ago (2016-10-25 19:50:11 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: Infra Linux Precise 32 Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/321636432cb9fb10) ...
4 years, 1 month ago (2016-10-25 19:52:01 UTC) #42
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/2414523002/420001
4 years, 1 month ago (2016-10-25 23:34:17 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: Infra Linux Trusty 64 Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/321703714e52ab10)
4 years, 1 month ago (2016-10-25 23:47:27 UTC) #47
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/420001/appengine/findit/crash/test/crash_pipeline_test.py File appengine/findit/crash/test/crash_pipeline_test.py (right): https://codereview.chromium.org/2414523002/diff/420001/appengine/findit/crash/test/crash_pipeline_test.py#newcode111 appengine/findit/crash/test/crash_pipeline_test.py:111: #analysis_pipeline.run() the self._client_id, self._crash_identifiers should be passed to run ...
4 years, 1 month ago (2016-10-26 01:16:00 UTC) #48
wrengr
https://codereview.chromium.org/2414523002/diff/420001/appengine/findit/crash/test/crash_pipeline_test.py File appengine/findit/crash/test/crash_pipeline_test.py (right): https://codereview.chromium.org/2414523002/diff/420001/appengine/findit/crash/test/crash_pipeline_test.py#newcode111 appengine/findit/crash/test/crash_pipeline_test.py:111: #analysis_pipeline.run() On 2016/10/26 01:16:00, sharu jiang wrote: > the ...
4 years, 1 month ago (2016-10-26 17:05:19 UTC) #49
Sharu Jiang
https://codereview.chromium.org/2414523002/diff/420001/appengine/findit/crash/test/crash_pipeline_test.py File appengine/findit/crash/test/crash_pipeline_test.py (right): https://codereview.chromium.org/2414523002/diff/420001/appengine/findit/crash/test/crash_pipeline_test.py#newcode111 appengine/findit/crash/test/crash_pipeline_test.py:111: #analysis_pipeline.run() On 2016/10/26 17:05:19, wrengr wrote: > On 2016/10/26 ...
4 years, 1 month ago (2016-10-26 19:09:32 UTC) #50
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/2414523002/460001
4 years, 1 month ago (2016-10-26 21:01:20 UTC) #53
commit-bot: I haz the power
4 years, 1 month ago (2016-10-26 21:42:52 UTC) #55
Message was sent while issue was closed.
Committed patchset #19 (id:460001) as
https://chromium.googlesource.com/infra/infra/+/6a8b24da0d0a58339da9f3c86e365...

Powered by Google App Engine
This is Rietveld 408576698