Revert "Temporarily disable regeneration of old results"

This reverts commit 25c9fb7ad4.
This commit is contained in:
Marco Castelluccio 2020-04-14 13:26:30 +02:00
Родитель e2ed270c33
Коммит 8920bde3a4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -134,14 +134,14 @@ class Retriever(object):
# algorithm is currently pretty slow, so we only regenerate 1000 pushes whenever we
# run.
to_regenerate = set()
"""for push in pushes[::-1]:
for push in pushes[::-1]:
cached = adr.config.cache.get(cache_key(push))
if not cached:
continue
value, mozci_version = cached
if mozci_version != MOZCI_VERSION and len(to_regenerate) < 1000:
to_regenerate.add(value[0][0])"""
to_regenerate.add(value[0][0])
for push in tqdm(pushes):
key = cache_key(push)