Skip to content

[Darwin] Track last commissioining stage for metrics #40010

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

anush-apple
Copy link
Contributor

@anush-apple anush-apple commented Jul 15, 2025

Summary

Related issues

Testing

Readability checklist

The checklist below will help the reviewer finish PR review in time and keep the
code readable:

  • PR title is
    descriptive
  • Apply the
    “When in Rome…”
    rule (coding style)
  • PR size is short
  • Try to avoid "squashing" and "force-update" in commit history
  • CI time didn't increase

See: Pull Request Guidelines

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request improves commissioning metrics on Darwin by preventing the kCleanup stage from overwriting the actual final commissioning stage. The change correctly ignores the cleanup stage, which is particularly useful for diagnosing failures. The review suggests using a safer string comparison and simplifying the conditional logic to improve robustness and readability.

Copy link

github-actions bot commented Jul 15, 2025

PR #40010: Size comparison from d8d0bc6 to abe4493

Full report (6 builds for cc32xx, nrfconnect, stm32)
platform target config section d8d0bc6 abe4493 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549418 549418 0 0.0
RAM 205104 205104 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581770 581770 0 0.0
RAM 205304 205304 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 888648 888648 0 0.0
RAM 166122 166122 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 897668 897668 0 0.0
RAM 145060 145060 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858976 858976 0 0.0
RAM 141014 141014 0 0.0
stm32 light STM32WB5MM-DK FLASH 465212 465212 0 0.0
RAM 141336 141336 0 0.0

- Since kCleanup is always called during commissioining it ends up being
  the last stage tracked. This fix is to ignore this stage and track the
  last stage committed as part of commissioining.

Fixes project-chip#40009
@anush-apple anush-apple force-pushed the metrics-track-last-stage branch from abe4493 to f3b0767 Compare July 15, 2025 18:41
Copy link

github-actions bot commented Jul 15, 2025

PR #40010: Size comparison from 3eac2cc to a0898e8

