-
Notifications
You must be signed in to change notification settings - Fork 79
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
"Layers needed" progress should show in bootc status
#515
Comments
Seconding that and adding:
Overall installation progress bar should have a percentage dedicated to pulling layers (e.g., x=40%) and one to installing (e.g., y=60%) The program is aware of the layer sizes, therefore it can do the following: DL_WEIGHT = 0.4
def progress():
total_size = sum([l.size() for l in layers if not l.downloaded()])
if step == "pulling":
return DL_WEIGHT * curr_layer.progress() * (curr_layer.size() / total_size)
else:
completed = sum([l.size() for l in layers if l.applied()])
return DL_WEIGHT + (1 - DL_WEIGHT) * (completed / total_size) In addition, while its nice to view in a tty, programs should be able to take advantage of this too. Therefore, there should be a TOTAL_WEIGHT = 10000
def progress_stderr():
p = progress()
return f"{int(p*TOTAL_WEIGHT)}/{TOTAL_WEIGHT}\n" Stdout should only have the logs, so they can 1) be logged for transparency and 2) optionally shown to the user. Also, current version eats the update log. It needs to say The cherry on top would be if there is an estimated time in this too. It is easy to do for the download, perhaps not so much for application. Perhaps assuming the user has a 10gbit SSD and returning a constant time left based on update size during application? I also saw the current backend essentially marshals |
|
#524 will add the layer counts to progress. |
I think #524 fixes the initial request here.
Yes, I'd agree, though there's a good bit more involved there at a technical level right now, and I think it's going to need to slot behind other things. For now, closing the original bug here as fixed, but we will clearly revisit progress bars after more infra work has landed. |
…le-3.8.0 build(deps): bump tempfile from 3.7.1 to 3.8.0
lib: Dispatch to monomorphic function
The progress meter resets for each layer, making it tough for me to see overall progress.
I know that each layer will be different but maybe a [1/62] and so on would at least show the completion of each layer.
The text was updated successfully, but these errors were encountered: