-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Show download progress for the Preload Tarball #9740
Comments
We have the same problem for the kicbase: #7012 (but it uses a different library, so will need a different fix) |
We're using the same library and the same storage for both, so it must be something else ? |
The responses look similar enough:
HTTP/2 200 |
The 80 So the downloaded filename needs to be truncated (...), before it is used for the progress bar. |
In order to also show the actual progress bar, we need to stay below 15 characters. Otherwise it won't fit.
One approach would be to use two lines, and then display the full filename and a full progress bar. |
Maybe we could just omit that information from the main output but show the full name in the verbose logs? |
I would like to show a little information. Currently docker doesn't show anything, and it is a bit annoying.
It just stays forever at that tractor, doesn't even show "gcr.io/k8s-minikube/kicbase:v0.0.14" or anything. |
And we do show the URL in the logs already. That The rest of minikube interface is more like this: |
Example output:
Very easy to implement, at least @ -41,13 +41,16 @@ type progressBar struct {
// display the progress of stream until closed.
// total can be 0.
func (cpb *progressBar) TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) io.ReadCloser {
+ if strings.HasSuffix(src, "sha256") {
+ return stream
+ }
cpb.lock.Lock()
defer cpb.lock.Unlock()
if cpb.progress == nil {
cpb.progress = pb.New64(totalSize)
}
p := pb.Full.Start64(totalSize)
- p.Set("prefix", " > "+filepath.Base(src+": "))
+ p.Set("prefix", " ")
p.SetCurrent(currentSize)
p.Set(pb.Bytes, true)
|
As you can see in the above screenshot, we don't show the progress of the download. It is missing the bandwidth, size of remaining content, ETA etc. like we show for the ISO.
Since this preload tarball is big, the above information is essential.
The text was updated successfully, but these errors were encountered: