Skip to content
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

Conversation

brdandu
Copy link
Contributor

@brdandu brdandu commented Mar 15, 2023

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

@github-actions
Copy link

PR #25693: Size comparison from a9e759b to 8ef2aab

Full report (1 build for cc32xx)
platform target config section a9e759b 8ef2aab change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645489 645489 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930293 930293 0 0.0
.debug_aranges 87384 87384 0 0.0
.debug_frame 300248 300248 0 0.0
.debug_info 20245969 20245969 0 0.0
.debug_line 2660979 2660979 0 0.0
.debug_loc 2804911 2804911 0 0.0
.debug_ranges 283168 283168 0 0.0
.debug_str 3026947 3026947 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106009 106009 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380271 380271 0 0.0
.symtab 257312 257312 0 0.0
.text 537360 537360 0 0.0

@brdandu brdandu force-pushed the bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898 branch 2 times, most recently from f082aef to 2750c97 Compare March 20, 2023 13:36
@github-actions
Copy link

PR #25693: Size comparison from 804892e to 2750c97

Increases (1 build for cc32xx)
platform target config section 804892e 2750c97 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20248010 20248011 1 0.0
Full report (2 builds for cc32xx, mbed)
platform target config section 804892e 2750c97 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645601 645601 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930289 930289 0 0.0
.debug_aranges 87400 87400 0 0.0
.debug_frame 300316 300316 0 0.0
.debug_info 20248010 20248011 1 0.0
.debug_line 2661469 2661469 0 0.0
.debug_loc 2805592 2805592 0 0.0
.debug_ranges 283208 283208 0 0.0
.debug_str 3027174 3027174 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105993 105993 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380421 380421 0 0.0
.symtab 257408 257408 0 0.0
.text 537488 537488 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2468424 2468424 0 0.0
.bss 215964 215964 0 0.0
.data 5880 5880 0 0.0
.text 1431068 1431068 0 0.0

@brdandu brdandu force-pushed the bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898 branch from 2750c97 to 98c343b Compare March 20, 2023 15:44
@github-actions
Copy link

PR #25693: Size comparison from 974f620 to 98c343b

Increases (1 build for cc32xx)
platform target config section 974f620 98c343b change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20248009 20248010 1 0.0
Full report (1 build for cc32xx)
platform target config section 974f620 98c343b change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645601 645601 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930289 930289 0 0.0
.debug_aranges 87400 87400 0 0.0
.debug_frame 300316 300316 0 0.0
.debug_info 20248009 20248010 1 0.0
.debug_line 2661469 2661469 0 0.0
.debug_loc 2805592 2805592 0 0.0
.debug_ranges 283208 283208 0 0.0
.debug_str 3027174 3027174 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105993 105993 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380421 380421 0 0.0
.symtab 257408 257408 0 0.0
.text 537488 537488 0 0.0

@brdandu brdandu marked this pull request as ready for review March 20, 2023 18:04
@github-actions
Copy link

PR #25693: Size comparison from 974f620 to 1a547ed

Increases (1 build for cc32xx)
platform target config section 974f620 1a547ed change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20248009 20248010 1 0.0
Full report (1 build for cc32xx)
platform target config section 974f620 1a547ed change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645601 645601 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930289 930289 0 0.0
.debug_aranges 87400 87400 0 0.0
.debug_frame 300316 300316 0 0.0
.debug_info 20248009 20248010 1 0.0
.debug_line 2661469 2661469 0 0.0
.debug_loc 2805592 2805592 0 0.0
.debug_ranges 283208 283208 0 0.0
.debug_str 3027174 3027174 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105993 105993 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380421 380421 0 0.0
.symtab 257408 257408 0 0.0
.text 537488 537488 0 0.0

@brdandu brdandu force-pushed the bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898 branch from 1a547ed to d83ae8a Compare March 20, 2023 19:55
@github-actions
Copy link

PR #25693: Size comparison from 8425d28 to d83ae8a

Decreases (1 build for cc32xx)
platform target config section 8425d28 d83ae8a change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20248011 20248010 -1 -0.0
Full report (1 build for cc32xx)
platform target config section 8425d28 d83ae8a change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645601 645601 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930289 930289 0 0.0
.debug_aranges 87400 87400 0 0.0
.debug_frame 300316 300316 0 0.0
.debug_info 20248011 20248010 -1 -0.0
.debug_line 2661469 2661469 0 0.0
.debug_loc 2805592 2805592 0 0.0
.debug_ranges 283208 283208 0 0.0
.debug_str 3027174 3027174 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105993 105993 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380421 380421 0 0.0
.symtab 257408 257408 0 0.0
.text 537488 537488 0 0.0

@brdandu brdandu force-pushed the bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898 branch 2 times, most recently from 4551074 to 482683a Compare March 21, 2023 14:48
@brdandu brdandu force-pushed the bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898 branch from d6fbd0a to c720262 Compare March 22, 2023 16:55
…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 brdandu force-pushed the bug/fixServerSideEnabledClustersAndAttributesJavaPythonTemplates/ZAP#898 branch from c720262 to 8f5ec21 Compare March 22, 2023 17:02
@github-actions
Copy link

PR #25693: Size comparison from 6be032d to 8f5ec21

Increases (1 build for cc32xx)
platform target config section 6be032d 8f5ec21 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20251230 20251231 1 0.0
Full report (1 build for cc32xx)
platform target config section 6be032d 8f5ec21 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645825 645825 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930286 930286 0 0.0
.debug_aranges 87400 87400 0 0.0
.debug_frame 300336 300336 0 0.0
.debug_info 20251230 20251231 1 0.0
.debug_line 2661959 2661959 0 0.0
.debug_loc 2806733 2806733 0 0.0
.debug_ranges 283424 283424 0 0.0
.debug_str 3027534 3027534 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105993 105993 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380469 380469 0 0.0
.symtab 257408 257408 0 0.0
.text 537712 537712 0 0.0

brdandu and others added 3 commits March 23, 2023 09:17
…ead of an exception like it used to be in the past.

Updating the min zap version
Github: ZAP#898
@github-actions
Copy link

PR #25693: Size comparison from bf14eb2 to cdbb033

Decreases (1 build for cc32xx)
platform target config section bf14eb2 cdbb033 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20239635 20239634 -1 -0.0
Full report (1 build for cc32xx)
platform target config section bf14eb2 cdbb033 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645825 645825 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 930286 930286 0 0.0
.debug_aranges 87400 87400 0 0.0
.debug_frame 300336 300336 0 0.0
.debug_info 20239635 20239634 -1 -0.0
.debug_line 2661958 2661958 0 0.0
.debug_loc 2806731 2806731 0 0.0
.debug_ranges 283424 283424 0 0.0
.debug_str 3027815 3027815 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105993 105993 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380469 380469 0 0.0
.symtab 257408 257408 0 0.0
.text 537712 537712 0 0.0

@andy31415 andy31415 merged commit 47c3fe9 into project-chip:master Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants