Skip to content

Display download progress when using Azure Storage SDK - #513

Merged
aiqiaoy merged 2 commits into
actions:masterfrom
dhadka:dhadka/download-progress
Jul 14, 2020
Merged

Display download progress when using Azure Storage SDK#513
aiqiaoy merged 2 commits into
actions:masterfrom
dhadka:dhadka/download-progress

Conversation

@dhadka

Copy link
Copy Markdown
Contributor

Creates a timer to display download progress every second, including the # of bytes received and the average download speed. This is intended to provide better visibility into the download, especially for larger caches.

Here's an example restoring a 500 MB cache:

##[debug]Archive Path: /home/runner/work/_temp/7ad5a251-5ec2-455f-ad81-d9968ddcad82/cache.tzst
##[debug]Use Azure SDK: true
##[debug]Download concurrency: 8
##[debug]Request timeout (ms): 30000
##[debug]Downloading segment at offset 0 with length 524301052...
Received 171966464 of 524301052 (32.8%), 164.0 MBs/sec
Received 268435456 of 524301052 (51.2%), 127.9 MBs/sec
Received 486539264 of 524301052 (92.8%), 154.6 MBs/sec
Received 524301052 of 524301052 (100.0%), 143.6 MBs/sec
Cache Size: ~500 MB (524301052 B)
/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/7ad5a251-5ec2-455f-ad81-d9968ddcad82/cache.tzst -P -C /home/runner/work/cache-canary/cache-canary

@dhadkadhadka changed the title Display download progressDisplay download progress when using Azure Storage SDKJul 13, 2020
Comment threadpackages/cache/src/internal/downloadUtils.ts
Comment threadpackages/cache/src/internal/downloadUtils.ts Outdated
@aiqiaoy
aiqiaoy merged commit 8fdeff4 into actions:masterJul 14, 2020
@aiqiaoy

Copy link
Copy Markdown
Contributor

toolkit-audit check failure is a known issue: https://github.slack.com/archives/D010RN1245D/p1594736728009600

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@dhadka@aiqiaoy