-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Report percentual download progress in repository rules #18450
Conversation
If the HTTP response to a download request contains a `Content-Length` header, download progress is now reported as `10.1 MiB (20.2%)` instead of `10.1 MiB (10,590,000B)`.
6f83010
to
010e6d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
@bazel-io flag |
@coeuvre Not something for this PR, but I wonder whether we should consolidate the different ways download progress is presented across repo and remote cache downloads at some point. I don't know what the best format would be, but we could track and discuss in an issue. |
@bazel-io fork 6.3.0 |
@meteorcloudy I pushed a small commit that handles edge cases I missed earlier. |
Yes, I agree. Would you mind creating an issue for this? |
If the HTTP response to a download request contains a `Content-Length` header, download progress is now reported as `10.1 MiB (20.2%)` instead of `10.1 MiB (10,590,000B)`. Closes bazelbuild#18450. PiperOrigin-RevId: 534035444 Change-Id: I1c5144555eda1890652b4d3f62b414292ba909d5
If the HTTP response to a download request contains a `Content-Length` header, download progress is now reported as `10.1 MiB (20.2%)` instead of `10.1 MiB (10,590,000B)`. Closes #18450. PiperOrigin-RevId: 534035444 Change-Id: I1c5144555eda1890652b4d3f62b414292ba909d5 Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
If the HTTP response to a download request contains a `Content-Length` header, download progress is now reported as `10.1 MiB (20.2%)` instead of `10.1 MiB (10,590,000B)`. Closes bazelbuild#18450. PiperOrigin-RevId: 534035444 Change-Id: I1c5144555eda1890652b4d3f62b414292ba909d5
If the HTTP response to a download request contains a
Content-Length
header, download progress is now reported as10.1 MiB (20.2%)
instead of10.1 MiB (10,590,000B)
.