-
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
Deprecating chip_server_cluster_attributes and if_basic_global_response #25693
Merged
andy31415
merged 14 commits into
project-chip:master
from
brdandu:bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
Mar 23, 2023
Merged
Deprecating chip_server_cluster_attributes and if_basic_global_response #25693
andy31415
merged 14 commits into
project-chip:master
from
brdandu:bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
Mar 23, 2023
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
PR #25693: Size comparison from a9e759b to 8ef2aab Full report (1 build for cc32xx)
|
brdandu
force-pushed
the
bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
branch
2 times, most recently
from
March 20, 2023 13:36
f082aef
to
2750c97
Compare
PR #25693: Size comparison from 804892e to 2750c97 Increases (1 build for cc32xx)
Full report (2 builds for cc32xx, mbed)
|
brdandu
force-pushed
the
bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
branch
from
March 20, 2023 15:44
2750c97
to
98c343b
Compare
PR #25693: Size comparison from 974f620 to 98c343b Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
PR #25693: Size comparison from 974f620 to 1a547ed Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
brdandu
force-pushed
the
bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
branch
from
March 20, 2023 19:55
1a547ed
to
d83ae8a
Compare
PR #25693: Size comparison from 8425d28 to d83ae8a Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
brdandu
force-pushed
the
bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
branch
2 times, most recently
from
March 21, 2023 14:48
4551074
to
482683a
Compare
pullapprove
bot
requested review from
amitnj,
anush-apple,
arkq,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
cliffamzn,
CodeChronos928 and
Damian-Nordic
March 21, 2023 14:54
brdandu
force-pushed
the
bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
branch
from
March 22, 2023 16:55
d6fbd0a
to
c720262
Compare
…a stateless helper zcl_attributes_server such that we can get deprecate the stateful helpers one by one. Also deprecating if_basic_global_response with if_basic_attribute. The generation diff that is being seen here pertains to generating all server attributes for the corresponding client clusters instead of hacking the server attributes in the zap file. The hack here referes to how server attributes being generated are those attributes which have been enabled without the corresponding server cluster enabled. To avoid this hack, the code now generates all server attributes for the corresponding client cluster. This seems to be in sync with the non java/python templates in terms of generation. Another generation diff seen here is that there is no basic global response for certain attributes which refer to atomic types such as group_id and vendor_id. I am not sure why that is the case. These attributes seem basic enough. Updating the zap being used - Updating min zap version to 3.16 instead of 3.17 - Github: ZAP#898
brdandu
force-pushed
the
bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898
branch
from
March 22, 2023 17:02
c720262
to
8f5ec21
Compare
PR #25693: Size comparison from 6be032d to 8f5ec21 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
Github: ZAP#898
…istake during rebase Github: ZAP#898
Github: ZAP#898
andy31415
reviewed
Mar 22, 2023
src/controller/java/zap-generated/chip/devicecontroller/ClusterInfoMapping.java
Show resolved
Hide resolved
andy31415
reviewed
Mar 22, 2023
src/controller/java/zap-generated/chip/devicecontroller/ClusterReadMapping.java
Show resolved
Hide resolved
…ead of an exception like it used to be in the past. Updating the min zap version Github: ZAP#898
andy31415
approved these changes
Mar 23, 2023
…treat things differently anymore
…tesJavaPythonTemplates/ZAP#898
PR #25693: Size comparison from bf14eb2 to cdbb033 Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
bzbarsky-apple
approved these changes
Mar 23, 2023
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.
Replacing a state helper such as chip_server_cluster_attributes with a stateless helper zcl_attributes_server such that we can get deprecate the stateful helpers one by one. Also deprecating if_basic_global_response with if_basic_attribute.
The generation diff that is being seen here pertains to generating all server attributes for the corresponding client clusters instead of hacking the server attributes in the zap file. The hack here referes to how server attributes being generated are those attributes which have been enabled without the corresponding server cluster enabled. To avoid this hack, the code now generates all server attributes for the corresponding client cluster. This seems to be in sync with the non java/python templates in terms of generation. Another generation diff seen here is that there is no basic global response for certain attributes which refer to atomic types such as group_id and vendor_id. I am not sure why that is the case. These attributes seem basic enough. Github: ZAP#898
Some more context can be found at https://csamembers.slack.com/archives/C01B01GH64E/p1678122784057439