Compress the failing together probabilities DB at the end of the generation so that it's uploaded as an artifact

This commit is contained in:
Marco Castelluccio 2020-04-08 19:34:50 +02:00
Родитель 9a5f2410a9
Коммит 0aae91d07c
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -208,6 +208,9 @@ class Retriever(object):
past_failures_db = os.path.join(
"data", test_scheduling.PAST_FAILURES_LABEL_DB
)
failing_together_db = os.path.join(
"data", test_scheduling.FAILING_TOGETHER_LABEL_DB
)
elif granularity == "group":
test_scheduling_db = test_scheduling.TEST_GROUP_SCHEDULING_DB
past_failures_db = os.path.join(
@ -490,6 +493,10 @@ class Retriever(object):
with open_tar_zst(touched_together_db) as tar:
tar.add(touched_together_db[: -len(".tar.zst")])
if granularity == "label":
with open_tar_zst(failing_together_db) as tar:
tar.add(failing_together_db[: -len(".tar.zst")])
def main():
description = "Retrieve and extract the test scheduling history from ActiveData"