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

Side by Side Diff: appengine/findit/crash/findit.py

Issue 2480593002: [Predator] Move time_util from common/ to lib/, split code review related part to code_review_util (Closed)
Patch Set: Rebase and fix nits. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/findit/crash/crash_pipeline.py ('k') | appengine/findit/findit_api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import copy 5 import copy
6 import logging 6 import logging
7 7
8 from google.appengine.ext import ndb 8 from google.appengine.ext import ndb
9 9
10 from common import appengine_util 10 from common import appengine_util
11 from common import chrome_dependency_fetcher 11 from common import chrome_dependency_fetcher
12 from common import constants 12 from common import constants
13 from common import time_util
14 from crash.crash_report import CrashReport 13 from crash.crash_report import CrashReport
14 from lib import time_util
15 from model import analysis_status 15 from model import analysis_status
16 from model.crash.crash_config import CrashConfig 16 from model.crash.crash_config import CrashConfig
17 17
18 # TODO(http://crbug.com/659346): since most of our unit tests are 18 # TODO(http://crbug.com/659346): since most of our unit tests are
19 # FinditForFracas-specific, wrengr moved them to findit_for_chromecrash_test.py. 19 # FinditForFracas-specific, wrengr moved them to findit_for_chromecrash_test.py.
20 # However, now we're missing coverage for most of this file (due to the 20 # However, now we're missing coverage for most of this file (due to the
21 # buggy way coverage is computed). Need to add a bunch of new unittests 21 # buggy way coverage is computed). Need to add a bunch of new unittests
22 # to get coverage back up. 22 # to get coverage back up.
23 23
24 # TODO: this class depends on ndb stuff, and should therefore move to 24 # TODO: this class depends on ndb stuff, and should therefore move to
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 stacktrace = self.ParseStacktrace(model) 229 stacktrace = self.ParseStacktrace(model)
230 if stacktrace is None: 230 if stacktrace is None:
231 return None 231 return None
232 232
233 return self._predator.FindCulprit(CrashReport( 233 return self._predator.FindCulprit(CrashReport(
234 crashed_version = model.crashed_version, 234 crashed_version = model.crashed_version,
235 signature = model.signature, 235 signature = model.signature,
236 platform = model.platform, 236 platform = model.platform,
237 stacktrace = stacktrace, 237 stacktrace = stacktrace,
238 regression_range = model.regression_range)) 238 regression_range = model.regression_range))
OLDNEW
« no previous file with comments | « appengine/findit/crash/crash_pipeline.py ('k') | appengine/findit/findit_api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698