Skip to content

Conversation

@ksperling-apple
Copy link
Contributor

Summary

It was only used in a single place and probably didn't belong in the device layer in the first place. Use a Span instead for DeviceInforProvider::SetUserLabelList.

Also simplify DeviceInforProvider::ClearUserLabelList().

Testing

Code is covered by existing tests.

@github-actions
Copy link

github-actions bot commented Oct 21, 2025

PR #41546: Size comparison from c1f377d to 3665129

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section c1f377d 3665129 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106918 1106794 -124 -0.0
RAM 178882 178882 0 0.0
bl702 lighting-app bl702+eth FLASH 661238 661114 -124 -0.0
RAM 134969 134969 0 0.0
bl702+wifi FLASH 837350 837226 -124 -0.0
RAM 124421 124421 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070318 1070194 -124 -0.0
RAM 117261 117261 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899416 899292 -124 -0.0
RAM 105540 105540 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983336 983212 -124 -0.0
RAM 109748 109748 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770804 770716 -88 -0.0
RAM 103312 103312 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 782560 782480 -80 -0.0
RAM 108472 108472 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728372 728372 0 0.0
RAM 97380 97380 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 712840 712840 0 0.0
RAM 97580 97580 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554514 554514 0 0.0
RAM 205752 205752 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587754 587666 -88 -0.0
RAM 205840 205840 0 0.0
efr32 lock-app BRD4187C FLASH 963328 963232 -96 -0.0
RAM 126332 126332 0 0.0
BRD4338a FLASH 757032 756944 -88 -0.0
RAM 256960 256960 0 0.0
window-app BRD4187C FLASH 1058772 1058708 -64 -0.0
RAM 122560 122560 0 0.0
esp32 all-clusters-app c3devkit DRAM 103440 103440 0 0.0
FLASH 1796188 1796060 -128 -0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 933232 933148 -84 -0.0
RAM 161317 161317 0 0.0
nxp contact mcxw71+release FLASH 692208 692208 0 0.0
RAM 61496 61496 0 0.0
lighting mcxw71+release FLASH 723720 723720 0 0.0
RAM 68156 68156 0 0.0
lock mcxw71+release FLASH 773976 773976 0 0.0
RAM 61940 61940 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1676940 1676860 -80 -0.0
RAM 213908 213908 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1593556 1593492 -64 -0.0
RAM 211116 211116 0 0.0
light cy8ckit_062s2_43012 FLASH 1460100 1460020 -80 -0.0
RAM 197728 197728 0 0.0
lock cy8ckit_062s2_43012 FLASH 1492652 1492572 -80 -0.0
RAM 225448 225448 0 0.0
qpg lighting-app qpg6200+debug FLASH 837272 837192 -80 -0.0
RAM 127716 127716 0 0.0
lock-app qpg6200+debug FLASH 774052 773956 -96 -0.0
RAM 118692 118692 0 0.0
realtek light-switch-app rtl8777g FLASH 706760 706688 -72 -0.0
RAM 106912 106912 0 0.0
lighting-app rtl8777g FLASH 757856 757784 -72 -0.0
RAM 127236 127236 0 0.0
stm32 light STM32WB5MM-DK FLASH 470252 470164 -88 -0.0
RAM 141320 141320 0 0.0
telink bridge-app tl7218x FLASH 710662 710528 -134 -0.0
RAM 90552 90552 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 797040 796906 -134 -0.0
RAM 41008 41008 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788240 788106 -134 -0.0
RAM 93652 93652 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 715126 714992 -134 -0.0
RAM 51852 51852 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748430 748296 -134 -0.0
RAM 70900 70900 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 725278 725144 -134 -0.0
RAM 34600 34600 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602556 602422 -134 -0.0
RAM 108700 108700 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820860 820730 -130 -0.0
RAM 92048 92048 0 0.0

@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.03%. Comparing base (c1f377d) to head (3665129).

Files with missing lines Patch % Lines
.../clusters/user-label-server/user-label-cluster.cpp 42.85% 4 Missing ⚠️
src/platform/DeviceInfoProvider.cpp 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #41546      +/-   ##
==========================================
- Coverage   51.04%   51.03%   -0.02%     
==========================================
  Files        1386     1385       -1     
  Lines      100958   100920      -38     
  Branches    13061    13057       -4     
