Skip to content
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

Display download progress when using Azure Storage SDK #513

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

dhadka
Copy link
Member

@dhadka dhadka commented Jul 13, 2020

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

@dhadka dhadka changed the title Display download progress Display download progress when using Azure Storage SDK Jul 13, 2020
@dhadka dhadka force-pushed the dhadka/download-progress branch from 15708fb to c4a92b0 Compare July 13, 2020 21:09
@aiqiaoy aiqiaoy merged commit 8fdeff4 into actions:master Jul 14, 2020
@aiqiaoy
Copy link
Contributor

aiqiaoy commented Jul 14, 2020

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

Sign up for free to 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