Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed summary_cache dependencies

  • Loading branch information...
commit 3f8a29dc32b7132feaa1962badce9ef2dfa058f2 1 parent 1ccf2d5
jeads jeads authored
5 crontab.txt
@@ -2,11 +2,6 @@
2 2 PYTHON_ROOT=/usr/bin/
3 3 DATAZILLA_HOME=/usr/local/datazilla
4 4
5   -*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project stoneridge
6   -*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project b2g
7   -*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project jetperf
8   -*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project test
9   -
10 5 */2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project stoneridge
11 6 */2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project b2g
12 7 */2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project jetperf
7 datazilla/model/sql/perftest.json
@@ -626,6 +626,13 @@
626 626
627 627 "host":"master_host"
628 628 },
  629 + "get_summary_cache_keys":{
  630 +
  631 + "sql":"SELECT `item_id`, `item_data`
  632 + FROM `summary_cache`",
  633 +
  634 + "host":"master_host"
  635 + },
629 636 "get_test_collections":{
630 637
631 638 "sql":"SELECT tc.id,
35 datazilla/webapp/apps/datazilla/views.py
@@ -279,41 +279,6 @@ def _get_test_run_summary(project, method, request, dm):
279 279
280 280 json_data = '{}'
281 281
282   - #Commenting the use of memcache out for now, the shared memcache
283   - #in production is failing to return the expected data. This works
284   - #in development so it's likely a configuration issue of some sort.
285   - """
286   - if product_ids and (not test_ids) and (not platform_ids):
287   -
288   - if len(product_ids) > 1:
289   - extend_list = { 'data':[], 'columns':[] }
290   - for id in product_ids:
291   - key = utils.get_summary_cache_key(project, str(id), time_key)
292   -
293   - compressed_json_data = cache.get(key)
294   -
295   - if compressed_json_data:
296   - json_data = zlib.decompress( compressed_json_data )
297   - data = json.loads( json_data )
298   - extend_list['data'].extend( data['data'] )
299   - extend_list['columns'] = data['columns']
300   -
301   - json_data = json.dumps(extend_list)
302   -
303   -
304   - else:
305   - key = utils.get_summary_cache_key(
306   - project,
307   - str(product_ids[0]),
308   - time_key,
309   - )
310   - compressed_json_data = cache.get(key)
311   -
312   - if compressed_json_data:
313   - json_data = zlib.decompress( compressed_json_data )
314   -
315   - else:
316   - """
317 282 table = dm.get_test_run_summary(time_ranges[time_key]['start'],
318 283 time_ranges[time_key]['stop'],
319 284 product_ids,

0 comments on commit 3f8a29d

Please sign in to comment.
Something went wrong with that request. Please try again.