diff --git a/bot/code_coverage_bot/artifacts.py b/bot/code_coverage_bot/artifacts.py index dce10828a..6ee44a8ea 100644 --- a/bot/code_coverage_bot/artifacts.py +++ b/bot/code_coverage_bot/artifacts.py @@ -163,6 +163,8 @@ def download_all(self): time.sleep(60) task_status = taskcluster.get_task_status(task_id) status = task_status["status"]["state"] + # Update the task status, as we will use it to compare statuses later. + test_task["status"]["state"] = status # Choose best tasks to download (e.g. 'completed' is better than 'failed') download_tasks = {} diff --git a/report/firefox_code_coverage/codecoverage.py b/report/firefox_code_coverage/codecoverage.py index 67cd06323..83ae4600e 100644 --- a/report/firefox_code_coverage/codecoverage.py +++ b/report/firefox_code_coverage/codecoverage.py @@ -199,6 +199,8 @@ def _is_in_platforms_task(t): sys.stdout.flush() time.sleep(60) status = get_task_status(test_task["status"]["taskId"]) + # Update the task status, as we will use it to compare statuses later. + test_task["status"]["state"] = status assert status in ALL_STATUSES chunk_name = get_chunk(test_task["task"]["metadata"]["name"])