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

Installing Updates - 0% -> 100% -> 10% -> 100% for apt backend #749

Open
sidt4 opened this issue May 9, 2024 · 1 comment
Open

Installing Updates - 0% -> 100% -> 10% -> 100% for apt backend #749

sidt4 opened this issue May 9, 2024 · 1 comment

Comments

@sidt4
Copy link
Contributor

sidt4 commented May 9, 2024

In plymouth screen, the progress percent for installing offline updates goes from 0% to 100% quickly and again starts from around 10% and goes to 100%.

This is 100% reproducible on every offline update in apt backend.

@sidt4
Copy link
Contributor Author

sidt4 commented May 19, 2024

This is due to the progress of status loading-cache etc which precede the install, as shown below:

Transactions:
 1	/1_caebdbad
/1_caebdbad	allow_cancel 1
/1_caebdbad	percentage   -1
/1_caebdbad	role         update-packages
/1_caebdbad	sender       /usr/libexec/pk-offline-update
/1_caebdbad	status       setup
/1_caebdbad	status       loading-cache
/1_caebdbad	percentage   0
/1_caebdbad	percentage   1
/1_caebdbad	percentage   0
/1_caebdbad	percentage   50
/1_caebdbad	percentage   100
/1_caebdbad	status       query
/1_caebdbad	status       running
/1_caebdbad	status       loading-cache
/1_caebdbad	status       download
/1_caebdbad	status       running
/1_caebdbad	allow_cancel 0
/1_caebdbad	percentage   -1
/1_caebdbad	percentage   0
/1_caebdbad	package-id   Package_X
/1_caebdbad	package      preparing:Package_X:debug symbols for Package_X
/1_caebdbad	item-progress Package_X,25 [setup]
/1_caebdbad	package      decompressing:Package_X:debug symbols for Package_X
/1_caebdbad	item-progress Package_X,50 [install]
/1_caebdbad	percentage   2

I think we should do one of the following:

  • report percentage progress only from install status -or-
  • add the task label corresponding to the progress being displayed.

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

No branches or pull requests

1 participant