-
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
Change CLI option behavior for OTA-R and OTA-P to revert back to the success case after using the CLI supplied values #16095
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
andy31415,
anush-apple,
balducci-apple,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
franck-apple,
gjc13,
harimau-qirex,
hawk248,
holbrookt,
harsha-rajendran,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kpschoedel,
lazarkov,
LuDuda,
lzgrablic02,
mrjerryjohns and
msandstedt
March 11, 2022 05:38
carol-apple
reviewed
Mar 12, 2022
carol-apple
reviewed
Mar 12, 2022
carol-apple
reviewed
Mar 12, 2022
…QueryImageResponse and ApplyImageResponse commands - For OTA-P, make -q, -a, and -u be applied just once and then revert back to the success case.
- Remove counters and just revert behavior to success case after first use - Fix userConsentState ignore once case
- Remove count variables.
- Update comments.
- Split -t command line arg into -t and -p.
PR #16095: Size comparison from 6e76729 to b8a1945 Full report (16 builds for cyw30739, efr32, k32w, linux, mbed, nrfconnect, p6, telink)
|
carol-apple
reviewed
Mar 14, 2022
carol-apple
reviewed
Mar 14, 2022
carol-apple
reviewed
Mar 14, 2022
carol-apple
reviewed
Mar 14, 2022
carol-apple
reviewed
Mar 14, 2022
carol-apple
approved these changes
Mar 14, 2022
- Update readme and CLI info texts.
selissia
approved these changes
Mar 14, 2022
PR #16095: Size comparison from 6e76729 to 6c532ab Increases (18 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
Full report (18 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
harsha-rajendran
approved these changes
Mar 14, 2022
andrei-menzopol
pushed a commit
to andrei-menzopol/connectedhomeip
that referenced
this pull request
Apr 14, 2022
…success case after using the CLI supplied values (project-chip#16095) * Issue project-chip#15656 [ota-provider-app] Add counters for various QueryImageResponse and ApplyImageResponse commands - For OTA-P, make -q, -a, and -u be applied just once and then revert back to the success case. * - Remove debug logs - Remove counters and just revert behavior to success case after first use - Fix userConsentState ignore once case * - Update ReadMes and CLI comments. * - Remove debug code. - Remove count variables. * scripts/helpers/restyle-diff.sh * Resolve spellcheck errors. * Code review changes. - Update comments. * scripts/helpers/restyle-diff.sh * Code review changes. - Split -t command line arg into -t and -p. * scripts/helpers/restyle-diff.sh * Code review changes. - Update readme and CLI info texts.
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
Currently the values supplied in CLI options for OTA-P and OTA-R remain the same for the duration of its runtime. Therefore real world scenarios where Provider replies Busy, and then on subsequent tries UpdateAvailable is not possible.
Fixes: #15656
Change overview
Change the behavior of the following CLI supplied values to use the supplied value only once, and then revert back to the success value on subsequent request/responses.
Provider:
Requestor:
Testing
Tested various combinations of the above CLI options and ensured that subsequent QueryImage commands succeed and default to the success path. Also ensured that the delayedQueryActionTimeSec and delayedApplyActionTimeSec values supplied is applied to the first QueryImageResponse and ApplyUpdateResponses only respectively and reverts back to 0 on subsequent QueryImageResponse and ApplyUpdateResponses respectively.