Clean some follow-up issues#43103
Conversation
There was a problem hiding this comment.
Code Review
This pull request contains some follow-up cleanups. The removal of unnecessary comments in the test file and the added check in QNameString::EndsWith are good improvements.
However, I have concerns about the removal of the CHIP_DEVICE_CONFIG_ENABLE_THREAD_MESHCOP guards. The function declaration in ThreadRendezvousAnnouncement.h is now unguarded, while its definition in ThreadRendezvousAnnouncement.cpp remains guarded. This inconsistency can lead to linker errors if the feature is disabled. I've left comments suggesting to restore these guards for safety. If this feature is now mandatory, then the guards should be removed from both the header and the implementation file.
I am having trouble creating individual review comments. Click here to see my feedback.
src/app/server/ThreadRendezvousAnnouncement.cpp (26-30)
This guard around the includes seems useful and should probably be kept. These headers are only used by BuildThreadRendezvousAnnouncement, which is conditionally compiled based on CHIP_DEVICE_CONFIG_ENABLE_THREAD_MESHCOP. Keeping the guard avoids including unused headers when this feature is disabled.
|
PR #43103: Size comparison from 485755f to 73d02c2 Full report (11 builds for cc13x4_26x4, cc32xx, qpg, realtek, stm32)
|
12275fd to
e48df20
Compare
|
PR #43103: Size comparison from 485755f to e48df20 Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
There was a problem hiding this comment.
Pull request overview
Follow-up cleanup for the Thread MeshCoP commissioning work (#42992), including build-guarding Thread-specific sources/tests and tightening QNameString::EndsWith() behavior when the string representation was truncated.
Changes:
- Make
QNameString::EndsWith()returnfalsewhen the underlying string builder did not fully fit. - Remove/comment/guard cleanup for Thread rendezvous announcement code and its unit test.
- Gate Thread rendezvous announcement sources (server + tests) behind
chip_device_config_enable_thread_meshcopin GN.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/dnssd/minimal_mdns/core/QNameString.h | Adds a Fit() check before suffix comparison. |
| src/app/server/tests/TestThreadRendezvousAnnouncement.cpp | Removes an “expected entries” comment block in the TXT builder test. |
| src/app/server/tests/BUILD.gn | Attempts to conditionally include the Thread rendezvous unit test. |
| src/app/server/ThreadRendezvousAnnouncement.h | Removes #if CHIP_DEVICE_CONFIG_ENABLE_THREAD_MESHCOP header guard around declarations. |
| src/app/server/ThreadRendezvousAnnouncement.cpp | Makes minimal_mdns includes unconditional (file now built conditionally via GN). |
| src/app/server/BUILD.gn | Moves Thread rendezvous announcement sources/deps under chip_device_config_enable_thread_meshcop. |
e48df20 to
284fb84
Compare
|
PR #43103: Size comparison from 385acf5 to 284fb84 Full report (3 builds for cc32xx, stm32)
|
284fb84 to
970b9be
Compare
|
PR #43103: Size comparison from 385acf5 to 970b9be Full report (34 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, telink)
|
970b9be to
2da1b73
Compare
|
PR #43103: Size comparison from 385acf5 to 2da1b73 Full report (12 builds for cc13x4_26x4, cc32xx, nrfconnect, qpg, realtek, stm32)
|
2da1b73 to
f6eaf76
Compare
f6eaf76 to
32fa514
Compare
|
PR #43103: Size comparison from 385acf5 to 32fa514 Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
32fa514 to
fe038ac
Compare
|
PR #43103: Size comparison from 977df9d to fe038ac Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
|
Thank you for the followup! |
Summary
This commit is a follow-up of #42992 fixing remaining issues:
src/app/server/tests/TestThreadRendezvousAnnouncement.cppRelated issues
#42992
Testing
No new test added. This commit fixes style issues and strengthen the check of
QNameString::EndsWith()