Repository navigation
K2GO-593 fix(install): Cancel stops the module install and its download - #821
Merged
Merged
Conversation
Cancel sent SIGTERM, proot stayed up and Ansible kept downloading. Now the runrole proot gets SIGKILL by pid, so the kernel ends all its processes. The revert removes the partial Ansible files, and the queue records the cancel.
…ll says so The module list, the setup screen and the module screen show "Canceled" for a user stop. The header says the install stopped, and the seed row hides when Forgejo did not install. Two new strings in all locales.
Retry started the install directly and downloaded on mobile data with no question. It now asks the same question as "Install now".
Kill only a proot that still runs (an ended command's pid can be reused). dpkg recovery does not wait on a conffile prompt. A cancel during pdsm stop cancels the first module, and a real failure still notifies.
With Keep offline, "Allow only this time" on Retry now counts for the run, as on the start path, so the module download does not ask a second time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
dpkg --configure -a, because a kill can now stop dpkg.Why
The user tapped "Stop install" and the download continued in the background (K2GO-593). On Android,
Process.destroyForcibly()does the same asdestroy()(SIGTERM).Steps to QA
Baseline (main): Settings > Module management > Forgejo > Install now > Install. During the program download, Cancel > Stop install. The file in /root/.ansible/tmp continues to grow.
Change: the same steps. In 4 s no Ansible process is left (
ps -A | grep ansible), the partial is removed, the row says "Canceled", the header says the install stopped. Retry installs Forgejo. Check light and dark.Verifications
Notes
killProcess()(SIGTERM) is unchanged for the server and the reconciler.UI changes