ZoneMgmtCluster Migration PR#3 move structs#43590
ZoneMgmtCluster Migration PR#3 move structs#43590marybadalyan wants to merge 10 commits intoproject-chip:masterfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request primarily involves refactoring by moving code and renaming components to prepare for a code-driven implementation of the Zone Management cluster. The changes are generally well-structured, but I've identified a circular dependency issue in the new header files that should be addressed. Additionally, there's a minor typo in a comment.
src/app/clusters/zone-management-server/zone-management-server.h
Outdated
Show resolved
Hide resolved
|
PR #43590: Size comparison from 0d30044 to 8671a3d Full report (10 builds for cc13x4_26x4, cc32xx, nrfconnect, realtek, stm32)
|
|
/gemini review |
|
PR #43590: Size comparison from 0d30044 to cd558eb Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
There was a problem hiding this comment.
Code Review
This pull request primarily refactors the Zone Management cluster by moving several structs and the delegate into separate header files, and relocating the ZoneMgmtServer class. These changes are a good step towards improving modularity. However, there is a critical inconsistency in the renaming of the delegate class. It has been renamed to ZoneMgmtDelegate in one file but remains Delegate in its new header and in the ZoneMgmtServer declaration. This will cause compilation failures and needs to be corrected.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43590 +/- ##
=======================================
Coverage 54.12% 54.12%
=======================================
Files 1550 1550
Lines 106947 106947
Branches 13312 13312
=======================================
Hits 57888 57888
Misses 49059 49059 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| using ZoneTriggerControlStruct = Structs::ZoneTriggerControlStruct::Type; | ||
| using ZoneInformationStruct = Structs::ZoneInformationStruct::Type; | ||
|
|
||
| ZoneMgmtServer::ZoneMgmtServer(ZoneMgmtDelegate & aDelegate, EndpointId aEndpointId, const BitFlags<Feature> aFeatures, |
There was a problem hiding this comment.
Arm64 compile fails:
INFO ../../examples/camera-app/linux/third_party/connectedhomeip/src/app/clusters/zone-management-server/ZoneManagementCluster.cpp:47:32: error: unknown type name 'ZoneMgmtDelegate'
INFO 47 | ZoneMgmtServer::ZoneMgmtServer(ZoneMgmtDelegate & aDelegate, EndpointId aEndpointId, const BitFlags<Feature> aFeatures,
INFO
Make sure locally you try to compile camera app (or see if any other app includes this cluster).
|
PR #43590: Size comparison from 708056c to 9baa205 Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Summary
Changes made:
This PR only does code movements and name changes in the codebase to make cluster migration more explicit .
TwoDCartesianZoneStoragestruct to it's headerZoneInformationStoragestruct to it's headerDelegateto it's own structZoneMgmtServertoCodegenIntegration.hfor later easier diffs in the code drive cluster implementation PRZoneMgmtCluster Migration PR#2 Code-Driven Implementation #43423.
Related issues
Fixes: #43194
Testing
No changes