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

Refactor kReadCommissioningInfo step in DeviceCommissioner #36603

Merged

Conversation

ksperling-apple
Copy link
Contributor

@ksperling-apple ksperling-apple commented Nov 22, 2024

This PR refactors the kReadCommissioningInfo DeviceCommissioner step in preparation for adding the ability to read additional data. Having a fixed split of the attributes to be read into two steps in inflexible and makes it hard to optimize the reads that are performed.

Specifically this change

  • Rolls kReadCommissioningInfo2 stage into kReadCommissioningInfo and tracks progress internally instead
  • Groups attributes being read and parsing methods by cluster (where this wasn't already done)
  • Makes the parsing code more consistent and simplifies some logic.

If desired this PR can be reviewed commit by commit; builds and tests were green after each commit.

Copy link

semanticdiff-com bot commented Nov 22, 2024

Review changes with  SemanticDiff

Changed Files
File Status
  src/python_testing/TC_CGEN_2_4.py  88% smaller
  src/controller/python/test/test_scripts/commissioning_failure_test.py  64% smaller
  src/controller/AutoCommissioner.cpp Unsupported file format
  src/controller/CHIPDeviceController.cpp Unsupported file format
  src/controller/CHIPDeviceController.h Unsupported file format
  src/controller/CommissioningDelegate.cpp Unsupported file format
  src/controller/CommissioningDelegate.h Unsupported file format
  src/controller/python/OpCredsBinding.cpp Unsupported file format
  src/darwin/Framework/CHIPTests/MTRPairingTests.m Unsupported file format
  src/darwin/Framework/CHIPTests/TestHelpers/MTRTestCase+ServerAppRunner.m Unsupported file format

Copy link

github-actions bot commented Nov 22, 2024

PR #36603: Size comparison from 04e6a68 to d16d2bb

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 04e6a68 d16d2bb change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350314 1350314 0 0.0
RAM 104088 104088 0 0.0
bl702 lighting-app bl702+eth FLASH 649926 649926 0 0.0
RAM 25329 25329 0 0.0
bl702+wifi FLASH 827254 827254 0 0.0
RAM 14069 14069 0 0.0
bl706+mfd+rpc+littlefs FLASH 1055448 1055448 0 0.0
RAM 23917 23917 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 977078 977078 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838240 838240 0 0.0
RAM 123640 123640 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824180 824180 0 0.0
RAM 125520 125520 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770888 770888 0 0.0
RAM 113988 113988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755092 755092 0 0.0
RAM 114204 114204 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629294 629294 0 0.0
RAM 205792 205792 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667874 667874 0 0.0
RAM 205936 205936 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 679857 679857 0 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699709 699709 0 0.0
RAM 81332 81332 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699709 699709 0 0.0
RAM 81332 81332 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656637 656637 0 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616721 616721 0 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636357 636357 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636357 636357 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636185 636185 0 0.0
RAM 74700 74700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655901 655901 0 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655901 655901 0 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612677 612677 0 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632529 632529 0 0.0
RAM 71420 71420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632529 632529 0 0.0
RAM 71420 71420 0 0.0
efr32 lock-app BRD4187C FLASH 927948 927948 0 0.0
RAM 160168 160168 0 0.0
BRD4338a FLASH 744312 744304 -8 -0.0
RAM 233296 233296 0 0.0
window-app BRD4187C FLASH 1019432 1019424 -8 -0.0
RAM 128268 128268 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1541622 1541622 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1548702 1548702 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4712 4712 0 0.0
FLASH 2706461 2706461 0 0.0
RAM 129704 129704 0 0.0
all-clusters-app debug unknown 5552 5552 0 0.0
FLASH 5997562 5997562 0 0.0
RAM 523432 523432 0 0.0
all-clusters-minimal-app debug unknown 5448 5448 0 0.0
FLASH 5335816 5335816 0 0.0
RAM 242488 242488 0 0.0
bridge-app debug unknown 5432 5432 0 0.0
FLASH 4675534 4675534 0 0.0
RAM 218432 218432 0 0.0
chip-tool debug unknown 5984 5984 0 0.0
FLASH 12834328 12834234 -94 -0.0
RAM 582194 582194 0 0.0
chip-tool-ipv6only arm64 unknown 21304 21304 0 0.0
FLASH 10969504 10969568 64 0.0
RAM 633144 633144 0 0.0
fabric-admin debug unknown 5808 5808 0 0.0
FLASH 11243271 11243209 -62 -0.0
RAM 582578 582578 0 0.0
fabric-bridge-app debug unknown 4688 4688 0 0.0
FLASH 4499792 4499792 0 0.0
RAM 205424 205424 0 0.0
fabric-sync debug unknown 4896 4896 0 0.0
FLASH 5596357 5596261 -96 -0.0
RAM 472424 472424 0 0.0
lighting-app debug+rpc+ui unknown 6096 6096 0 0.0
FLASH 5611473 5611473 0 0.0
RAM 228616 228616 0 0.0
lock-app debug unknown 5368 5368 0 0.0
FLASH 4724890 4724890 0 0.0
RAM 204632 204632 0 0.0
ota-provider-app debug unknown 4744 4744 0 0.0
FLASH 4350396 4350396 0 0.0
RAM 198304 198304 0 0.0
ota-requestor-app debug unknown 4680 4680 0 0.0
FLASH 4488830 4488830 0 0.0
RAM 202888 202888 0 0.0
shell debug unknown 4240 4240 0 0.0
FLASH 3020749 3020749 0 0.0
RAM 160336 160336 0 0.0
thermostat-no-ble arm64 unknown 9512 9512 0 0.0
FLASH 4096272 4096272 0 0.0
RAM 243008 243008 0 0.0
tv-app debug unknown 5664 5664 0 0.0
FLASH 5948085 5947989 -96 -0.0
RAM 595920 595920 0 0.0
tv-casting-app debug unknown 5232 5232 0 0.0
FLASH 11040269 11040269 0 0.0
RAM 691960 691960 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916244 916244 0 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888432 888432 0 0.0
RAM 141479 141479 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 850444 850444 0 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 584344 584344 0 0.0
RAM 71056 71056 0 0.0
mcxw71+release FLASH 598872 598872 0 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 611284 611284 0 0.0
RAM 70448 70448 0 0.0
k32w1+release FLASH 685384 685384 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 748896 748896 0 0.0
RAM 67308 67308 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644236 1644236 0 0.0
RAM 212072 212072 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552212 1552212 0 0.0
RAM 208872 208872 0 0.0
light cy8ckit_062s2_43012 FLASH 1467252 1467252 0 0.0
RAM 200856 200856 0 0.0
lock cy8ckit_062s2_43012 FLASH 1465428 1465428 0 0.0
RAM 225216 225216 0 0.0
qpg lighting-app qpg6105+debug FLASH 662520 662520 0 0.0
RAM 105384 105384 0 0.0
lock-app qpg6105+debug FLASH 620628 620628 0 0.0
RAM 99844 99844 0 0.0
stm32 light STM32WB5MM-DK FLASH 483332 483332 0 0.0
RAM 144848 144848 0 0.0
telink bridge-app tlsr9258a FLASH 681594 681594 0 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622030 622030 0 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 762886 762886 0 0.0
RAM 50208 50208 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709164 709164 0 0.0
RAM 73460 73460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625872 625872 0 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811780 811780 0 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4972 4972 0 0.0
FLASH 1726800 1726800 0 0.0
RAM 90652 90652 0 0.0
chip-tool-ubsan arm unknown 10780 10780 0 0.0
FLASH 17946894 17946902 8 0.0
RAM 7830432 7830768 336 0.0

@ksperling-apple ksperling-apple force-pushed the commissioner-read-topology branch from d16d2bb to 477feba Compare November 25, 2024 03:28
@ksperling-apple ksperling-apple force-pushed the commissioner-read-topology branch from 477feba to acd3d58 Compare November 25, 2024 03:36
As of project-chip#32974 we were potentially cancelling later than intended.
Also avoid re-using KVS file names to avoid pollution by earlier failed runs.
@ksperling-apple ksperling-apple force-pushed the commissioner-read-topology branch 3 times, most recently from 9bcb5ba to 3cb04a6 Compare November 26, 2024 00:17
Copy link

github-actions bot commented Nov 26, 2024

PR #36603: Size comparison from 0ac52eb to 3cb04a6

Full report (66 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 0ac52eb 3cb04a6 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350810 1350810 0 0.0
RAM 104088 104088 0 0.0
bl702 lighting-app bl702+eth FLASH 650164 650164 0 0.0
RAM 25329 25329 0 0.0
bl702+wifi FLASH 827748 827748 0 0.0
RAM 14069 14069 0 0.0
bl706+mfd+rpc+littlefs FLASH 1055942 1055942 0 0.0
RAM 23917 23917 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 977316 977316 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838488 838488 0 0.0
RAM 123640 123640 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824172 824172 0 0.0
RAM 125520 125520 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770880 770880 0 0.0
RAM 113988 113988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755084 755084 0 0.0
RAM 114204 114204 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629278 629278 0 0.0
RAM 205792 205792 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667858 667858 0 0.0
RAM 205936 205936 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 680105 680105 0 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699957 699957 0 0.0
RAM 81332 81332 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699957 699957 0 0.0
RAM 81332 81332 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656885 656885 0 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616713 616713 0 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636349 636349 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636349 636349 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636177 636177 0 0.0
RAM 74700 74700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655893 655893 0 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655893 655893 0 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612669 612669 0 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632521 632521 0 0.0
RAM 71420 71420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632521 632521 0 0.0
RAM 71420 71420 0 0.0
efr32 lock-app BRD4187C FLASH 927948 927948 0 0.0
RAM 160168 160168 0 0.0
BRD4338a FLASH 744296 744288 -8 -0.0
RAM 233296 233296 0 0.0
window-app BRD4187C FLASH 1019400 1019392 -8 -0.0
RAM 128268 128268 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1541916 1541916 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549042 1549042 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2706561 2706561 0 0.0
RAM 129672 129672 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5998232 5998232 0 0.0
RAM 523400 523400 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5336110 5336110 0 0.0
RAM 242456 242456 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4675634 4675634 0 0.0
RAM 218400 218400 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 1283469 12835682 990 0.0
RAM 582194 582194 0 0.0
chip-tool-ipv6only arm64 unknown 21304 21312 8 0.0
FLASH 10970096 10971616 1520 0.0
RAM 633144 633144 0 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11242797 11243787 990 0.0
RAM 582578 582578 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4499890 4499890 0 0.0
RAM 205392 205392 0 0.0
fabric-sync debug unknown 4904 4904 0 0.0
FLASH 5595829 5596853 1024 0.0
RAM 472392 472392 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5612113 5612113 0 0.0
RAM 228584 228584 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4724990 4724990 0 0.0
RAM 204600 204600 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4350528 4350528 0 0.0
RAM 198272 198272 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4488930 4488930 0 0.0
RAM 202856 202856 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3021389 3021389 0 0.0
RAM 160304 160304 0 0.0
thermostat-no-ble arm64 unknown 9512 9512 0 0.0
FLASH 4096432 4096432 0 0.0
RAM 242976 242976 0 0.0
tv-app debug unknown 5672 5672 0 0.0
FLASH 5948565 5949589 1024 0.0
RAM 595888 595888 0 0.0
tv-casting-app debug unknown 5240 5240 0 0.0
FLASH 11040333 11040333 0 0.0
RAM 691960 691960 0 0.0
nxp contact k32w0+release FLASH 584328 584328 0 0.0
RAM 71056 71056 0 0.0
mcxw71+release FLASH 598864 598864 0 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 611268 611268 0 0.0
RAM 70448 70448 0 0.0
k32w1+release FLASH 685376 685376 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 761632 761632 0 0.0
RAM 70540 70540 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644524 1644524 0 0.0
RAM 212072 212072 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552324 1552324 0 0.0
RAM 208872 208872 0 0.0
light cy8ckit_062s2_43012 FLASH 1467556 1467556 0 0.0
RAM 200856 200856 0 0.0
lock cy8ckit_062s2_43012 FLASH 1465412 1465412 0 0.0
RAM 225216 225216 0 0.0
qpg lighting-app qpg6105+debug FLASH 613128 613128 0 0.0
RAM 105040 105040 0 0.0
lock-app qpg6105+debug FLASH 620636 620636 0 0.0
RAM 99844 99844 0 0.0
stm32 light STM32WB5MM-DK FLASH 483580 483580 0 0.0
RAM 144848 144848 0 0.0
telink bridge-app tlsr9258a FLASH 681574 681574 0 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621984 621984 0 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 763160 763160 0 0.0
RAM 50208 50208 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709144 709144 0 0.0
RAM 73460 73460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 626178 626178 0 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812086 812086 0 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4976 4976 0 0.0
FLASH 1727224 1727224 0 0.0
RAM 90636 90636 0 0.0
chip-tool-ubsan arm unknown 10784 10788 4 0.0
FLASH 17947182 17949198 2016 0.0
RAM 7830388 7831760 1372 0.0

…ally

Also group requests by cluster. The logic of which attributes to read is unchanged.
@ksperling-apple ksperling-apple force-pushed the commissioner-read-topology branch from 3cb04a6 to db73e65 Compare November 26, 2024 03:02
@github-actions github-actions bot added tests matter-1.4-te2-script-change Script changes before end of Matter 1.4 TE2 labels Nov 26, 2024
Copy link

github-actions bot commented Nov 26, 2024

PR #36603: Size comparison from 0ac52eb to db73e65

Full report (66 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 0ac52eb db73e65 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350810 1350810 0 0.0
RAM 104088 104088 0 0.0
bl702 lighting-app bl702+eth FLASH 650164 650164 0 0.0
RAM 25329 25329 0 0.0
bl702+wifi FLASH 827748 827748 0 0.0
RAM 14069 14069 0 0.0
bl706+mfd+rpc+littlefs FLASH 1055942 1055942 0 0.0
RAM 23917 23917 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 977316 977316 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838488 838488 0 0.0
RAM 123640 123640 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824172 824172 0 0.0
RAM 125520 125520 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770880 770880 0 0.0
RAM 113988 113988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755084 755084 0 0.0
RAM 114204 114204 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629278 629278 0 0.0
RAM 205792 205792 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667858 667858 0 0.0
RAM 205936 205936 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 680105 680105 0 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699957 699957 0 0.0
RAM 81332 81332 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699957 699957 0 0.0
RAM 81332 81332 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656885 656885 0 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616713 616713 0 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636349 636349 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636349 636349 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636177 636177 0 0.0
RAM 74700 74700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655893 655893 0 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655893 655893 0 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612669 612669 0 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632521 632521 0 0.0
RAM 71420 71420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632521 632521 0 0.0
RAM 71420 71420 0 0.0
efr32 lock-app BRD4187C FLASH 927948 927948 0 0.0
RAM 160168 160168 0 0.0
BRD4338a FLASH 744296 744288 -8 -0.0
RAM 233296 233296 0 0.0
window-app BRD4187C FLASH 1019400 1019392 -8 -0.0
RAM 128268 128268 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1541916 1541916 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549042 1549042 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2706561 2706561 0 0.0
RAM 129672 129672 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5998232 5998232 0 0.0
RAM 523400 523400 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5336110 5336110 0 0.0
RAM 242456 242456 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4675634 4675634 0 0.0
RAM 218400 218400 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 1283469 12835682 990 0.0
RAM 582194 582194 0 0.0
chip-tool-ipv6only arm64 unknown 21304 21312 8 0.0
FLASH 10970096 10971616 1520 0.0
RAM 633144 633144 0 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11242797 11243787 990 0.0
RAM 582578 582578 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4499890 4499890 0 0.0
RAM 205392 205392 0 0.0
fabric-sync debug unknown 4904 4904 0 0.0
FLASH 5595829 5596853 1024 0.0
RAM 472392 472392 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5612113 5612113 0 0.0
RAM 228584 228584 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4724990 4724990 0 0.0
RAM 204600 204600 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4350528 4350528 0 0.0
RAM 198272 198272 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4488930 4488930 0 0.0
RAM 202856 202856 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3021389 3021389 0 0.0
RAM 160304 160304 0 0.0
thermostat-no-ble arm64 unknown 9512 9512 0 0.0
FLASH 4096432 4096432 0 0.0
RAM 242976 242976 0 0.0
tv-app debug unknown 5672 5672 0 0.0
FLASH 5948565 5949589 1024 0.0
RAM 595888 595888 0 0.0
tv-casting-app debug unknown 5240 5240 0 0.0
FLASH 11040333 11040333 0 0.0
RAM 691960 691960 0 0.0
nxp contact k32w0+release FLASH 584328 584328 0 0.0
RAM 71056 71056 0 0.0
mcxw71+release FLASH 598864 598864 0 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 611268 611268 0 0.0
RAM 70448 70448 0 0.0
k32w1+release FLASH 685376 685376 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 761632 761632 0 0.0
RAM 70540 70540 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644524 1644524 0 0.0
RAM 212072 212072 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552324 1552324 0 0.0
RAM 208872 208872 0 0.0
light cy8ckit_062s2_43012 FLASH 1467556 1467556 0 0.0
RAM 200856 200856 0 0.0
lock cy8ckit_062s2_43012 FLASH 1465412 1465412 0 0.0
RAM 225216 225216 0 0.0
qpg lighting-app qpg6105+debug FLASH 613128 613128 0 0.0
RAM 105040 105040 0 0.0
lock-app qpg6105+debug FLASH 620636 620636 0 0.0
RAM 99844 99844 0 0.0
stm32 light STM32WB5MM-DK FLASH 483580 483580 0 0.0
RAM 144848 144848 0 0.0
telink bridge-app tlsr9258a FLASH 681574 681574 0 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621984 621984 0 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 763160 763160 0 0.0
RAM 50208 50208 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709144 709144 0 0.0
RAM 73460 73460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 626178 626178 0 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812086 812086 0 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4976 4976 0 0.0
FLASH 1727224 1727224 0 0.0
RAM 90636 90636 0 0.0
chip-tool-ubsan arm unknown 10784 10788 4 0.0
FLASH 17947182 17949198 2016 0.0
RAM 7830388 7831760 1372 0.0

Group by cluster instead of by the stages that no longer exist.
Also align error handling and logging a little.
Copy link

github-actions bot commented Nov 27, 2024

PR #36603: Size comparison from 0ac52eb to 3739349

Increases above 0.2%:

platform target config section 0ac52eb 3739349 change % change
efr32 lock-app BRD4187C FLASH 927948 931548 3600 0.4
window-app BRD4187C FLASH 1019400 1023552 4152 0.4
qpg lighting-app qpg6105+debug FLASH 613128 662928 49800 8.1
RAM 105040 105384 344 0.3
Full report (66 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 0ac52eb 3739349 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350810 1350998 188 0.0
RAM 104088 104088 0 0.0
bl702 lighting-app bl702+eth FLASH 650164 650314 150 0.0
RAM 25329 25329 0 0.0
bl702+wifi FLASH 827748 827898 150 0.0
RAM 14069 14069 0 0.0
bl706+mfd+rpc+littlefs FLASH 1055942 1056092 150 0.0
RAM 23917 23917 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 977316 977466 150 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838488 838600 112 0.0
RAM 123640 123640 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824172 824284 112 0.0
RAM 125520 125520 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 770880 771008 128 0.0
RAM 113988 113988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755084 755212 128 0.0
RAM 114204 114204 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629278 629454 176 0.0
RAM 205792 205792 0 0.0
lock CC3235SF_LAUNCHXL FLASH 667858 668034 176 0.0
RAM 205936 205936 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 680105 680225 120 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 699957 700077 120 0.0
RAM 81332 81332 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 699957 700077 120 0.0
RAM 81332 81332 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 656885 657013 128 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616713 616841 128 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636349 636469 120 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636349 636469 120 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636177 636297 120 0.0
RAM 74700 74700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 655893 656013 120 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 655893 656013 120 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612669 612789 120 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632521 632641 120 0.0
RAM 71420 71420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632521 632641 120 0.0
RAM 71420 71420 0 0.0
efr32 lock-app BRD4187C FLASH 927948 931548 3600 0.4
RAM 160168 160168 0 0.0
BRD4338a FLASH 744296 744464 168 0.0
RAM 233296 233296 0 0.0
window-app BRD4187C FLASH 1019400 1023552 4152 0.4
RAM 128268 128268 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1541916 1542110 194 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549042 1549186 144 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2706561 2707099 538 0.0
RAM 129672 129656 -16 -0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5998232 5998842 610 0.0
RAM 523400 523400 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5336110 5336648 538 0.0
RAM 242456 242456 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4675634 4676176 542 0.0
RAM 218400 218384 -16 -0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 1283469 12841002 6310 0.0
RAM 582194 582218 24 0.0
chip-tool-ipv6only arm64 unknown 21304 21312 8 0.0
FLASH 10970096 10975584 5488 0.1
RAM 633144 633192 48 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11242797 11244967 2170 0.0
RAM 582578 582562 -16 -0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4499890 4500432 542 0.0
RAM 205392 205376 -16 -0.0
fabric-sync debug unknown 4904 4904 0 0.0
FLASH 5595829 5598021 2192 0.0
RAM 472392 472360 -32 -0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5612113 5612689 576 0.0
RAM 228584 228600 16 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4724990 4725562 572 0.0
RAM 204600 204616 16 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4350528 4351100 572 0.0
RAM 198272 198288 16 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4488930 4489470 540 0.0
RAM 202856 202872 16 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3021389 3021933 544 0.0
RAM 160304 160328 24 0.0
thermostat-no-ble arm64 unknown 9512 9512 0 0.0
FLASH 4096432 4096896 464 0.0
RAM 242976 243000 24 0.0
tv-app debug unknown 5672 5672 0 0.0
FLASH 5948565 5950773 2208 0.0
RAM 595888 595888 0 0.0
tv-casting-app debug unknown 5240 5240 0 0.0
FLASH 11040333 11040845 512 0.0
RAM 691960 691992 32 0.0
nxp contact k32w0+release FLASH 584328 584448 120 0.0
RAM 71056 71056 0 0.0
mcxw71+release FLASH 598864 598992 128 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 611268 611388 120 0.0
RAM 70448 70448 0 0.0
k32w1+release FLASH 685376 685504 128 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 761632 761760 128 0.0
RAM 70540 70540 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644524 1644716 192 0.0
RAM 212072 212072 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552324 1552492 168 0.0
RAM 208872 208872 0 0.0
light cy8ckit_062s2_43012 FLASH 1467556 1467724 168 0.0
RAM 200856 200856 0 0.0
lock cy8ckit_062s2_43012 FLASH 1465412 1465580 168 0.0
RAM 225216 225216 0 0.0
qpg lighting-app qpg6105+debug FLASH 613128 662928 49800 8.1
RAM 105040 105384 344 0.3
lock-app qpg6105+debug FLASH 620636 620764 128 0.0
RAM 99844 99844 0 0.0
stm32 light STM32WB5MM-DK FLASH 483580 483708 128 0.0
RAM 144848 144848 0 0.0
telink bridge-app tlsr9258a FLASH 681574 681716 142 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621984 622122 138 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 763160 763288 128 0.0
RAM 50208 50208 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709144 709286 142 0.0
RAM 73460 73460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 626178 626320 142 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812086 812228 142 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4976 4976 0 0.0
FLASH 1727224 1727572 348 0.0
RAM 90636 90648 12 0.0
chip-tool-ubsan arm unknown 10784 10792 8 0.1
FLASH 17947182 17954190 7008 0.0
RAM 7830388 7833036 2648 0.0

- Use ClusterStateCache::Get variant that decodes directly
- No need to loop again to parse ConnectMaxTimeSeconds attributes
- Per spec Ethernet does not have ConnectMaxTimeSeconds
@ksperling-apple ksperling-apple force-pushed the commissioner-read-topology branch from 716d4c7 to e5ab93a Compare November 28, 2024 02:35
@ksperling-apple ksperling-apple changed the title Optionally read device type topology during commissioning Refactor kReadCommissioningInfo step in DeviceCommissioner Nov 28, 2024
@ksperling-apple ksperling-apple marked this pull request as ready for review November 28, 2024 02:43
@ksperling-apple ksperling-apple requested a review from a team as a code owner November 28, 2024 02:43
Copy link

github-actions bot commented Nov 28, 2024

PR #36603: Size comparison from 29c2647 to e5ab93a

Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 29c2647 e5ab93a change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350998 1350998 0 0.0
RAM 104088 104088 0 0.0
bl702 lighting-app bl702+eth FLASH 650314 650314 0 0.0
RAM 25329 25329 0 0.0
bl702+wifi FLASH 827898 827898 0 0.0
RAM 14069 14069 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056092 1056092 0 0.0
RAM 23917 23917 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 977466 977466 0 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838600 838600 0 0.0
RAM 123640 123640 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824284 824284 0 0.0
RAM 125520 125520 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 771008 771008 0 0.0
RAM 113988 113988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755212 755212 0 0.0
RAM 114204 114204 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629454 629454 0 0.0
RAM 205792 205792 0 0.0
lock CC3235SF_LAUNCHXL FLASH 668034 668034 0 0.0
RAM 205936 205936 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 680225 680225 0 0.0
RAM 78692 78692 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 700077 700077 0 0.0
RAM 81332 81332 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 700077 700077 0 0.0
RAM 81332 81332 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 657013 657013 0 0.0
RAM 73760 73760 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616841 616841 0 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636469 636469 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636469 636469 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636297 636297 0 0.0
RAM 74700 74700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 656013 656013 0 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 656013 656013 0 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612789 612789 0 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632641 632641 0 0.0
RAM 71420 71420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632641 632641 0 0.0
RAM 71420 71420 0 0.0
efr32 lock-app BRD4187C FLASH 931548 931548 0 0.0
RAM 160168 160168 0 0.0
BRD4338a FLASH 744456 744448 -8 -0.0
RAM 233296 233296 0 0.0
window-app BRD4187C FLASH 1023560 1023552 -8 -0.0
RAM 128268 128268 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1542110 1542110 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116256 0 0.0
FLASH 1549186 1549186 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2707099 2707099 0 0.0
RAM 129656 129656 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5998842 5998842 0 0.0
RAM 523400 523400 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5336648 5336648 0 0.0
RAM 242456 242456 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4676176 4676176 0 0.0
RAM 218384 218384 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12839402 12840642 1240 0.0
RAM 582218 582218 0 0.0
chip-tool-ipv6only arm64 unknown 21304 21312 8 0.0
FLASH 10973728 10975360 1632 0.0
RAM 633168 633192 24 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11243367 11244605 1238 0.0
RAM 582562 582562 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4500432 4500432 0 0.0
RAM 205376 205376 0 0.0
fabric-sync debug unknown 4904 4904 0 0.0
FLASH 5596389 5597653 1264 0.0
RAM 472360 472360 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5612689 5612689 0 0.0
RAM 228600 228600 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4725562 4725562 0 0.0
RAM 204616 204616 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4351100 4351100 0 0.0
RAM 198288 198288 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4489470 4489470 0 0.0
RAM 202872 202872 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3021933 3021933 0 0.0
RAM 160328 160328 0 0.0
thermostat-no-ble arm64 unknown 9512 9512 0 0.0
FLASH 4096896 4096896 0 0.0
RAM 243000 243000 0 0.0
tv-app debug unknown 5672 5672 0 0.0
FLASH 5949173 5950437 1264 0.0
RAM 595888 595888 0 0.0
tv-casting-app debug unknown 5240 5240 0 0.0
FLASH 11040845 11040845 0 0.0
RAM 691992 691992 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916616 916616 0 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888720 888720 0 0.0
RAM 141479 141479 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 850632 850632 0 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 584448 584448 0 0.0
RAM 71056 71056 0 0.0
mcxw71+release FLASH 598992 598992 0 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 611388 611388 0 0.0
RAM 70448 70448 0 0.0
k32w1+release FLASH 685504 685504 0 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 761760 761760 0 0.0
RAM 70540 70540 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644716 1644716 0 0.0
RAM 212072 212072 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552492 1552492 0 0.0
RAM 208872 208872 0 0.0
light cy8ckit_062s2_43012 FLASH 1467724 1467724 0 0.0
RAM 200856 200856 0 0.0
lock cy8ckit_062s2_43012 FLASH 1465580 1465580 0 0.0
RAM 225216 225216 0 0.0
qpg lighting-app qpg6105+debug FLASH 662928 662928 0 0.0
RAM 105384 105384 0 0.0
lock-app qpg6105+debug FLASH 620764 620764 0 0.0
RAM 99844 99844 0 0.0
stm32 light STM32WB5MM-DK FLASH 483708 483708 0 0.0
RAM 144848 144848 0 0.0
telink bridge-app tlsr9258a FLASH 681716 681716 0 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622122 622122 0 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 763288 763288 0 0.0
RAM 50208 50208 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709286 709286 0 0.0
RAM 73460 73460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 626320 626320 0 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812228 812228 0 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4976 4976 0 0.0
FLASH 1727572 1727572 0 0.0
RAM 90648 90648 0 0.0
chip-tool-ubsan arm unknown 10788 10792 4 0.0
FLASH 17952350 17953046 696 0.0
RAM 7831780 7832440 660 0.0

Copy link

github-actions bot commented Nov 28, 2024

PR #36603: Size comparison from 29c2647 to 4f8b058

Increases above 0.2%:

platform target config section 29c2647 4f8b058 change % change
linux fabric-sync debug unknown 4904 4936 32 0.7
tv-app debug unknown 5672 5704 32 0.6
tv-casting-app debug unknown 5240 5288 48 0.9
nxp lock mcxw71+release RAM 70540 70812 272 0.4
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 29c2647 4f8b058 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350998 1351188 190 0.0
RAM 104088 104088 0 0.0
bl702 lighting-app bl702+eth FLASH 650314 650472 158 0.0
RAM 25329 25329 0 0.0
bl702+wifi FLASH 827898 828056 158 0.0
RAM 14069 14069 0 0.0
bl706+mfd+rpc+littlefs FLASH 1056092 1056250 158 0.0
RAM 23917 23917 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 977466 977624 158 0.0
RAM 16556 16556 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838600 838784 184 0.0
RAM 123640 123640 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824284 824452 168 0.0
RAM 125520 125520 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 771008 771192 184 0.0
RAM 113988 113988 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755212 755380 168 0.0
RAM 114204 114204 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629454 629454 0 0.0
RAM 205792 205792 0 0.0
lock CC3235SF_LAUNCHXL FLASH 668034 668034 0 0.0
RAM 205936 205936 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 680225 680465 240 0.0
RAM 78692 78700 8 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 700077 700309 232 0.0
RAM 81332 81340 8 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 700077 700309 232 0.0
RAM 81332 81340 8 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 657013 657253 240 0.0
RAM 73760 73768 8 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616841 617145 304 0.0
RAM 71652 71684 32 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636469 636773 304 0.0
RAM 74196 74228 32 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636469 636773 304 0.0
RAM 74196 74228 32 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636297 636537 240 0.0
RAM 74700 74700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 656013 656245 232 0.0
RAM 77244 77244 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 656013 656245 232 0.0
RAM 77244 77244 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612789 613013 224 0.0
RAM 68780 68780 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632641 632865 224 0.0
RAM 71420 71420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632641 632865 224 0.0
RAM 71420 71420 0 0.0
efr32 lock-app BRD4187C FLASH 931548 931292 -256 -0.0
RAM 160168 160168 0 0.0
BRD4338a FLASH 744456 744656 200 0.0
RAM 233296 233296 0 0.0
window-app BRD4187C FLASH 1023560 1023200 -360 -0.0
RAM 128268 128268 0 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1542110 1542110 0 0.0
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116272 16 0.0
FLASH 1549186 1549246 60 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2707099 2707433 334 0.0
RAM 129656 129656 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5998842 5999110 268 0.0
RAM 523400 523400 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5336648 5336918 270 0.0
RAM 242456 242456 0 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4676176 4676446 270 0.0
RAM 218384 218384 0 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12839402 12840642 1240 0.0
RAM 582218 582218 0 0.0
chip-tool-ipv6only arm64 unknown 21304 21312 8 0.0
FLASH 10973728 10975312 1584 0.0
RAM 633168 633192 24 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11243367 11244605 1238 0.0
RAM 582562 582562 0 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4500432 4500702 270 0.0
RAM 205376 205376 0 0.0
fabric-sync debug unknown 4904 4936 32 0.7
FLASH 5596389 5598677 2288 0.0
RAM 472360 472360 0 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5612689 5612961 272 0.0
RAM 228600 228600 0 0.0
lock-app debug unknown 5376 5376 0 0.0
FLASH 4725562 4725832 270 0.0
RAM 204616 204616 0 0.0
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4351100 4351554 454 0.0
RAM 198288 198288 0 0.0
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4489470 4490596 1126 0.0
RAM 202872 202872 0 0.0
shell debug unknown 4248 4248 0 0.0
FLASH 3021933 3022045 112 0.0
RAM 160328 160328 0 0.0
thermostat-no-ble arm64 unknown 9512 9512 0 0.0
FLASH 4096896 4097088 192 0.0
RAM 243000 243000 0 0.0
tv-app debug unknown 5672 5704 32 0.6
FLASH 5949173 5951477 2304 0.0
RAM 595888 595888 0 0.0
tv-casting-app debug unknown 5240 5288 48 0.9
FLASH 11040845 11046653 5808 0.1
RAM 691992 691992 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916616 916616 0 0.0
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888720 888828 108 0.0
RAM 141479 141479 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 850632 850780 148 0.0
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 584448 584592 144 0.0
RAM 71056 71056 0 0.0
mcxw71+release FLASH 598992 599136 144 0.0
RAM 63152 63152 0 0.0
light k32w0+release FLASH 611388 611548 160 0.0
RAM 70448 70448 0 0.0
k32w1+release FLASH 685504 685688 184 0.0
RAM 48776 48776 0 0.0
lock mcxw71+release FLASH 761760 762008 248 0.0
RAM 70540 70812 272 0.4
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644716 1644716 0 0.0
RAM 212072 212072 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552492 1552492 0 0.0
RAM 208872 208872 0 0.0
light cy8ckit_062s2_43012 FLASH 1467724 1467724 0 0.0
RAM 200856 200856 0 0.0
lock cy8ckit_062s2_43012 FLASH 1465580 1465580 0 0.0
RAM 225216 225216 0 0.0
qpg lighting-app qpg6105+debug FLASH 662928 663072 144 0.0
RAM 105384 105384 0 0.0
lock-app qpg6105+debug FLASH 620764 620900 136 0.0
RAM 99844 99844 0 0.0
stm32 light STM32WB5MM-DK FLASH 483708 483708 0 0.0
RAM 144848 144848 0 0.0
telink bridge-app tlsr9258a FLASH 681716 681716 0 0.0
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622122 622122 0 0.0
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 763288 763480 192 0.0
RAM 50208 50212 4 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709286 709546 260 0.0
RAM 73460 73496 36 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 626320 626500 180 0.0
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812228 812408 180 0.0
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4976 4976 0 0.0
FLASH 1727572 1727716 144 0.0
RAM 90648 90648 0 0.0
chip-tool-ubsan arm unknown 10788 10792 4 0.0
FLASH 17952350 17953046 696 0.0
RAM 7831780 7832440 660 0.0

Copy link
Contributor

@cecille cecille left a comment

Choose a reason for hiding this comment

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

This generally seems better to me. Most of my comments are minor. +1 to Boris' question about cancellation though.

src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
src/controller/CHIPDeviceController.cpp Show resolved Hide resolved
Copy link

github-actions bot commented Dec 2, 2024

PR #36603: Size comparison from 29c2647 to a2f8a86

Increases above 0.2%:

platform target config section 29c2647 a2f8a86 change % change
linux air-purifier-app debug FLASH 2707099 2713573 6474 0.2
fabric-sync debug unknown 4904 4936 32 0.7
shell debug FLASH 3021933 3028413 6480 0.2
tv-app debug unknown 5672 5704 32 0.6
tv-casting-app debug unknown 5240 5288 48 0.9
nxp lock mcxw71+release RAM 70540 70828 288 0.4
Full report (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 29c2647 a2f8a86 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1350998 1352938 1940 0.1
RAM 104088 104104 16 0.0
bl702 lighting-app bl702+eth FLASH 650314 651536 1222 0.2
RAM 25329 25345 16 0.1
bl702+wifi FLASH 827898 829120 1222 0.1
RAM 14069 14085 16 0.1
bl706+mfd+rpc+littlefs FLASH 1056092 1057314 1222 0.1
RAM 23917 23933 16 0.1
bl702l lighting-app bl702l+mfd+littlefs FLASH 977466 978688 1222 0.1
RAM 16556 16572 16 0.1
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 838600 839576 976 0.1
RAM 123640 123656 16 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 824284 825116 832 0.1
RAM 125520 125536 16 0.0
pump-app LP_EM_CC1354P10_6 FLASH 771008 771864 856 0.1
RAM 113988 114004 16 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 755212 756052 840 0.1
RAM 114204 114220 16 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 629454 630686 1232 0.2
RAM 205792 205808 16 0.0
lock CC3235SF_LAUNCHXL FLASH 668034 669298 1264 0.2
RAM 205936 205952 16 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 680225 681249 1024 0.2
RAM 78692 78716 24 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 700077 701101 1024 0.1
RAM 81332 81348 16 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 700077 701101 1024 0.1
RAM 81332 81348 16 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 657013 658037 1024 0.2
RAM 73760 73784 24 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 616841 617809 968 0.2
RAM 71652 71692 40 0.1
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 636469 637437 968 0.2
RAM 74196 74244 48 0.1
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 636469 637437 968 0.2
RAM 74196 74244 48 0.1
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 636297 637201 904 0.1
RAM 74700 74708 8 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 656013 656917 904 0.1
RAM 77244 77260 16 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 656013 656917 904 0.1
RAM 77244 77260 16 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 612789 613669 880 0.1
RAM 68780 68796 16 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 632641 633521 880 0.1
RAM 71420 71436 16 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 632641 633521 880 0.1
RAM 71420 71436 16 0.0
efr32 lock-app BRD4187C FLASH 931548 932116 568 0.1
RAM 160168 160180 12 0.0
BRD4338a FLASH 744456 745912 1456 0.2
RAM 233296 233312 16 0.0
window-app BRD4187C FLASH 1023560 1024480 920 0.1
RAM 128268 128284 16 0.0
esp32 all-clusters-app c3devkit DRAM 95344 95344 0 0.0
FLASH 1542110 1543258 1148 0.1
IRAM 82542 82542 0 0.0
m5stack DRAM 116256 116296 40 0.0
FLASH 1549186 1550002 816 0.1
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4720 4720 0 0.0
FLASH 2707099 2713573 6474 0.2
RAM 129656 129768 112 0.1
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5998842 6005592 6750 0.1
RAM 523400 523512 112 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5336648 5343400 6752 0.1
RAM 242456 242568 112 0.0
bridge-app debug unknown 5440 5440 0 0.0
FLASH 4676176 4682886 6710 0.1
RAM 218384 218432 48 0.0
chip-tool debug unknown 5992 5992 0 0.0
FLASH 12839402 12846760 7358 0.1
RAM 582218 582314 96 0.0
chip-tool-ipv6only arm64 unknown 21304 21320 16 0.1
FLASH 10973728 10981072 7344 0.1
RAM 633168 633256 88 0.0
fabric-admin debug unknown 5816 5816 0 0.0
FLASH 11243367 11250823 7456 0.1
RAM 582562 582690 128 0.0
fabric-bridge-app debug unknown 4696 4696 0 0.0
FLASH 4500432 4507142 6710 0.1
RAM 205376 205504 128 0.1
fabric-sync debug unknown 4904 4936 32 0.7
FLASH 5596389 5604821 8432 0.2
RAM 472360 472488 128 0.0
lighting-app debug+rpc+ui unknown 6104 6104 0 0.0
FLASH 5612689 5619729 7040 0.1
RAM 228600 228760 160 0.1
lock-app debug unknown 5376 5376 0 0.0
FLASH 4725562 4732240 6678 0.1
RAM 204616 204744 128 0.1
ota-provider-app debug unknown 4752 4752 0 0.0
FLASH 4351100 4357994 6894 0.2
RAM 198288 198416 128 0.1
ota-requestor-app debug unknown 4688 4688 0 0.0
FLASH 4489470 4497034 7564 0.2
RAM 202872 203000 128 0.1
shell debug unknown 4248 4248 0 0.0
FLASH 3021933 3028413 6480 0.2
RAM 160328 160456 128 0.1
thermostat-no-ble arm64 unknown 9512 9520 8 0.1
FLASH 4096896 4102464 5568 0.1
RAM 243000 243040 40 0.0
tv-app debug unknown 5672 5704 32 0.6
FLASH 5949173 5957317 8144 0.1
RAM 595888 596000 112 0.0
tv-casting-app debug unknown 5240 5288 48 0.9
FLASH 11040845 11052557 11712 0.1
RAM 691992 692120 128 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 916616 917380 764 0.1
RAM 143292 143292 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 888720 889868 1148 0.1
RAM 141479 141479 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 850632 851548 916 0.1
RAM 142200 142200 0 0.0
nxp contact k32w0+release FLASH 584448 585264 816 0.1
RAM 71056 71072 16 0.0
mcxw71+release FLASH 598992 599800 808 0.1
RAM 63152 63168 16 0.0
light k32w0+release FLASH 611388 612204 816 0.1
RAM 70448 70464 16 0.0
k32w1+release FLASH 685504 686344 840 0.1
RAM 48776 48792 16 0.0
lock mcxw71+release FLASH 761760 762680 920 0.1
RAM 70540 70828 288 0.4
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1644716 1646068 1352 0.1
RAM 212072 212088 16 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552492 1553836 1344 0.1
RAM 208872 208888 16 0.0
light cy8ckit_062s2_43012 FLASH 1467724 1469108 1384 0.1
RAM 200856 200872 16 0.0
lock cy8ckit_062s2_43012 FLASH 1465580 1466836 1256 0.1
RAM 225216 225232 16 0.0
qpg lighting-app qpg6105+debug FLASH 662928 663736 808 0.1
RAM 105384 105400 16 0.0
lock-app qpg6105+debug FLASH 620764 621572 808 0.1
RAM 99844 99860 16 0.0
stm32 light STM32WB5MM-DK FLASH 483708 484492 784 0.2
RAM 144848 144864 16 0.0
telink bridge-app tlsr9258a FLASH 681716 682594 878 0.1
RAM 91200 91200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622122 623004 882 0.1
RAM 31432 31432 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 763288 764510 1222 0.2
RAM 50208 50212 4 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709286 710424 1138 0.2
RAM 73460 73496 36 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 626320 627530 1210 0.2
RAM 142132 142132 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 812228 813458 1230 0.2
RAM 99676 99676 0 0.0
tizen all-clusters-app arm unknown 4976 4980 4 0.1
FLASH 1727572 1731832 4260 0.2
RAM 90648 90724 76 0.1
chip-tool-ubsan arm unknown 10788 10796 8 0.1
FLASH 17952350 17965662 13312 0.1
RAM 7831780 7838988 7208 0.1

@mergify mergify bot merged commit 4a53f16 into project-chip:master Dec 6, 2024
67 checks passed
@ksperling-apple ksperling-apple deleted the commissioner-read-topology branch December 6, 2024 03:29
yyzhong-g pushed a commit to yyzhong-g/connectedhomeip that referenced this pull request Dec 12, 2024
…hip#36603)

* Fix trigger-based cancellation in MTRPairingTests

As of project-chip#32974 we were potentially cancelling later than intended.
Also avoid re-using KVS file names to avoid pollution by earlier failed runs.

* Roll kReadCommissioningInfo2 stage into kReadCommissioningInfo and track progress internally

* Refactor ContinueReadingCommissioningInfo to group attributes dynamically

Also group requests by cluster. The logic of which attributes to read is unchanged.

* Refactor FinishReadingCommissioningInfo / Parse*Info

Group by cluster instead of by the stages that no longer exist.
Also align error handling and logging a little.

* Simplify ParseNetworkCommissioningInfo

- Use ClusterStateCache::Get variant that decodes directly
- No need to loop again to parse ConnectMaxTimeSeconds attributes
- Per spec Ethernet does not have ConnectMaxTimeSeconds

* Review comments: Use explicit ifs for this logic

* Review comments: Explain skip logic

* Remove workaround for zero network commissioning feature map

* Review comment: document mReadCommissioningInfoProgress

* Review comment: avoid paths / attributes ambiguity
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.

4 participants