-
Notifications
You must be signed in to change notification settings - Fork 7
[update] Add progress status to the update #110
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
base: main
Are you sure you want to change the base?
Conversation
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.
We should also add a progress to the docker image download step It is ok to do it also in another PR
e8453a1 to
1230f69
Compare
lucarin91
left a comment
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.
We should update the two helper functions in the comment below to fully support the new progress message type.
| eventCB(update.NewDataEvent(update.UpgradeLineEvent, data)) | ||
| makeTaskProgressCallback := func(name string, basePercentage, phaseWeight float32) func(*rpc.TaskProgress) { | ||
| return func(msg *rpc.TaskProgress) { | ||
| // FIXME: update this helper function |
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.
and this
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.
please check: 8246cd4
Motivation
When launching the update process (both via API and, eventually, a CLI command), we should return a progress in percentage. This could be done in many ways:
estimate the time needed for some tasks, based on previous measurements (for example, how much it usually takes to do an apt update on Imola)
When we know there is a list of tasks to do (a list of packages to update), then it's possible to use that to provide progress information
This information can then be used by the FE team (App Lab) to show a progress bar.
Change description
Additional Notes
Reviewer checklist
main.