-
Notifications
You must be signed in to change notification settings - Fork 18
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
[OPS] Add downloading of new apps to finalize cycle #384
[OPS] Add downloading of new apps to finalize cycle #384
Conversation
c2d0bda
to
0c26a86
Compare
Hi @NoelsJaan, Thank you for posting this PR. Based on my current understanding of your use case, this change should help address the issue you’ve encountered. Before we can accept this change, we need to:
I have one question: my understanding is that you are currently using LmP version 94 and need to address this issue in v94. If that’s correct, please rebase this PR to the |
src/composeappmanager.cc
Outdated
// First we print the run_res error message | ||
LOG_ERROR << "App: " << app_pair.first << ", failed to start: " << run_res.err; | ||
// If this fails it is possible that some apps are missing since they are added in this new target. | ||
LOG_INFO << "Downloading App because it would not start"; |
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.
Maybe (Re-)downloading app before retrying to start it again; app: <>
?
Currently, I see two issues with the given approach:
|
I think we should reconsider approach slightly in order to fulfill all edge cases (e.g. no space) and all other use-cases. At first glance, we need to do the following:
|
Thank you for your feedback @mike-sul! I agree that the reconsideration of the approach will be a more solid solution. I will have a look at the possibility to detect the error and to differentiate it from the others. That will be a great first step. |
Signed-off-by: Jaan Noels <[email protected]>
0c26a86
to
470b0e9
Compare
@NoelsJaan My understanding is that you are currently using the LmP version 94 and need to address this issue in v94? |
LOG_INFO << "(Re-)downloading app before retrying to start it again; app: " << app_pair.first; | ||
const DownloadResult download_res = Download(Target::toTufTarget(target)); // download the missing apps | ||
if(!download_res) { | ||
LOG_ERROR << "Failed to (re-)download the missing apps; app: " << app_pair.first; |
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.
Does it make sense to continue the for
loop if an error to re-download app occurs?
@NoelsJaan Please let me know if this approach works for you? |
@mike-sul yes, this should fix it. Thank you. |
@NoelsJaan FYI, The proposed fix has been merged into the If you think that the solution in this PR is still needed then I will create a new PR where both approaches are combined, i.e. optionally (defined by a new configuration variable) an app can be pulled during finalization. |
Retry Mechanism:
Possibly closes #383