Full report (59 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 3eac2cc a0898e8 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102624 1102624 0 0.0
RAM 178970 178970 0 0.0
bl702 lighting-app bl702+eth FLASH 656022 656022 0 0.0
RAM 134929 134929 0 0.0
bl702+wifi FLASH 833210 833210 0 0.0
RAM 124469 124469 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065328 1065328 0 0.0
RAM 117341 117341 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894874 894874 0 0.0
RAM 105628 105628 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978592 978592 0 0.0
RAM 109820 109820 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 765024 765024 0 0.0
RAM 103336 103336 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 776396 776396 0 0.0
RAM 108504 108504 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 722752 722752 0 0.0
RAM 96908 96908 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 707044 707044 0 0.0
RAM 97116 97116 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549418 549418 0 0.0
RAM 205104 205104 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581770 581770 0 0.0
RAM 205304 205304 0 0.0
efr32 lock-app BRD4187C FLASH 956560 956560 0 0.0
RAM 126532 126532 0 0.0
BRD4338a FLASH 751012 751004 -8 -0.0
RAM 251880 251880 0 0.0
window-app BRD4187C FLASH 1049376 1049368 -8 -0.0
RAM 122728 122728 0 0.0
esp32 all-clusters-app c3devkit DRAM 102232 102232 0 0.0
FLASH 1781194 1781194 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121116 121116 0 0.0
FLASH 1748438 1748438 0 0.0
IRAM 117071 117071 0 0.0
linux air-purifier-app debug unknown 4856 4856 0 0.0
FLASH 2799114 2799114 0 0.0
RAM 117192 117192 0 0.0
all-clusters-app debug unknown 5672 5672 0 0.0
FLASH 6208238 6208238 0 0.0
RAM 532384 532384 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5475670 5475670 0 0.0
RAM 227768 227768 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4804474 4804474 0 0.0
RAM 207456 207456 0 0.0
camera-app debug unknown 8976 8976 0 0.0
FLASH 6944923 6944923 0 0.0
RAM 230496 230496 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 14388571 14388571 0 0.0
RAM 662488 662488 0 0.0
chip-tool debug unknown 6272 6272 0 0.0
FLASH 14761023 14761023 0 0.0
RAM 656128 656128 0 0.0
chip-tool-ipv6only arm64 unknown 40744 40744 0 0.0
FLASH 12731079 12731079 0 0.0
RAM 702392 702392 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4787330 4787330 0 0.0
RAM 200344 200344 0 0.0
fabric-admin debug unknown 5952 5952 0 0.0
FLASH 12803555 12803555 0 0.0
RAM 655160 655160 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4589804 4589804 0 0.0
RAM 193200 193200 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5738605 5738605 0 0.0
RAM 492480 492480 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5691265 5691265 0 0.0
RAM 209720 209720 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4833186 4833186 0 0.0
RAM 196936 196936 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4444046 4444046 0 0.0
RAM 185952 185952 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4516210 4516210 0 0.0
RAM 188824 188824 0 0.0
shell debug unknown 4288 4288 0 0.0
FLASH 3078460 3078460 0 0.0
RAM 147088 147088 0 0.0
thermostat-no-ble arm64 unknown 9840 9840 0 0.0
FLASH 4248431 4248431 0 0.0
RAM 233632 233632 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6103437 6103437 0 0.0
RAM 616760 616760 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 12906749 12906749 0 0.0
RAM 772496 772496 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 888648 888648 0 0.0
RAM 166122 166122 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 897668 897668 0 0.0
RAM 145060 145060 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858976 858976 0 0.0
RAM 141014 141014 0 0.0
nxp contact mcxw71+release FLASH 624712 624712 0 0.0
RAM 63132 63132 0 0.0
lock mcxw71+release FLASH 775920 775920 0 0.0
RAM 67788 67788 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1633244 1633244 0 0.0
RAM 211064 211064 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1577420 1577420 0 0.0
RAM 208432 208432 0 0.0
light cy8ckit_062s2_43012 FLASH 1449316 1449316 0 0.0
RAM 197152 197152 0 0.0
lock cy8ckit_062s2_43012 FLASH 1481572 1481572 0 0.0
RAM 224872 224872 0 0.0
qpg lighting-app qpg6200+debug FLASH 744144 744144 0 0.0
RAM 94252 94252 0 0.0
lock-app qpg6200+debug FLASH 753764 753764 0 0.0
RAM 94280 94280 0 0.0
stm32 light STM32WB5MM-DK FLASH 465212 465212 0 0.0
RAM 141336 141336 0 0.0
telink bridge-app tl7218x FLASH 702250 702250 0 0.0
RAM 93564 93564 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 793978 793978 0 0.0
RAM 43980 43980 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 782384 782384 0 0.0
RAM 100876 100876 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 709500 709500 0 0.0
RAM 54204 54204 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746094 746094 0 0.0
RAM 77368 77368 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 722820 722820 0 0.0
RAM 36960 36960 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602920 602920 0 0.0
RAM 112496 112496 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 817938 817942 4 0.0
RAM 99128 99128 0 0.0
tizen all-clusters-app arm unknown 5092 5092 0 0.0
FLASH 1698064 1698064 0 0.0
RAM 91360 91360 0 0.0
chip-tool-ubsan arm unknown 20804 20804 0 0.0
FLASH 21099434 21099434 0 0.0
RAM 9178604 9178604 0 0.0

Copy link

github-actions bot commented Jul 16, 2025

PR #40010: Size comparison from 3eac2cc to 2efc217

Full report (59 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 3eac2cc 2efc217 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102624 1102624 0 0.0
RAM 178970 178970 0 0.0
bl702 lighting-app bl702+eth FLASH 656022 656022 0 0.0
RAM 134929 134929 0 0.0
bl702+wifi FLASH 833210 833210 0 0.0
RAM 124469 124469 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065328 1065328 0 0.0
RAM 117341 117341 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894874 894874 0 0.0
RAM 105628 105628 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978592 978592 0 0.0
RAM 109820 109820 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 765024 765024 0 0.0
RAM 103336 103336 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 776396 776396 0 0.0
RAM 108504 108504 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 722752 722752 0 0.0
RAM 96908 96908 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 707044 707044 0 0.0
RAM 97116 97116 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549418 549418 0 0.0
RAM 205104 205104 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581770 581770 0 0.0
RAM 205304 205304 0 0.0
efr32 lock-app BRD4187C FLASH 956560 956560 0 0.0
RAM 126532 126532 0 0.0
BRD4338a FLASH 751012 751004 -8 -0.0
RAM 251880 251880 0 0.0
window-app BRD4187C FLASH 1049376 1049368 -8 -0.0
RAM 122728 122728 0 0.0
esp32 all-clusters-app c3devkit DRAM 102232 102232 0 0.0
FLASH 1781194 1781194 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121116 121116 0 0.0
FLASH 1748438 1748438 0 0.0
IRAM 117071 117071 0 0.0
linux air-purifier-app debug unknown 4856 4856 0 0.0
FLASH 2799114 2799114 0 0.0
RAM 117192 117192 0 0.0
all-clusters-app debug unknown 5672 5672 0 0.0
FLASH 6208238 6208238 0 0.0
RAM 532384 532384 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5475670 5475670 0 0.0
RAM 227768 227768 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4804474 4804474 0 0.0
RAM 207456 207456 0 0.0
camera-app debug unknown 8976 8976 0 0.0
FLASH 6944923 6944923 0 0.0
RAM 230496 230496 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 14388571 14388571 0 0.0
RAM 662488 662488 0 0.0
chip-tool debug unknown 6272 6272 0 0.0
FLASH 14761023 14761023 0 0.0
RAM 656128 656128 0 0.0
chip-tool-ipv6only arm64 unknown 40744 40744 0 0.0
FLASH 12731079 12731079 0 0.0
RAM 702392 702392 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4787330 4787330 0 0.0
RAM 200344 200344 0 0.0
fabric-admin debug unknown 5952 5952 0 0.0
FLASH 12803555 12803555 0 0.0
RAM 655160 655160 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4589804 4589804 0 0.0
RAM 193200 193200 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5738605 5738605 0 0.0
RAM 492480 492480 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5691265 5691265 0 0.0
RAM 209720 209720 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4833186 4833186 0 0.0
RAM 196936 196936 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4444046 4444046 0 0.0
RAM 185952 185952 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4516210 4516210 0 0.0
RAM 188824 188824 0 0.0
shell debug unknown 4288 4288 0 0.0
FLASH 3078460 3078460 0 0.0
RAM 147088 147088 0 0.0
thermostat-no-ble arm64 unknown 9840 9840 0 0.0
FLASH 4248431 4248431 0 0.0
RAM 233632 233632 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6103437 6103437 0 0.0
RAM 616760 616760 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 12906749 12906749 0 0.0
RAM 772496 772496 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 888648 888648 0 0.0
RAM 166122 166122 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 897668 897668 0 0.0
RAM 145060 145060 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858976 858976 0 0.0
RAM 141014 141014 0 0.0
nxp contact mcxw71+release FLASH 624712 624712 0 0.0
RAM 63132 63132 0 0.0
lock mcxw71+release FLASH 775920 775920 0 0.0
RAM 67788 67788 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1633244 1633244 0 0.0
RAM 211064 211064 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1577420 1577420 0 0.0
RAM 208432 208432 0 0.0
light cy8ckit_062s2_43012 FLASH 1449316 1449316 0 0.0
RAM 197152 197152 0 0.0
lock cy8ckit_062s2_43012 FLASH 1481572 1481572 0 0.0
RAM 224872 224872 0 0.0
qpg lighting-app qpg6200+debug FLASH 744144 744144 0 0.0
RAM 94252 94252 0 0.0
lock-app qpg6200+debug FLASH 753764 753764 0 0.0
RAM 94280 94280 0 0.0
stm32 light STM32WB5MM-DK FLASH 465212 465212 0 0.0
RAM 141336 141336 0 0.0
telink bridge-app tl7218x FLASH 702250 702250 0 0.0
RAM 93564 93564 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 793978 793978 0 0.0
RAM 43980 43980 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 782384 782384 0 0.0
RAM 100876 100876 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 709500 709500 0 0.0
RAM 54204 54204 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746094 746094 0 0.0
RAM 77368 77368 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 722820 722820 0 0.0
RAM 36960 36960 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 602920 603068 148 0.0
RAM 112496 112532 36 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 817938 817942 4 0.0
RAM 99128 99128 0 0.0
tizen all-clusters-app arm unknown 5092 5092 0 0.0
FLASH 1698064 1698064 0 0.0
RAM 91360 91360 0 0.0
chip-tool-ubsan arm unknown 20804 20804 0 0.0
FLASH 21099434 21099434 0 0.0
RAM 9178604 9178604 0 0.0

@kiel-apple
Copy link
Contributor

CI didn't pass on first try due to #40132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

4 participants