Skip to content

bot, report: Update task object status, as it is used later #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bot/code_coverage_bot/artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 2 additions & 0 deletions report/firefox_code_coverage/codecoverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down