-
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
[im] Fix error code cases in IM[TE3] #7002
[im] Fix error code cases in IM[TE3] #7002
Conversation
Currently, we are using cluster catalog from the ember library, this should be modified or replaced after severalconnectedhomeip/src/app/util/ember-compatibility-functions.cpp Lines 92 to 98 in 3d42285
This comment was generated by todo based on a
|
Could we have unit tests for some of these things? Cirque is end-to-end and debugging failures at that level is hard. |
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.
Are there tests that run in CI that exercise this?
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.
Thanks for the change! We have updated our PR template, requesting changes to conform to the new PR template:
#### Problem
What is being fixed? Examples:
* Fix crash on startup
* Fixes #12345 Frobnozzle is leaky (exactly like that, so GitHub will auto-close the issue).
#### Change overview
What's in this PR
#### Testing
How was this tested? (at least one bullet point required)
* If unit tests were added, how do they cover this issue?
* If unit tests existed, how were they fixed/modified to prevent this in future?
* If new unit tests are not added, why not?
* If integration tests were added, how do they verify this change?
* If new integration tests are not added, why not?
* If manually tested, what platforms controller and device platforms were manually tested, and how?
* If no testing is required, why not?
9bff0d4
to
d9dfb44
Compare
The current code may return wrong success or unexpected error code when one cluster is not enabled on endpoint, this commit added a function thay will query cluster from ember cluster catalog, the function will be replaced by cluster catalog.
0ba84d4
to
b57a176
Compare
b57a176
to
60e1022
Compare
@andy31415 @bzbarsky-apple Test added, PTAL |
Need to find a way to get the response instead of only check if a function on key path is called.connectedhomeip/src/app/tests/TestCommandInteraction.cpp Lines 328 to 338 in b980d16
This comment was generated by todo based on a
|
b980d16
to
20cf005
Compare
7506073
to
685f6e7
Compare
(Spec#3258): The endpoint id in response command is not clear, so we cannot do "ClientClusterCommandExists" check.connectedhomeip/src/app/CommandSender.cpp Lines 164 to 167 in 685f6e7
This comment was generated by todo based on a
|
The endpoint id on response command (client side command) is unclear, so we don't have a ClientClusterCommandExistsconnectedhomeip/src/app/InteractionModelEngine.h Lines 172 to 180 in 685f6e7
This comment was generated by todo based on a
|
The error code should be updated after #7072 added error codes required by IM.connectedhomeip/src/app/CommandHandler.cpp Lines 118 to 128 in 7e4bc2c
This comment was generated by todo based on a
|
(Spec#3258): The endpoint id in response command is not clear, so we cannot do "ClientClusterCommandExists" check.connectedhomeip/src/app/CommandSender.cpp Lines 166 to 169 in 7e4bc2c
This comment was generated by todo based on a
|
The endpoint id on response command (client side command) is unclear, so we don't have a ClientClusterCommandExistsconnectedhomeip/src/app/InteractionModelEngine.h Lines 172 to 181 in 7e4bc2c
This comment was generated by todo based on a
|
@woody-apple The PR description is updated. |
Size increase report for "esp32-example-build" from 21354c3
Full report output
|
Size increase report for "gn_qpg6100-example-build" from 21354c3
Full report output
|
Size increase report for "nrfconnect-example-build" from 21354c3
Full report output
|
@woody-apple summary format changed to match template |
There are tests in the PR now.
* [im] Return error when some cluster is not enabled on endpoint The current code may return wrong success or unexpected error code when one cluster is not enabled on endpoint, this commit added a function thay will query cluster from ember cluster catalog, the function will be replaced by cluster catalog. * Add tests * Add UT * Address comments * Address comments * Address comments * Update comments * Fix test
The current code may return wrong success or unexpected error code when
one cluster is not enabled on endpoint, this commit added a function
thay will query cluster from ember cluster catalog, the function will be
updated by future im command code (see comment in code).
Problem
Changes
Tests
OnOff cluster is not enabled on endpoint 0
It will report error when cluster is not found on device.
Tests: Cirque test and local device controller run against all cluster app in two raspberry pi