==========================================
- Hits        51534    51501      -33     
+ Misses      49424    49419       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

It was only used in a single place and probably didn't belong in the device layer
in the first place.  Use a Span instead for DeviceInforProvider::SetUserLabelList.

Also simplify DeviceInforProvider::ClearUserLabelList().
@github-actions
Copy link

github-actions bot commented Oct 24, 2025

PR #41546: Size comparison from c17e5ba to f8b6393

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section c17e5ba f8b6393 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1106622 1106498 -124 -0.0
RAM 178874 178874 0 0.0
bl702 lighting-app bl702+eth FLASH 661198 661074 -124 -0.0
RAM 134969 134969 0 0.0
bl702+wifi FLASH 837310 837186 -124 -0.0
RAM 124405 124405 0 0.0
bl706+mfd+rpc+littlefs FLASH 1070278 1070154 -124 -0.0
RAM 117261 117261 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899730 899606 -124 -0.0
RAM 105524 105524 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 983040 982916 -124 -0.0
RAM 109740 109740 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 770652 770564 -88 -0.0
RAM 103304 103304 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 782384 782304 -80 -0.0
RAM 108472 108472 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 728212 728212 0 0.0
RAM 97364 97364 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 712672 712672 0 0.0
RAM 97580 97580 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554226 554226 0 0.0
RAM 205736 205736 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587474 587386 -88 -0.0
RAM 205832 205832 0 0.0
efr32 lock-app BRD4187C FLASH 963160 963096 -64 -0.0
RAM 126328 126328 0 0.0
BRD4338a FLASH 756744 756680 -64 -0.0
RAM 256952 256952 0 0.0
window-app BRD4187C FLASH 1058492 1058420 -72 -0.0
RAM 122556 122556 0 0.0
esp32 all-clusters-app c3devkit DRAM 102516 102516 0 0.0
FLASH 1827430 1827296 -134 -0.0
IRAM 93540 93540 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 933076 932992 -84 -0.0
RAM 161313 161313 0 0.0
nxp contact mcxw71+release FLASH 691904 691904 0 0.0
RAM 61496 61496 0 0.0
lighting mcxw71+release FLASH 723408 723408 0 0.0
RAM 68140 68140 0 0.0
lock mcxw71+release FLASH 773672 773672 0 0.0
RAM 61932 61932 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1676564 1676484 -80 -0.0
RAM 213900 213900 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1593180 1593116 -64 -0.0
RAM 211108 211108 0 0.0
light cy8ckit_062s2_43012 FLASH 1459724 1459644 -80 -0.0
RAM 197728 197728 0 0.0
lock cy8ckit_062s2_43012 FLASH 1492276 1492196 -80 -0.0
RAM 225440 225440 0 0.0
qpg lighting-app qpg6200+debug FLASH 837104 837024 -80 -0.0
RAM 127708 127708 0 0.0
lock-app qpg6200+debug FLASH 773884 773804 -80 -0.0
RAM 118684 118684 0 0.0
realtek light-switch-app rtl8777g FLASH 706624 706552 -72 -0.0
RAM 106904 106904 0 0.0
lighting-app rtl8777g FLASH 757712 757640 -72 -0.0
RAM 127236 127236 0 0.0
stm32 light STM32WB5MM-DK FLASH 470092 470004 -88 -0.0
RAM 141304 141304 0 0.0
telink bridge-app tl7218x FLASH 710570 710436 -134 -0.0
RAM 90544 90544 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 796924 796790 -134 -0.0
RAM 41000 41000 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 788124 787990 -134 -0.0
RAM 93644 93644 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 715002 714868 -134 -0.0
RAM 51844 51844 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748298 748164 -134 -0.0
RAM 70892 70892 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 725154 725020 -134 -0.0
RAM 34592 34592 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602398 602264 -134 -0.0
RAM 108904 108904 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 820728 820598 -130 -0.0
RAM 92040 92040 0 0.0

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.

1 participant