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

[Python] Convert async API functions to python asyncio #33989

Merged

Conversation

agners
Copy link
Contributor

@agners agners commented Jun 18, 2024

Convert API functions which are waiting for a callback to Python co-routines (async functions). This allows to use this API functions without blocking the asyncio event loop, which is crucial for a responsive asyncio application.

The change takes care of locking the individual functions so that independent asyncio tasks can't interfere with each other: E.g. if two asyncio tasks try to commission a device, the second asyncio task trying to commission too will wait for the first asyncio task to complete commission first.

Copy link

github-actions bot commented Jun 18, 2024

PR #33989: Size comparison from acf823f to 4925772

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section acf823f 4925772 change % change
bl602 lighting-app bl602 FLASH 1270530 1270530 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284808 1284808 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309730 1309730 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091426 1091426 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102120 1102120 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181236 1181236 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874770 874770 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127064 1127064 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078312 1078312 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089574 1089574 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798076 798076 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813752 813752 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803268 803268 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756060 756060 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741724 741724 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661673 661673 0 0.0
RAM 74512 74512 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681517 681517 0 0.0
RAM 77144 77144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681517 681517 0 0.0
RAM 77144 77144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638453 638453 0 0.0
RAM 69580 69580 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604137 604137 0 0.0
RAM 70216 70216 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623773 623773 0 0.0
RAM 72768 72768 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623773 623773 0 0.0
RAM 72768 72768 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619641 619641 0 0.0
RAM 73232 73232 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639357 639357 0 0.0
RAM 75784 75784 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639357 639357 0 0.0
RAM 75784 75784 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 588213 0 0.0
RAM 67200 67200 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
efr32 lighting-app BRD4187C FLASH 888232 888224 -8 -0.0
RAM 183424 183424 0 0.0
lock-app BRD4338a FLASH 699848 699848 0 0.0
RAM 242228 242228 0 0.0
window-app BRD4187C FLASH 969748 969748 0 0.0
RAM 167856 167856 0 0.0
esp32 all-clusters-app c3devkit DRAM 88324 88324 0 0.0
FLASH 1468918 1468918 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114796 114796 0 0.0
FLASH 1538067 1538067 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4568 4568 0 0.0
FLASH 2535024 2535024 0 0.0
RAM 129072 129072 0 0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5581550 5581550 0 0.0
RAM 483272 483272 0 0.0
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5054984 5054984 0 0.0
RAM 236824 236824 0 0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4480664 4480664 0 0.0
RAM 216736 216736 0 0.0
chip-tool debug unknown 5744 5744 0 0.0
FLASH 11527527 11527527 0 0.0
RAM 535450 535450 0 0.0
chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10663892 10663892 0 0.0
RAM 583416 583416 0 0.0
fabric-admin debug unknown 5600 5600 0 0.0
FLASH 10526455 10526455 0 0.0
RAM 529466 529466 0 0.0
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4350568 4350568 0 0.0
RAM 208784 208784 0 0.0
lighting-app debug+rpc+ui unknown 5880 5880 0 0.0
FLASH 5377746 5377746 0 0.0
RAM 225640 225640 0 0.0
lock-app debug unknown 5184 5184 0 0.0
FLASH 4544296 4544296 0 0.0
RAM 204192 204192 0 0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4180008 4180008 0 0.0
RAM 193216 193216 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4305496 4305496 0 0.0
RAM 197872 197872 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2801965 2801965 0 0.0
RAM 154416 154416 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4152804 4152804 0 0.0
RAM 234608 234608 0 0.0
tv-app debug unknown 5472 5472 0 0.0
FLASH 5597304 5597304 0 0.0
RAM 345672 345672 0 0.0
tv-casting-app debug unknown 5104 5104 0 0.0
FLASH 9572774 9572774 0 0.0
RAM 352816 352816 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497580 1497580 0 0.0
RAM 226072 226072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876200 876200 0 0.0
RAM 139129 139129 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 949232 949232 0 0.0
RAM 137557 137557 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822416 822416 0 0.0
RAM 138027 138027 0 0.0
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590736 590736 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609680 609680 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674224 674224 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613428 1613428 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650576 650576 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610700 610700 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472112 472112 0 0.0
RAM 141652 141652 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 625532 625532 0 0.0
RAM 49904 49904 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 602572 602572 0 0.0
RAM 130288 130288 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 770694 770694 0 0.0
RAM 110052 110052 0 0.0
bridge-app tlsr9258a FLASH 668618 668618 0 0.0
RAM 94672 94672 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 627254 627254 0 0.0
RAM 49948 49948 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 713368 713368 0 0.0
RAM 76540 76540 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 558240 558240 0 0.0
RAM 126544 126544 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 793320 793320 0 0.0
RAM 99900 99900 0 0.0
lock-app-dfu tlsr9528a FLASH 660356 660356 0 0.0
RAM 69228 69228 0 0.0
ota-requestor-app tlsr9258a FLASH 687236 687236 0 0.0
RAM 94396 94396 0 0.0
pump-app tlsr9518adk80d FLASH 609474 609474 0 0.0
RAM 56328 56328 0 0.0
pump-controller-app tlsr9518adk80d FLASH 599860 599860 0 0.0
RAM 56128 56128 0 0.0
shell tlsr9518adk80d FLASH 462614 462614 0 0.0
RAM 71852 71852 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 633616 633616 0 0.0
RAM 51576 51576 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642974 642974 0 0.0
RAM 59764 59764 0 0.0
thermostat tlsr9518adk80d FLASH 618750 618750 0 0.0
RAM 56452 56452 0 0.0
window-covering tlsr9118bdk40d FLASH 464942 464942 0 0.0
RAM 82224 82224 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1621556 1621556 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15767058 15767058 0 0.0
RAM 6917600 6917600 0 0.0

