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

Unified Diff: appengine/findit/waterfall/flake/step_mapper.py

Issue 2557553002: [Culprit-Finder] Seperate gae related part in cache_decorator and gitile repository to gae_libs/ (Closed)
Patch Set: Fix nits. Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/waterfall/flake/step_mapper.py
diff --git a/appengine/findit/waterfall/flake/step_mapper.py b/appengine/findit/waterfall/flake/step_mapper.py
index 63c09d7a0cf128327b9f2898236a5b8cebf289f3..a831ee2b16383cb6dca76fbab2601c11f0e80ef9 100644
--- a/appengine/findit/waterfall/flake/step_mapper.py
+++ b/appengine/findit/waterfall/flake/step_mapper.py
@@ -8,13 +8,14 @@ import os
import logging
from common.http_client_appengine import HttpClientAppengine as HttpClient
+from gae_libs import caches
from lib import cache_decorator
from waterfall import buildbot
from waterfall import swarming_util
@cache_decorator.Cached(
- namespace='trybots', cacher=cache_decorator.CompressedMemCacher())
+ namespace='trybots', cache=caches.CompressedMemCache())
def _LoadTrybots(): # pragma: no cover.
"""Returns the mapping of Commit Queue trybots to Waterfall buildbots."""
with open(os.path.join(os.path.dirname(__file__), 'trybots.json'), 'r') as f:
@@ -167,4 +168,4 @@ def FindMatchingWaterfallStep(build_step): # pragma: no cover.
isinstance(output.get('all_tests'), list) and
isinstance(output.get('per_iteration_data'), list) and
all(isinstance(i, dict) for i in output.get('per_iteration_data'))
- )
+ )

Powered by Google App Engine
This is Rietveld 408576698