-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[OTA Requestor] Implement the CancelImageUpdate() OTARequestor API #13778
Merged
Conversation
This file contains 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
pullapprove
bot
requested review from
anush-apple,
balducci-apple,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
erjiaqing,
franck-apple,
gjc13,
harimau-qirex,
hawk248,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kpschoedel,
LuDuda,
lzgrablic02,
mlepage-google and
mrjerryjohns
January 20, 2022 18:58
PR #13778: Size comparison from fd815cd to 06a0c91 Increases (2 builds for k32w, qpg)
Full report (32 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
carol-apple
reviewed
Jan 20, 2022
carol-apple
reviewed
Jan 20, 2022
carol-apple
reviewed
Jan 20, 2022
carol-apple
reviewed
Jan 21, 2022
PR #13778: Size comparison from 543c752 to 014a079 Increases above 0.2%:
Increases (14 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
Decreases (1 build for p6)
Full report (15 builds for cyw30739, efr32, k32w, linux, p6, qpg, telink)
|
carol-apple
approved these changes
Jan 25, 2022
PR #13778: Size comparison from c428576 to ea25e12 Increases (26 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
woody-apple
approved these changes
Jan 26, 2022
jmartinez-silabs
approved these changes
Jan 26, 2022
LuDuda
approved these changes
Jan 26, 2022
PR #13778: Size comparison from 12253c6 to 8f0723c Increases (6 builds for k32w, mbed, nrfconnect, qpg)
Full report (32 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
selissia
added a commit
to selissia/connectedhomeip
that referenced
this pull request
Jan 28, 2022
…roject-chip#13778) * Implement the CancelImageUpdate() OTARequestor API * Restyled by clang-format * Add CancelImageUpdate() to OTARequestorInterface * Add the override modifier * Add UpdateCancelled() API to OTARequestorDriver * Restyled by clang-format * Fix a bug in SetBlock() where varied block size will kill the download Issue: project-chip#13393 Co-authored-by: Restyled.io <[email protected]>
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.
Problem
Need an OTARequestor API to cancel image update
Change overview
Implement the CancelImageUpdate() OTARequestor API. Also add the UpdateCancelled API to OTARequestorDriver.
Also add comments and a check to highlight the fact the mProviderNodeId, mProviderFabricIndex and mProviderEndpointId OTARequestor member variables only apply to the image update currently in progress.
Also fix #13393 for Linux (change in
src/platform/Linux/OTAImageProcessorImpl.cpp
)Testing
Tested with a custom-coded Linux chip-ota-requestor-app to invoke CancelImageUpdate() at various stages of the image udate flow (idle, download in progress).