@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from 4925772 to 5051453 Compare June 18, 2024 20:58
@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from 5051453 to a481baa Compare June 18, 2024 21:24
Copy link

github-actions bot commented Jun 18, 2024

PR #33989: Size comparison from bec5fc3 to a481baa

Full report (8 builds for cc32xx, mbed, qpg, stm32, tizen)
platform target config section bec5fc3 a481baa change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497580 1497580 0 0.0
RAM 226072 226072 0 0.0
qpg lighting-app qpg6105+debug FLASH 650592 650592 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610700 610700 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472128 472128 0 0.0
RAM 141652 141652 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1621564 1621564 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15767058 15767058 0 0.0
RAM 6917600 6917600 0 0.0

@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from a481baa to d23759e Compare June 18, 2024 21:45
Copy link

github-actions bot commented Jun 18, 2024

PR #33989: Size comparison from bec5fc3 to d23759e

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section bec5fc3 d23759e change % change
bl602 lighting-app bl602 FLASH 1270530 1270530 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284808 1284808 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309730 1309730 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091426 1091426 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102120 1102120 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181236 1181236 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874770 874770 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127064 1127064 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078312 1078312 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089574 1089574 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798092 798092 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813752 813752 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803268 803268 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756060 756060 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741724 741724 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661689 661689 0 0.0
RAM 74512 74512 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681533 681533 0 0.0
RAM 77144 77144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681533 681533 0 0.0
RAM 77144 77144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638469 638469 0 0.0
RAM 69580 69580 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604137 604137 0 0.0
RAM 70216 70216 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623773 623773 0 0.0
RAM 72768 72768 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623773 623773 0 0.0
RAM 72768 72768 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619641 619641 0 0.0
RAM 73232 73232 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639357 639357 0 0.0
RAM 75784 75784 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639357 639357 0 0.0
RAM 75784 75784 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 588213 0 0.0
RAM 67200 67200 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
efr32 lighting-app BRD4187C FLASH 888232 888224 -8 -0.0
RAM 183424 183424 0 0.0
lock-app BRD4338a FLASH 699848 699848 0 0.0
RAM 242228 242228 0 0.0
window-app BRD4187C FLASH 969748 969748 0 0.0
RAM 167856 167856 0 0.0
esp32 all-clusters-app c3devkit DRAM 88324 88324 0 0.0
FLASH 1468918 1468918 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114796 114796 0 0.0
FLASH 1538063 1538063 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4568 4568 0 0.0
FLASH 2535024 2535024 0 0.0
RAM 129072 129072 0 0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5581566 5581566 0 0.0
RAM 483272 483272 0 0.0
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5054984 5054984 0 0.0
RAM 236824 236824 0 0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4480664 4480664 0 0.0
RAM 216736 216736 0 0.0
chip-tool debug unknown 5744 5744 0 0.0
FLASH 11527527 11527527 0 0.0
RAM 535450 535450 0 0.0
chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10663892 10663892 0 0.0
RAM 583416 583416 0 0.0
fabric-admin debug unknown 5600 5600 0 0.0
FLASH 10526455 10526455 0 0.0
RAM 529466 529466 0 0.0
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4351240 4351240 0 0.0
RAM 208864 208864 0 0.0
lighting-app debug+rpc+ui unknown 5880 5880 0 0.0
FLASH 5377762 5377762 0 0.0
RAM 225640 225640 0 0.0
lock-app debug unknown 5184 5184 0 0.0
FLASH 4544296 4544296 0 0.0
RAM 204192 204192 0 0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4180008 4180008 0 0.0
RAM 193216 193216 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4305496 4305496 0 0.0
RAM 197872 197872 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2801981 2801981 0 0.0
RAM 154416 154416 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4152804 4152804 0 0.0
RAM 234608 234608 0 0.0
tv-app debug unknown 5472 5472 0 0.0
FLASH 5597304 5597304 0 0.0
RAM 345672 345672 0 0.0
tv-casting-app debug unknown 5104 5104 0 0.0
FLASH 9572774 9572774 0 0.0
RAM 352816 352816 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497580 1497580 0 0.0
RAM 226072 226072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876212 876212 0 0.0
RAM 139129 139129 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 949244 949244 0 0.0
RAM 137557 137557 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822416 822416 0 0.0
RAM 138027 138027 0 0.0
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590736 590736 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609680 609680 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674224 674224 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613444 1613444 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650592 650592 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610700 610700 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472128 472128 0 0.0
RAM 141652 141652 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 625532 625532 0 0.0
RAM 49904 49904 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 602572 602572 0 0.0
RAM 130288 130288 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 770694 770694 0 0.0
RAM 110052 110052 0 0.0
bridge-app tlsr9258a FLASH 668618 668618 0 0.0
RAM 94672 94672 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 627254 627254 0 0.0
RAM 49948 49948 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 713368 713368 0 0.0
RAM 76540 76540 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 558240 558240 0 0.0
RAM 126544 126544 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 793320 793320 0 0.0
RAM 99900 99900 0 0.0
lock-app-dfu tlsr9528a FLASH 660356 660356 0 0.0
RAM 69228 69228 0 0.0
ota-requestor-app tlsr9258a FLASH 687236 687236 0 0.0
RAM 94396 94396 0 0.0
pump-app tlsr9518adk80d FLASH 609474 609474 0 0.0
RAM 56328 56328 0 0.0
pump-controller-app tlsr9518adk80d FLASH 599860 599860 0 0.0
RAM 56128 56128 0 0.0
shell tlsr9518adk80d FLASH 462614 462614 0 0.0
RAM 71852 71852 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 633616 633616 0 0.0
RAM 51576 51576 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642974 642974 0 0.0
RAM 59764 59764 0 0.0
thermostat tlsr9518adk80d FLASH 618750 618750 0 0.0
RAM 56452 56452 0 0.0
window-covering tlsr9118bdk40d FLASH 464942 464942 0 0.0
RAM 82224 82224 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1621564 1621564 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15767058 15767058 0 0.0
RAM 6917600 6917600 0 0.0

