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

[matter_yamltests] Generate an error if a cluster definition exists b… #25109

Conversation

vivien-apple
Copy link
Contributor

…ut the attribute/event/command can not be found

Problem

When a definition for a given cluster exists but the attribute/command/event does not exists it will be caught at runtime by the adapter.
This PR changes that such that it is caught at parsing time.

@pullapprove pullapprove bot requested a review from yunhanw-google February 16, 2023 11:19
@pullapprove pullapprove bot added the scripts label Feb 16, 2023
@vivien-apple vivien-apple force-pushed the YamlTests_ErrorsForUnknownAttributeCommandEvent branch from 8e763f8 to 18608d4 Compare February 16, 2023 11:27
@github-actions
Copy link

PR #25109: Size comparison from 770e39c to 18608d4

Full report (1 build for cc32xx)
platform target config section 770e39c 18608d4 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 641857 641857 0 0.0
(read/write) 204124 204124 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197528 197528 0 0.0
.comment 194 194 0 0.0
.data 1476 1476 0 0.0
.debug_abbrev 931515 931515 0 0.0
.debug_aranges 87432 87432 0 0.0
.debug_frame 300120 300120 0 0.0
.debug_info 20338086 20338086 0 0.0
.debug_line 2657824 2657824 0 0.0
.debug_loc 2790649 2790649 0 0.0
.debug_ranges 281568 281568 0 0.0
.debug_str 3003658 3003658 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105697 105697 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 376514 376514 0 0.0
.symtab 256016 256016 0 0.0
.text 534036 534036 0 0.0

@vivien-apple vivien-apple force-pushed the YamlTests_ErrorsForUnknownAttributeCommandEvent branch from 18608d4 to 4f9c49f Compare February 16, 2023 12:12
@github-actions
Copy link

PR #25109: Size comparison from 770e39c to 4f9c49f

Full report (1 build for cc32xx)
platform target config section 770e39c 4f9c49f change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 641857 641857 0 0.0
(read/write) 204124 204124 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197528 197528 0 0.0
.comment 194 194 0 0.0
.data 1476 1476 0 0.0
.debug_abbrev 931515 931515 0 0.0
.debug_aranges 87432 87432 0 0.0
.debug_frame 300120 300120 0 0.0
.debug_info 20338086 20338086 0 0.0
.debug_line 2657824 2657824 0 0.0
.debug_loc 2790649 2790649 0 0.0
.debug_ranges 281568 281568 0 0.0
.debug_str 3003658 3003658 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105697 105697 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 376514 376514 0 0.0
.symtab 256016 256016 0 0.0
.text 534036 534036 0 0.0

…but the attribute/event/command can not be found
@vivien-apple vivien-apple force-pushed the YamlTests_ErrorsForUnknownAttributeCommandEvent branch from 4f9c49f to 6b05753 Compare February 16, 2023 17:28
Copy link
Contributor

@andy31415 andy31415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving: my comment can be done as a followup.

@vivien-apple
Copy link
Contributor Author

Approving: my comment can be done as a followup.

Thanks. I have added it to my todo list.

@vivien-apple vivien-apple merged commit 99821fa into project-chip:master Feb 17, 2023
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 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