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

Side by Side Diff: appengine/findit/findit_api.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/findit.py ('k') | appengine/findit/handlers/crash/fracas_dashboard.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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 """This module is to provide Findit service APIs through Cloud Endpoints: 5 """This module is to provide Findit service APIs through Cloud Endpoints:
6 6
7 Current APIs include: 7 Current APIs include:
8 1. Analysis of compile/test failures in Chromium waterfalls. 8 1. Analysis of compile/test failures in Chromium waterfalls.
9 Analyzes failures and detects suspected CLs. 9 Analyzes failures and detects suspected CLs.
10 2. Analysis of flakes on Commit Queue. 10 2. Analysis of flakes on Commit Queue.
11 """ 11 """
12 12
13 from collections import defaultdict 13 from collections import defaultdict
14 import json 14 import json
15 import logging 15 import logging
16 import pickle 16 import pickle
17 17
18 import endpoints 18 import endpoints
19 from google.appengine.api import taskqueue 19 from google.appengine.api import taskqueue
20 from protorpc import messages 20 from protorpc import messages
21 from protorpc import remote 21 from protorpc import remote
22 22
23 from common import appengine_util 23 from common import appengine_util
24 from common import auth_util 24 from common import auth_util
25 from common import constants 25 from common import constants
26 from common import time_util
27 from common.waterfall import failure_type 26 from common.waterfall import failure_type
27 from lib import time_util
28 from model import analysis_approach_type 28 from model import analysis_approach_type
29 from model import analysis_status 29 from model import analysis_status
30 from model.flake.flake_analysis_request import FlakeAnalysisRequest 30 from model.flake.flake_analysis_request import FlakeAnalysisRequest
31 from model.suspected_cl_confidence import SuspectedCLConfidence 31 from model.suspected_cl_confidence import SuspectedCLConfidence
32 from model.wf_analysis import WfAnalysis 32 from model.wf_analysis import WfAnalysis
33 from model.wf_suspected_cl import WfSuspectedCL 33 from model.wf_suspected_cl import WfSuspectedCL
34 from model.wf_swarming_task import WfSwarmingTask 34 from model.wf_swarming_task import WfSwarmingTask
35 from model.wf_try_job import WfTryJob 35 from model.wf_try_job import WfTryJob
36 from waterfall import build_util 36 from waterfall import build_util
37 from waterfall import buildbot 37 from waterfall import buildbot
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 506
507 try: 507 try:
508 _AsyncProcessFlakeReport(flake_analysis_request, user_email, is_admin) 508 _AsyncProcessFlakeReport(flake_analysis_request, user_email, is_admin)
509 queued = True 509 queued = True
510 except Exception: 510 except Exception:
511 # Ignore the report when fail to queue it for async processing. 511 # Ignore the report when fail to queue it for async processing.
512 queued = False 512 queued = False
513 logging.exception('Failed to queue flake report for async processing') 513 logging.exception('Failed to queue flake report for async processing')
514 514
515 return _FlakeAnalysis(queued=queued) 515 return _FlakeAnalysis(queued=queued)
OLDNEW
« no previous file with comments | « appengine/findit/crash/findit.py ('k') | appengine/findit/handlers/crash/fracas_dashboard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698