@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from d23759e to 64f79f6 Compare June 19, 2024 06:19
Copy link

github-actions bot commented Jun 19, 2024

PR #33989: Size comparison from f6ac926 to 64f79f6

Full report (49 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
platform target config section f6ac926 64f79f6 change % change
bl602 lighting-app bl602 FLASH 1270534 1270534 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284812 1284812 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309734 1309734 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091430 1091430 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102124 1102124 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181240 1181240 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874774 874774 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127068 1127068 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078316 1078316 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089578 1089578 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798100 798100 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813760 813760 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803276 803276 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756068 756068 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741732 741732 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661697 661697 0 0.0
RAM 74512 74512 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638477 638477 0 0.0
RAM 69580 69580 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604145 604145 0 0.0
RAM 70216 70216 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619649 619649 0 0.0
RAM 73232 73232 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 588213 0 0.0
RAM 67200 67200 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
linux chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10690980 10690980 0 0.0
RAM 583416 583416 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4154964 4154964 0 0.0
RAM 234608 234608 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497468 1497468 0 0.0
RAM 226072 226072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876220 876220 0 0.0
RAM 139129 139129 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 949252 949252 0 0.0
RAM 137557 137557 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822420 822420 0 0.0
RAM 138027 138027 0 0.0
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590744 590744 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609696 609696 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674232 674232 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613444 1613444 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650600 650600 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610708 610708 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472136 472136 0 0.0
RAM 141652 141652 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1624080 1624080 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15867258 15867258 0 0.0
RAM 6966668 6966668 0 0.0

@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from 64f79f6 to 1e0aadc Compare June 19, 2024 07:22
Copy link

github-actions bot commented Jun 19, 2024

PR #33989: Size comparison from f6ac926 to 1e0aadc

Full report (49 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
platform target config section f6ac926 1e0aadc change % change
bl602 lighting-app bl602 FLASH 1270534 1270534 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284812 1284812 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309734 1309734 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091430 1091430 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102124 1102124 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181240 1181240 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874774 874774 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127068 1127068 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078316 1078316 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089578 1089578 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798100 798100 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813760 813760 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803276 803276 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756068 756068 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741732 741732 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661697 661697 0 0.0
RAM 74512 74512 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638477 638477 0 0.0
RAM 69580 69580 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604145 604145 0 0.0
RAM 70216 70216 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619649 619649 0 0.0
RAM 73232 73232 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 588213 0 0.0
RAM 67200 67200 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
linux chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10690980 10690980 0 0.0
RAM 583416 583416 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4154964 4154964 0 0.0
RAM 234608 234608 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497468 1497468 0 0.0
RAM 226072 226072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876220 876220 0 0.0
RAM 139129 139129 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 949252 949252 0 0.0
RAM 137557 137557 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822420 822420 0 0.0
RAM 138027 138027 0 0.0
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590744 590744 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609696 609696 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674232 674232 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613444 1613444 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650600 650600 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610708 610708 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472136 472136 0 0.0
RAM 141652 141652 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1624080 1624080 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15867258 15867258 0 0.0
RAM 6966668 6966668 0 0.0

@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from 1e0aadc to dc04fc2 Compare June 19, 2024 08:21
@agners agners changed the title WIP: [Python] Convert async API functions to python asyncio [Python] Convert async API functions to python asyncio Jun 19, 2024
@agners agners marked this pull request as ready for review June 19, 2024 08:21
Copy link

github-actions bot commented Jun 19, 2024

PR #33989: Size comparison from f6ac926 to dc04fc2

Full report (49 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, tizen)
platform target config section f6ac926 dc04fc2f change % change
bl602 lighting-app bl602 FLASH 1270534 1270534 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284812 1284812 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309734 1309734 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091430 1091430 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102124 1102124 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181240 1181240 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874774 874774 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127068 1127068 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078316 1078316 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089578 1089578 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798100 798100 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813760 813760 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803276 803276 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756068 756068 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741732 741732 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661697 661697 0 0.0
RAM 74512 74512 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638477 638477 0 0.0
RAM 69580 69580 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604145 604145 0 0.0
RAM 70216 70216 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619649 619649 0 0.0
RAM 73232 73232 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 588213 0 0.0
RAM 67200 67200 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
linux chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10690980 10690980 0 0.0
RAM 583416 583416 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4154964 4154964 0 0.0
RAM 234608 234608 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497468 1497468 0 0.0
RAM 226072 226072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876220 876220 0 0.0
RAM 139129 139129 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 949252 949252 0 0.0
RAM 137557 137557 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822420 822420 0 0.0
RAM 138027 138027 0 0.0
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590744 590744 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609696 609696 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674232 674232 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613444 1613444 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650600 650600 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610708 610708 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472136 472136 0 0.0
RAM 141652 141652 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1624080 1624080 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15867258 15867258 0 0.0
RAM 6966668 6966668 0 0.0

agners added 11 commits June 19, 2024 17:11
Use a context manager to handle the commissioning process in the
device controller. This will ensure that the commissioning resources
are properly cleaned up after completion and removes boiler plate
code.

Also clear fabricCheckNodeId and mark it internal use by adding the
underline prefix.

Also call pychip_ScriptDevicePairingDelegate_SetExpectingPairingComplete
directly on the Python Thread, as this is an atomic operation. This is
will also be more asyncio friendly as it is guaranteed to not block.
Use context managers for all APIs which wait for callbacks. This
allows to cleanly wrap the future and add additional handling e.g.
locks for asyncio in the future.
Make all commissioning APIs async functions. This avoids the need
to use run_in_executor() to call them from asyncio code in a non-
blocking way.
Make sure that different asyncio tasks do not run the same function
concurrently. This is done by adding an asyncio lock to functions
which use callbacks.
@agners agners force-pushed the convert-async-commands-to-python-asyncio branch from 907e2bf to 61d0b1b Compare June 19, 2024 15:12
Copy link

github-actions bot commented Jun 19, 2024

PR #33989: Size comparison from 38f664f to 864519d

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 38f664f 864519d change % change
bl602 lighting-app bl602 FLASH 1270534 1270534 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284812 1284812 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309734 1309734 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091430 1091430 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102124 1102124 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181240 1181240 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874774 874774 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127068 1127068 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078316 1078316 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089578 1089578 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798100 798100 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813760 813760 0 0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803276 803276 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756068 756068 0 0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741732 741732 0 0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661697 661697 0 0.0
RAM 74512 74512 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681541 681541 0 0.0
RAM 77144 77144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638477 638477 0 0.0
RAM 69580 69580 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604145 604145 0 0.0
RAM 70216 70216 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623781 623781 0 0.0
RAM 72768 72768 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619649 619649 0 0.0
RAM 73232 73232 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639365 639365 0 0.0
RAM 75784 75784 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 588213 0 0.0
RAM 67200 67200 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 608073 0 0.0
RAM 69832 69832 0 0.0
efr32 lighting-app BRD4187C FLASH 888264 888256 -8 -0.0
RAM 183424 183424 0 0.0
lock-app BRD4338a FLASH 699848 699848 0 0.0
RAM 242228 242228 0 0.0
window-app BRD4187C FLASH 969748 969748 0 0.0
RAM 167856 167856 0 0.0
esp32 all-clusters-app c3devkit DRAM 88324 88324 0 0.0
FLASH 1468934 1468934 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114796 114796 0 0.0
FLASH 1538063 1538063 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4568 4568 0 0.0
FLASH 2516608 2516608 0 0.0
RAM 123760 123760 0 0.0
all-clusters-app debug unknown 5344 5344 0 0.0
FLASH 5565742 5565742 0 0.0
RAM 477960 477960 0 0.0
all-clusters-minimal-app debug unknown 5264 5264 0 0.0
FLASH 5039112 5039112 0 0.0
RAM 231512 231512 0 0.0
bridge-app debug unknown 5232 5232 0 0.0
FLASH 4464792 4464792 0 0.0
RAM 211424 211424 0 0.0
chip-tool debug unknown 5720 5720 0 0.0
FLASH 11539575 11539575 0 0.0
RAM 530138 530138 0 0.0
chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10671364 10671364 0 0.0
RAM 578928 578928 0 0.0
fabric-admin debug unknown 5576 5576 0 0.0
FLASH 10538503 10538503 0 0.0
RAM 524154 524154 0 0.0
fabric-bridge-app debug unknown 5240 5240 0 0.0
FLASH 4335368 4335368 0 0.0
RAM 203552 203552 0 0.0
lighting-app debug+rpc+ui unknown 5880 5880 0 0.0
FLASH 5361122 5361122 0 0.0
RAM 220328 220328 0 0.0
lock-app debug unknown 5168 5168 0 0.0
FLASH 4528424 4528424 0 0.0
RAM 198880 198880 0 0.0
ota-provider-app debug unknown 4552 4552 0 0.0
FLASH 4184200 4184200 0 0.0
RAM 193216 193216 0 0.0
ota-requestor-app debug unknown 4488 4488 0 0.0
FLASH 4309688 4309688 0 0.0
RAM 197872 197872 0 0.0
shell debug unknown 4104 4104 0 0.0
FLASH 2784029 2784029 0 0.0
RAM 149104 149104 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4154964 4154964 0 0.0
RAM 234608 234608 0 0.0
tv-app debug unknown 5456 5456 0 0.0
FLASH 5582024 5582024 0 0.0
RAM 340360 340360 0 0.0
tv-casting-app debug unknown 5080 5080 0 0.0
FLASH 9584582 9584582 0 0.0
RAM 347504 347504 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1497468 1497468 0 0.0
RAM 226072 226072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876220 876220 0 0.0
RAM 139129 139129 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 949252 949252 0 0.0
RAM 137557 137557 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822420 822420 0 0.0
RAM 138027 138027 0 0.0
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590744 590744 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609696 609696 0 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674232 674232 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613444 1613444 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650600 650600 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610708 610708 0 0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472136 472136 0 0.0
RAM 141652 141652 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 625548 625548 0 0.0
RAM 49904 49904 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 602588 602588 0 0.0
RAM 130288 130288 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 770710 770710 0 0.0
RAM 110052 110052 0 0.0
bridge-app tlsr9258a FLASH 668634 668634 0 0.0
RAM 94672 94672 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 627270 627270 0 0.0
RAM 49948 49948 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 713384 713384 0 0.0
RAM 76540 76540 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 558256 558256 0 0.0
RAM 126544 126544 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 793336 793336 0 0.0
RAM 99900 99900 0 0.0
lock-app-dfu tlsr9528a FLASH 660372 660372 0 0.0
RAM 69228 69228 0 0.0
ota-requestor-app tlsr9258a FLASH 687252 687252 0 0.0
RAM 94396 94396 0 0.0
pump-app tlsr9518adk80d FLASH 609490 609490 0 0.0
RAM 56328 56328 0 0.0
pump-controller-app tlsr9518adk80d FLASH 599876 599876 0 0.0
RAM 56128 56128 0 0.0
shell tlsr9518adk80d FLASH 462614 462614 0 0.0
RAM 71852 71852 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 633632 633632 0 0.0
RAM 51576 51576 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642990 642990 0 0.0
RAM 59764 59764 0 0.0
thermostat tlsr9518adk80d FLASH 618766 618766 0 0.0
RAM 56452 56452 0 0.0
window-covering tlsr9118bdk40d FLASH 464958 464958 0 0.0
RAM 82224 82224 0 0.0
tizen all-clusters-app arm unknown 1548 1548 0 0.0
FLASH 1624080 1624080 0 0.0
RAM 45420 45420 0 0.0
chip-tool-ubsan arm unknown 2360 2360 0 0.0
FLASH 15867258 15867258 0 0.0
RAM 6966668 6966668 0 0.0

Copy link

github-actions bot commented Jun 20, 2024

PR #33989: Size comparison from 38f664f to b29e0cf

Increases above 0.2%:

platform target config section 38f664f b29e0cf change % change
cyw30739 light CYW30739B2-P5-EVK-01 FLASH 661697 665865 4168 0.6
RAM 74512 75100 588 0.8
CYW30739B2-P5-EVK-02 FLASH 681541 685725 4184 0.6
RAM 77144 77732 588 0.8
CYW30739B2-P5-EVK-03 FLASH 681541 685725 4184 0.6
RAM 77144 77732 588 0.8
CYW930739M2EVB-02 FLASH 638477 642653 4176 0.7
RAM 69580 70168 588 0.8
light-switch CYW30739B2-P5-EVK-01 FLASH 604145 608337 4192 0.7
RAM 70216 70804 588 0.8
CYW30739B2-P5-EVK-02 FLASH 623781 627965 4184 0.7
RAM 72768 73356 588 0.8
CYW30739B2-P5-EVK-03 FLASH 623781 627965 4184 0.7
RAM 72768 73356 588 0.8
lock CYW30739B2-P5-EVK-01 FLASH 619649 623817 4168 0.7
RAM 73232 73820 588 0.8
CYW30739B2-P5-EVK-02 FLASH 639365 643533 4168 0.7
RAM 75784 76372 588 0.8
CYW30739B2-P5-EVK-03 FLASH 639365 643533 4168 0.7
RAM 75784 76372 588 0.8
thermostat CYW30739B2-P5-EVK-01 FLASH 588213 592389 4176 0.7
RAM 67200 67788 588 0.9
CYW30739B2-P5-EVK-02 FLASH 608073 612233 4160 0.7
RAM 69832 70420 588 0.8
CYW30739B2-P5-EVK-03 FLASH 608073 612233 4160 0.7
RAM 69832 70420 588 0.8
linux air-purifier-app debug unknown 4568 4592 24 0.5
FLASH 2516608 2528192 11584 0.5
RAM 123760 125072 1312 1.1
all-clusters-app debug unknown 5344 5368 24 0.4
FLASH 5565742 5578270 12528 0.2
RAM 477960 479304 1344 0.3
all-clusters-minimal-app debug unknown 5264 5288 24 0.5
FLASH 5039112 5050696 11584 0.2
RAM 231512 232856 1344 0.6
bridge-app debug unknown 5232 5256 24 0.5
FLASH 4464792 4476408 11616 0.3
RAM 211424 212768 1344 0.6
chip-tool debug RAM 530138 531386 1248 0.2
fabric-admin debug RAM 524154 525466 1312 0.3
fabric-bridge-app debug unknown 5240 5264 24 0.5
FLASH 4335368 4346936 11568 0.3
RAM 203552 204896 1344 0.7
lighting-app debug+rpc+ui unknown 5880 5904 24 0.4
FLASH 5361122 5372770 11648 0.2
RAM 220328 221672 1344 0.6
lock-app debug unknown 5168 5192 24 0.5
FLASH 4528424 4540008 11584 0.3
RAM 198880 200192 1312 0.7
ota-provider-app debug unknown 4552 4576 24 0.5
FLASH 4184200 4195768 11568 0.3
RAM 193216 194432 1216 0.6
ota-requestor-app debug unknown 4488 4512 24 0.5
FLASH 4309688 4321256 11568 0.3
RAM 197872 199088 1216 0.6
shell debug FLASH 2784029 2793965 9936 0.4
RAM 149104 150416 1312 0.9
thermostat-no-ble arm64 FLASH 4154964 4167060 12096 0.3
RAM 234608 235784 1176 0.5
tv-app debug unknown 5456 5472 16 0.3
FLASH 5582024 5593624 11600 0.2
RAM 340360 341672 1312 0.4
tv-casting-app debug unknown 5080 5096 16 0.3
RAM 347504 348848 1344 0.4
mbed lock-app-release cy8cproto_062_4343w FLASH 1497468 1502020 4552 0.3
RAM 226072 226672 600 0.3
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876220 880892 4672 0.5
RAM 139129 139693 564 0.4
nrf7002dk_nrf5340_cpuapp FLASH 949252 951704 2452 0.3
RAM 137557 138121 564 0.4
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822420 826448 4028 0.5
RAM 138027 138591 564 0.4
telink air-quality-sensor-app tlsr9528a_retention FLASH 625548 627772 2224 0.4
RAM 49904 50464 560 1.1
all-clusters-app tlsr9118bdk40d FLASH 602588 605322 2734 0.5
RAM 130288 130836 548 0.4
all-clusters-minimal-app tlsr9528a FLASH 770710 772958 2248 0.3
RAM 110052 110620 568 0.5
bridge-app tlsr9258a FLASH 668634 670882 2248 0.3
RAM 94672 95240 568 0.6
contact-sensor-app tlsr9528a_retention FLASH 627270 629494 2224 0.4
RAM 49948 50508 560 1.1
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 713384 715632 2248 0.3
RAM 76540 77100 560 0.7
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 558256 560504 2248 0.4
RAM 126544 127084 540 0.4
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 793336 795584 2248 0.3
RAM 99900 100460 560 0.6
lock-app-dfu tlsr9528a FLASH 660372 662622 2250 0.3
RAM 69228 69796 568 0.8
ota-requestor-app tlsr9258a FLASH 687252 689500 2248 0.3
RAM 94396 94964 568 0.6
pump-app tlsr9518adk80d FLASH 609490 611740 2250 0.4
RAM 56328 56888 560 1.0
pump-controller-app tlsr9518adk80d FLASH 599876 602124 2248 0.4
RAM 56128 56688 560 1.0
shell tlsr9518adk80d FLASH 462614 463906 1292 0.3
RAM 71852 72420 568 0.8
smoke_co_alarm-app tlsr9528a_retention FLASH 633632 635856 2224 0.4
RAM 51576 52136 560 1.1
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642990 645240 2250 0.3
RAM 59764 60324 560 0.9
thermostat tlsr9518adk80d FLASH 618766 621014 2248 0.4
RAM 56452 57020 568 1.0
window-covering tlsr9118bdk40d FLASH 464958 467208 2250 0.5
RAM 82224 82764 540 0.7
tizen all-clusters-app arm unknown 1548 1560 12 0.8
FLASH 1624080 1633264 9184 0.6
RAM 45420 46020 600 1.3
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 38f664f b29e0cf change % change
bl602 lighting-app bl602 FLASH 1270534 1270534 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1284812 1284812 0 0.0
RAM 95480 95480 0 0.0
bl602+rpc FLASH 1309734 1309734 0 0.0
RAM 103760 103760 0 0.0
bl702 lighting-app bl702 FLASH 1091430 1091430 0 0.0
RAM 14897 14897 0 0.0
bl702+mfd FLASH 1102124 1102124 0 0.0
RAM 15049 15049 0 0.0
bl702+rpc FLASH 1181240 1181240 0 0.0
RAM 23925 23925 0 0.0
bl706-eth FLASH 874774 874774 0 0.0
RAM 27016 27016 0 0.0
bl706-wifi FLASH 1127068 1127068 0 0.0
RAM 14349 14349 0 0.0
bl702l lighting-app bl702l FLASH 1078316 1078316 0 0.0
RAM 21468 21468 0 0.0
bl702l+mfd FLASH 1089578 1089578 0 0.0
RAM 21628 21628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798100 798100 0 0.0
RAM 103088 103088 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 813760 813752 -8 -0.0
RAM 113568 113568 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 803276 803276 0 0.0
RAM 107688 107688 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 756068 756052 -16 -0.0
RAM 101788 101788 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 741732 741724 -8 -0.0
RAM 102036 102036 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 605750 605750 0 0.0
RAM 204512 204512 0 0.0
lock CC3235SF_LAUNCHXL FLASH 650770 650770 0 0.0
RAM 204772 204772 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661697 665865 4168 0.6
RAM 74512 75100 588 0.8
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681541 685725 4184 0.6
RAM 77144 77732 588 0.8
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681541 685725 4184 0.6
RAM 77144 77732 588 0.8
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638477 642653 4176 0.7
RAM 69580 70168 588 0.8
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 604145 608337 4192 0.7
RAM 70216 70804 588 0.8
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 623781 627965 4184 0.7
RAM 72768 73356 588 0.8
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 623781 627965 4184 0.7
RAM 72768 73356 588 0.8
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619649 623817 4168 0.7
RAM 73232 73820 588 0.8
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639365 643533 4168 0.7
RAM 75784 76372 588 0.8
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639365 643533 4168 0.7
RAM 75784 76372 588 0.8
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 588213 592389 4176 0.7
RAM 67200 67788 588 0.9
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 608073 612233 4160 0.7
RAM 69832 70420 588 0.8
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 608073 612233 4160 0.7
RAM 69832 70420 588 0.8
efr32 lighting-app BRD4187C FLASH 888264 888224 -40 -0.0
RAM 183424 183424 0 0.0
lock-app BRD4338a FLASH 699848 699848 0 0.0
RAM 242228 242228 0 0.0
window-app BRD4187C FLASH 969748 969748 0 0.0
RAM 167856 167856 0 0.0
esp32 all-clusters-app c3devkit DRAM 88324 88324 0 0.0
FLASH 1468934 1468934 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 114796 114796 0 0.0
FLASH 1538063 1538059 -4 -0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4568 4592 24 0.5
FLASH 2516608 2528192 11584 0.5
RAM 123760 125072 1312 1.1
all-clusters-app debug unknown 5344 5368 24 0.4
FLASH 5565742 5578270 12528 0.2
RAM 477960 479304 1344 0.3
all-clusters-minimal-app debug unknown 5264 5288 24 0.5
FLASH 5039112 5050696 11584 0.2
RAM 231512 232856 1344 0.6
bridge-app debug unknown 5232 5256 24 0.5
FLASH 4464792 4476408 11616 0.3
RAM 211424 212768 1344 0.6
chip-tool debug unknown 5720 5728 8 0.1
FLASH 11539575 11548231 8656 0.1
RAM 530138 531386 1248 0.2
chip-tool-ipv6only arm64 unknown 19816 19816 0 0.0
FLASH 10671364 10680388 9024 0.1
RAM 578928 580120 1192 0.2
fabric-admin debug unknown 5576 5584 8 0.1
FLASH 10538503 10547127 8624 0.1
RAM 524154 525466 1312 0.3
fabric-bridge-app debug unknown 5240 5264 24 0.5
FLASH 4335368 4346936 11568 0.3
RAM 203552 204896 1344 0.7
lighting-app debug+rpc+ui unknown 5880 5904 24 0.4
FLASH 5361122 5372770 11648 0.2
RAM 220328 221672 1344 0.6
lock-app debug unknown 5168 5192 24 0.5
FLASH 4528424 4540008 11584 0.3
RAM 198880 200192 1312 0.7
ota-provider-app debug unknown 4552 4576 24 0.5
FLASH 4184200 4195768 11568 0.3
RAM 193216 194432 1216 0.6
ota-requestor-app debug unknown 4488 4512 24 0.5
FLASH 4309688 4321256 11568 0.3
RAM 197872 199088 1216 0.6
shell debug unknown 4104 4112 8 0.2
FLASH 2784029 2793965 9936 0.4
RAM 149104 150416 1312 0.9
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4154964 4167060 12096 0.3
RAM 234608 235784 1176 0.5
tv-app debug unknown 5456 5472 16 0.3
FLASH 5582024 5593624 11600 0.2
RAM 340360 341672 1312 0.4
tv-casting-app debug unknown 5080 5096 16 0.3
FLASH 9584582 9595926 11344 0.1
RAM 347504 348848 1344 0.4
mbed lock-app-release cy8cproto_062_4343w FLASH 1497468 1502020 4552 0.3
RAM 226072 226672 600 0.3
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 876220 880892 4672 0.5
RAM 139129 139693 564 0.4
nrf7002dk_nrf5340_cpuapp FLASH 949252 951704 2452 0.3
RAM 137557 138121 564 0.4
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 822420 826448 4028 0.5
RAM 138027 138591 564 0.4
nxp contact k32w0+release FLASH 575604 575604 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 590744 590728 -16 -0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 609696 609680 -16 -0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 674232 674232 0 0.0
RAM 82808 82808 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1613444 1613444 0 0.0
RAM 207132 207132 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1534228 1534228 0 0.0
RAM 204036 204036 0 0.0
light cy8ckit_062s2_43012 FLASH 1461092 1461092 0 0.0
RAM 197316 197316 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462844 1462844 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 650600 650600 0 0.0
RAM 104556 104556 0 0.0
lock-app qpg6105+debug FLASH 610708 610700 -8 -0.0
RAM 99232 99232 0 0.0
stm32 light STM32WB5MM-DK FLASH 472136 472136 0 0.0
RAM 141652 141652 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 625548 627772 2224 0.4
RAM 49904 50464 560 1.1
all-clusters-app tlsr9118bdk40d FLASH 602588 605322 2734 0.5
RAM 130288 130836 548 0.4
all-clusters-minimal-app tlsr9528a FLASH 770710 772958 2248 0.3
RAM 110052 110620 568 0.5
bridge-app tlsr9258a FLASH 668634 670882 2248 0.3
RAM 94672 95240 568 0.6
contact-sensor-app tlsr9528a_retention FLASH 627270 629494 2224 0.4
RAM 49948 50508 560 1.1
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 713384 715632 2248 0.3
RAM 76540 77100 560 0.7
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 558256 560504 2248 0.4
RAM 126544 127084 540 0.4
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 793336 795584 2248 0.3
RAM 99900 100460 560 0.6
lock-app-dfu tlsr9528a FLASH 660372 662622 2250 0.3
RAM 69228 69796 568 0.8
ota-requestor-app tlsr9258a FLASH 687252 689500 2248 0.3
RAM 94396 94964 568 0.6
pump-app tlsr9518adk80d FLASH 609490 611740 2250 0.4
RAM 56328 56888 560 1.0
pump-controller-app tlsr9518adk80d FLASH 599876 602124 2248 0.4
RAM 56128 56688 560 1.0
shell tlsr9518adk80d FLASH 462614 463906 1292 0.3
RAM 71852 72420 568 0.8
smoke_co_alarm-app tlsr9528a_retention FLASH 633632 635856 2224 0.4
RAM 51576 52136 560 1.1
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 642990 645240 2250 0.3
RAM 59764 60324 560 0.9
thermostat tlsr9518adk80d FLASH 618766 621014 2248 0.4
RAM 56452 57020 568 1.0
window-covering tlsr9118bdk40d FLASH 464958 467208 2250 0.5
RAM 82224 82764 540 0.7
tizen all-clusters-app arm unknown 1548 1560 12 0.8
FLASH 1624080 1633264 9184 0.6
RAM 45420 46020 600 1.3
chip-tool-ubsan arm unknown 2360 2364 4 0.2
FLASH 15867258 15881842 14584 0.1
RAM 6966668 6972008 5340 0.1

@mergify mergify bot merged commit e407d40 into project-chip:master Jun 20, 2024
68 checks passed
agners added a commit to agners/chip-wheels that referenced this pull request Jun 20, 2024
This adds commissioning API updates from the master branch to our 1.3
based branch. This makes the commissioning API more Pythonic and allows
to call them from the asyncio event loop directly.

Specifically, this integrates changes from the following PRs
- project-chip/connectedhomeip#33954
- project-chip/connectedhomeip#33905
- project-chip/connectedhomeip#34011
- project-chip/connectedhomeip#34001
- project-chip/connectedhomeip#33989
agners added a commit to home-assistant-libs/chip-wheels that referenced this pull request Jun 20, 2024
This adds commissioning API updates from the master branch to our 1.3
based branch. This makes the commissioning API more Pythonic and allows
to call them from the asyncio event loop directly.

Specifically, this integrates changes from the following PRs
- project-chip/connectedhomeip#33954
- project-chip/connectedhomeip#33905
- project-chip/connectedhomeip#34001
- project-chip/connectedhomeip#33989
austina-csa pushed a commit to austina-csa/connectedhomeip that referenced this pull request Jul 10, 2024
…33989)

* [Python] Use context manager for Commissioning

Use a context manager to handle the commissioning process in the
device controller. This will ensure that the commissioning resources
are properly cleaned up after completion and removes boiler plate
code.

Also clear fabricCheckNodeId and mark it internal use by adding the
underline prefix.

Also call pychip_ScriptDevicePairingDelegate_SetExpectingPairingComplete
directly on the Python Thread, as this is an atomic operation. This is
will also be more asyncio friendly as it is guaranteed to not block.

* [Python] Use context manager for all callbacks

Use context managers for all APIs which wait for callbacks. This
allows to cleanly wrap the future and add additional handling e.g.
locks for asyncio in the future.

* [Python] Convert commissioning APIs to async functions

Make all commissioning APIs async functions. This avoids the need
to use run_in_executor() to call them from asyncio code in a non-
blocking way.

* [Python] Convert UnpairDevice/OpenCommissioningWindow to asyncio

* [Python] Convert EstablishPASESession to asyncio

* [Python] Convert IssueNOCChain to asyncio

* [Python] Add locking to prevent concurrent access with asyncio

Make sure that different asyncio tasks do not run the same function
concurrently. This is done by adding an asyncio lock to functions
which use callbacks.

* [Python] Raise an exception if the future did not complete

* [Python] Convert tests in src/controller/python/ to asyncio

* [Python] Convert tests in src/python_testing/ to asyncio

* Adjust yamltest_with_chip_repl_tester to use asyncio

* [Python] Add documentation to the new context managers

* [Python] Use asyncio.run() to run async tests
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.

3 participants