Skip to content

Commit

Permalink
Add extra logging for downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Jan 27, 2020
1 parent c22d9b4 commit d179299
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/ci/run_tc.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def download_url_to_descriptor(fd, url, max_retries=3):
max_retries = 0
for current_retry in range(max_retries+1):
try:
print("INFO: Downloading %s Try %d/%d" % (url, current_retry + 1, max_retries))
resp = urlopen(url)
# We may come here in a retry, ensure to truncate fd before start writing.
fd.seek(0)
Expand Down Expand Up @@ -269,6 +270,7 @@ def download_artifacts(artifacts):
artifact_list_by_task[artifact["task"]] = artifacts_data

artifacts_data = artifact_list_by_task[artifact["task"]]
print("DEBUG: Got artifacts %s" % artifacts_data)
found = False
for candidate in artifacts_data["artifacts"]:
print("DEBUG: candidate: %s glob: %s" % (candidate["name"], artifact["glob"]))
Expand Down

0 comments on commit d179299

Please sign in to comment.