Skip to content

Commit b7d866e

Browse files
authored
bot, report: Update task object status, as it is used later (#273)
1 parent 3cdaaef commit b7d866e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bot/code_coverage_bot/artifacts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def download_all(self):
163163
time.sleep(60)
164164
task_status = taskcluster.get_task_status(task_id)
165165
status = task_status["status"]["state"]
166+
# Update the task status, as we will use it to compare statuses later.
167+
test_task["status"]["state"] = status
166168

167169
# Choose best tasks to download (e.g. 'completed' is better than 'failed')
168170
download_tasks = {}

report/firefox_code_coverage/codecoverage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ def _is_in_platforms_task(t):
199199
sys.stdout.flush()
200200
time.sleep(60)
201201
status = get_task_status(test_task["status"]["taskId"])
202+
# Update the task status, as we will use it to compare statuses later.
203+
test_task["status"]["state"] = status
202204
assert status in ALL_STATUSES
203205

204206
chunk_name = get_chunk(test_task["task"]["metadata"]["name"])

0 commit comments

Comments
 (0)