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

Add checks for OffWithEffect command parameters contraints #34396

Merged

Conversation

jmartinez-silabs
Copy link
Member

fixes #34214

It was possible to pass invalid enum values to the OffWithEffect command from the on-off cluster.

Add checks against the passed arguments in the command handler

  • handle the effectVariant parameter range variation depending on the effectId parameter.

Note the On-Off cluster test plan must be expanded to test invalid parameter handling.

Manually tested with chip-tool and efr32 lighting-app.
Invalid effectVariant when effectId is DelayedAllOff

./chip-tool onoff off-with-effect 0 10 $NODE_ID 1
[1721319091.737648][24180:24182] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 Status=0x87
[1721319091.737713][24180:24182] CHIP:TOO: Error: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)

Valid effectVariant when effectId is DelayedAllOff

./chip-tool onoff off-with-effect 0 2 $NODE_ID 1
[1721319152.105680][24187:24189] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 Status=0x0

Invalid effectId

./chip-tool onoff off-with-effect 2 2 $NODE_ID 1
[1721319203.173323][24194:24196] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 Status=0x87
[1721319203.173389][24194:24196] CHIP:TOO: Error: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)

Invalid effectVariant when effectId is DyingLight

./chip-tool  onoff off-with-effect 1 2 $NODE_ID 1
[1721319220.474435][24200:24202] CHIP:DMG: Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 Status=0x87
[1721319220.474514][24200:24202] CHIP:TOO: Error: IM Error 0x00000587: General error: 0x87 (CONSTRAINT_ERROR)

Valid effectVariant when effectId is DyingLight

./chip-tool onoff off-with-effect 1 0 $NODE_ID 1
 Received Command Response Status for Endpoint=1 Cluster=0x0000_0006 Command=0x0000_0040 Status=0x0

Copy link

github-actions bot commented Jul 18, 2024

PR #34396: Size comparison from 99ea3e6 to a74b4ce

Full report (81 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
platform target config section 99ea3e6 a74b4ce change % change
bl602 lighting-app bl602 FLASH 1271594 1271850 256 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1286108 1286108 0 0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1310810 1310810 0 0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1092702 1092702 0 0.0
RAM 15161 15161 0 0.0
bl702+mfd FLASH 1103396 1103652 256 0.0
RAM 15313 15313 0 0.0
bl702+rpc FLASH 1182512 1182768 256 0.0
RAM 24181 24181 0 0.0
bl706-eth FLASH 875834 876090 256 0.0
RAM 27272 27272 0 0.0
bl706-wifi FLASH 1128248 1128248 0 0.0
RAM 14605 14605 0 0.0
bl702l lighting-app bl702l FLASH 1079588 1079844 256 0.0
RAM 21732 21732 0 0.0
bl702l+mfd FLASH 1090850 1091106 256 0.0
RAM 21892 21892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798700 798732 32 0.0
RAM 109180 109180 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816572 816572 0 0.0
RAM 116948 116948 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808356 808356 0 0.0
RAM 111236 111236 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761036 761036 0 0.0
RAM 105328 105328 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746756 746756 0 0.0
RAM 105576 105576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606538 606538 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651870 651870 0 0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 667809 667841 32 0.0
RAM 77644 77644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687669 687701 32 0.0
RAM 80276 80276 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687669 687701 32 0.0
RAM 80276 80276 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644597 644629 32 0.0
RAM 72712 72712 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609425 609425 0 0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629053 629053 0 0.0
RAM 73356 73356 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629053 629053 0 0.0
RAM 73356 73356 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625145 625145 0 0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644861 644861 0 0.0
RAM 76372 76372 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644861 644861 0 0.0
RAM 76372 76372 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593525 593525 0 0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613369 613369 0 0.0
RAM 70420 70420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613369 613369 0 0.0
RAM 70420 70420 0 0.0
efr32 lighting-app BRD4187C FLASH 924772 924796 24 0.0
RAM 137528 137528 0 0.0
lock-app BRD4338a FLASH 733972 733964 -8 -0.0
RAM 207892 207892 0 0.0
window-app BRD4187C FLASH 1012764 1012764 0 0.0
RAM 129632 129632 0 0.0
esp32 all-clusters-app c3devkit DRAM 90924 90924 0 0.0
FLASH 1471186 1471216 30 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117404 117404 0 0.0
FLASH 1540087 1540119 32 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4624 4624 0 0.0
FLASH 2628137 2628137 0 0.0
RAM 124496 124496 0 0.0
all-clusters-app debug unknown 5392 5392 0 0.0
FLASH 5761186 5761516 330 0.0
RAM 493984 493984 0 0.0
all-clusters-minimal-app debug unknown 5304 5304 0 0.0
FLASH 5219070 5219400 330 0.0
RAM 234992 234992 0 0.0
bridge-app debug unknown 5288 5288 0 0.0
FLASH 4615802 4615802 0 0.0
RAM 212256 212256 0 0.0
chip-tool debug unknown 5776 5776 0 0.0
FLASH 12220800 12220800 0 0.0
RAM 548018 548018 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11233873 11233873 0 0.0
RAM 544858 544858 0 0.0
fabric-bridge-app debug unknown 4560 4560 0 0.0
FLASH 4363598 4363598 0 0.0
RAM 198272 198272 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5540177 5540497 320 0.0
RAM 223520 223520 0 0.0
lock-app debug unknown 5224 5224 0 0.0
FLASH 4674748 4674748 0 0.0
RAM 199952 199952 0 0.0
ota-provider-app debug unknown 4600 4600 0 0.0
FLASH 4316808 4316808 0 0.0
RAM 194128 194128 0 0.0
ota-requestor-app debug unknown 4536 4536 0 0.0
FLASH 4455394 4455724 330 0.0
RAM 198680 198680 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2905021 2905357 336 0.0
RAM 152920 152920 0 0.0
tv-app debug unknown 5496 5496 0 0.0
FLASH 5816815 5816815 0 0.0
RAM 341360 341360 0 0.0
tv-casting-app debug unknown 5160 5160 0 0.0
FLASH 10361821 10361821 0 0.0
RAM 402232 402232 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503044 1503044 0 0.0
RAM 226648 226648 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 883200 883232 32 0.0
RAM 142259 142259 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 953540 953572 32 0.0
RAM 140687 140687 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 828264 828296 32 0.0
RAM 141123 141123 0 0.0
nxp contact k32w0+release FLASH 576164 576164 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 591648 591648 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 610512 610544 32 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 675288 675320 32 0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1616036 1616148 112 0.0
RAM 209764 209764 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1536556 1536668 112 0.0
RAM 206588 206588 0 0.0
light cy8ckit_062s2_43012 FLASH 1463164 1463276 112 0.0
RAM 199876 199876 0 0.0
lock cy8ckit_062s2_43012 FLASH 1463900 1463900 0 0.0
RAM 224388 224388 0 0.0
qpg lighting-app qpg6105+debug FLASH 651556 651588 32 0.0
RAM 104564 104564 0 0.0
lock-app qpg6105+debug FLASH 612088 612088 0 0.0
RAM 99240 99240 0 0.0
stm32 light STM32WB5MM-DK FLASH 473880 473912 32 0.0
RAM 144196 144196 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633066 633066 0 0.0
RAM 50528 50528 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658954 658984 30 0.0
RAM 148436 148436 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779226 779256 30 0.0
RAM 113212 113212 0 0.0
bridge-app tlsr9258a FLASH 676058 676058 0 0.0
RAM 95304 95304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634650 634650 0 0.0
RAM 50572 50572 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720510 720510 0 0.0
RAM 77148 77148 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614030 614060 30 0.0
RAM 144636 144636 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801812 801842 30 0.0
RAM 103040 103040 0 0.0
lock-app-dfu tlsr9528a FLASH 666466 666466 0 0.0
RAM 69852 69852 0 0.0
ota-requestor-app tlsr9258a FLASH 695390 695420 30 0.0
RAM 95028 95028 0 0.0
pump-app tlsr9518adk80d FLASH 616924 616924 0 0.0
RAM 56952 56952 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607308 607308 0 0.0
RAM 56752 56752 0 0.0
shell tlsr9518adk80d FLASH 466438 466438 0 0.0
RAM 72484 72484 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641268 641268 0 0.0
RAM 52200 52200 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651134 651134 0 0.0
RAM 60388 60388 0 0.0
thermostat tlsr9518adk80d FLASH 626198 626198 0 0.0
RAM 57084 57084 0 0.0
window-covering tlsr9118bdk40d FLASH 519424 519424 0 0.0
RAM 97800 97800 0 0.0

@jmartinez-silabs jmartinez-silabs force-pushed the fix/onoff_with_effect_variant branch from 2230a1a to 4ed3d8b Compare July 18, 2024 19:13
Copy link

github-actions bot commented Jul 18, 2024

PR #34396: Size comparison from c7659cb to 4ed3d8b

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 c7659cb 4ed3d8b change % change
bl602 lighting-app bl602 FLASH 1271688 1271944 256 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1286202 1286202 0 0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1310904 1310904 0 0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1092796 1092796 0 0.0
RAM 15161 15161 0 0.0
bl702+mfd FLASH 1103490 1103746 256 0.0
RAM 15313 15313 0 0.0
bl702+rpc FLASH 1182606 1182862 256 0.0
RAM 24181 24181 0 0.0
bl706-eth FLASH 875928 876184 256 0.0
RAM 27272 27272 0 0.0
bl706-wifi FLASH 1128360 1128360 0 0.0
RAM 14605 14605 0 0.0
bl702l lighting-app bl702l FLASH 1079682 1079938 256 0.0
RAM 21732 21732 0 0.0
bl702l+mfd FLASH 1090944 1091200 256 0.0
RAM 21892 21892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798780 798812 32 0.0
RAM 109180 109180 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816572 816572 0 0.0
RAM 116948 116948 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808436 808436 0 0.0
RAM 111236 111236 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761116 761116 0 0.0
RAM 105328 105328 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746828 746828 0 0.0
RAM 105576 105576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606634 606634 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651974 651974 0 0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 667913 667953 40 0.0
RAM 77644 77644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687765 687805 40 0.0
RAM 80276 80276 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687765 687805 40 0.0
RAM 80276 80276 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644701 644741 40 0.0
RAM 72712 72712 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609529 609529 0 0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629157 629157 0 0.0
RAM 73356 73356 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629157 629157 0 0.0
RAM 73356 73356 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625249 625249 0 0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644957 644957 0 0.0
RAM 76372 76372 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644957 644957 0 0.0
RAM 76372 76372 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593621 593621 0 0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613465 613465 0 0.0
RAM 70420 70420 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613465 613465 0 0.0
RAM 70420 70420 0 0.0
efr32 lighting-app BRD4187C FLASH 924860 924884 24 0.0
RAM 137528 137528 0 0.0
lock-app BRD4338a FLASH 734060 734052 -8 -0.0
RAM 207892 207892 0 0.0
window-app BRD4187C FLASH 1012852 1012852 0 0.0
RAM 129632 129632 0 0.0
esp32 all-clusters-app c3devkit DRAM 90924 90924 0 0.0
FLASH 1471274 1471308 34 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117404 117404 0 0.0
FLASH 1540167 1540215 48 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4624 4624 0 0.0
FLASH 2628517 2628517 0 0.0
RAM 124496 124496 0 0.0
all-clusters-app debug unknown 5392 5392 0 0.0
FLASH 5761538 5761794 256 0.0
RAM 493984 493984 0 0.0
all-clusters-minimal-app debug unknown 5304 5304 0 0.0
FLASH 5219422 5219678 256 0.0
RAM 234992 234992 0 0.0
bridge-app debug unknown 5288 5288 0 0.0
FLASH 4616154 4616154 0 0.0
RAM 212256 212256 0 0.0
chip-tool debug unknown 5776 5776 0 0.0
FLASH 12221152 12221152 0 0.0
RAM 548018 548018 0 0.0
chip-tool-ipv6only arm64 unknown 20144 20144 0 0.0
FLASH 10916540 10916540 0 0.0
RAM 597872 597872 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11234193 11234193 0 0.0
RAM 544858 544858 0 0.0
fabric-bridge-app debug unknown 4560 4560 0 0.0
FLASH 4363918 4363918 0 0.0
RAM 198272 198272 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5540497 5540753 256 0.0
RAM 223520 223520 0 0.0
lock-app debug unknown 5224 5224 0 0.0
FLASH 4675100 4675100 0 0.0
RAM 199952 199952 0 0.0
ota-provider-app debug unknown 4600 4600 0 0.0
FLASH 4317128 4317128 0 0.0
RAM 194128 194128 0 0.0
ota-requestor-app debug unknown 4536 4536 0 0.0
FLASH 4455746 4456002 256 0.0
RAM 198680 198680 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2905405 2905661 256 0.0
RAM 152920 152920 0 0.0
thermostat-no-ble arm64 unknown 9184 9184 0 0.0
FLASH 4170268 4170268 0 0.0
RAM 235840 235840 0 0.0
tv-app debug unknown 5496 5496 0 0.0
FLASH 5817135 5817135 0 0.0
RAM 341360 341360 0 0.0
tv-casting-app debug unknown 5160 5160 0 0.0
FLASH 10362141 10362141 0 0.0
RAM 402232 402232 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503164 1503164 0 0.0
RAM 226648 226648 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 883268 883304 36 0.0
RAM 142259 142259 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 953540 953576 36 0.0
RAM 140687 140687 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 828332 828368 36 0.0
RAM 141123 141123 0 0.0
nxp contact k32w0+release FLASH 576164 576164 0 0.0
RAM 70024 70024 0 0.0
k32w1+release FLASH 591720 591720 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 610528 610576 48 0.0
RAM 69500 69500 0 0.0
k32w1+release FLASH 675368 675400 32 0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1616140 1616220 80 0.0
RAM 209764 209764 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1536644 1536724 80 0.0
RAM 206588 206588 0 0.0
light cy8ckit_062s2_43012 FLASH 1463252 1463332 80 0.0
RAM 199876 199876 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464004 1464004 0 0.0
RAM 224388 224388 0 0.0
qpg lighting-app qpg6105+debug FLASH 651636 651684 48 0.0
RAM 104564 104564 0 0.0
lock-app qpg6105+debug FLASH 612168 612168 0 0.0
RAM 99240 99240 0 0.0
stm32 light STM32WB5MM-DK FLASH 473960 473992 32 0.0
RAM 144196 144196 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633094 633094 0 0.0
RAM 50528 50528 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658982 659016 34 0.0
RAM 148436 148436 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779254 779288 34 0.0
RAM 113212 113212 0 0.0
bridge-app tlsr9258a FLASH 676086 676086 0 0.0
RAM 95304 95304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634678 634678 0 0.0
RAM 50572 50572 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720538 720538 0 0.0
RAM 77148 77148 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614058 614092 34 0.0
RAM 144636 144636 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801840 801874 34 0.0
RAM 103040 103040 0 0.0
lock-app-dfu tlsr9528a FLASH 666494 666494 0 0.0
RAM 69852 69852 0 0.0
ota-requestor-app tlsr9258a FLASH 695418 695452 34 0.0
RAM 95028 95028 0 0.0
pump-app tlsr9518adk80d FLASH 616952 616952 0 0.0
RAM 56952 56952 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607336 607336 0 0.0
RAM 56752 56752 0 0.0
shell tlsr9518adk80d FLASH 466466 466466 0 0.0
RAM 72484 72484 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641296 641296 0 0.0
RAM 52200 52200 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651162 651162 0 0.0
RAM 60388 60388 0 0.0
thermostat tlsr9518adk80d FLASH 626226 626226 0 0.0
RAM 57084 57084 0 0.0
window-covering tlsr9118bdk40d FLASH 519452 519452 0 0.0
RAM 97800 97800 0 0.0
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1640156 1640396 240 0.0
RAM 48620 48620 0 0.0
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16309758 16309758 0 0.0
RAM 7162112 7162112 0 0.0

@jmartinez-silabs jmartinez-silabs force-pushed the fix/onoff_with_effect_variant branch from c41555c to ecbd21c Compare July 25, 2024 00:22
Copy link

github-actions bot commented Jul 25, 2024

PR #34396: Size comparison from 6a98248 to ecbd21c

Full report (82 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 6a98248 ecbd21c change % change
bl602 lighting-app bl602 FLASH 1271964 1271964 0 0.0
RAM 95384 95384 0 0.0
bl602+mfd FLASH 1286222 1286222 0 0.0
RAM 95528 95528 0 0.0
bl602+rpc FLASH 1310932 1311188 256 0.0
RAM 103808 103808 0 0.0
bl702 lighting-app bl702 FLASH 1092858 1092858 0 0.0
RAM 15245 15245 0 0.0
bl702+mfd FLASH 1103552 1103808 256 0.0
RAM 15397 15397 0 0.0
bl702+rpc FLASH 1182924 1182924 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 876158 876158 0 0.0
RAM 27348 27348 0 0.0
bl706-wifi FLASH 1128342 1128598 256 0.0
RAM 14681 14681 0 0.0
bl702l lighting-app bl702l FLASH 1079756 1080012 256 0.0
RAM 21800 21800 0 0.0
bl702l+mfd FLASH 1091018 1091274 256 0.0
RAM 21960 21960 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798924 798972 48 0.0
RAM 109236 109236 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816684 816684 0 0.0
RAM 117020 117020 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 808516 808516 0 0.0
RAM 111308 111308 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761132 761132 0 0.0
RAM 105408 105408 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746916 746916 0 0.0
RAM 105632 105632 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606494 606494 0 0.0
RAM 204564 204564 0 0.0
lock CC3235SF_LAUNCHXL FLASH 652026 652026 0 0.0
RAM 204836 204836 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 668041 668081 40 0.0
RAM 77700 77700 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687893 687933 40 0.0
RAM 80340 80340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687893 687933 40 0.0
RAM 80340 80340 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644829 644869 40 0.0
RAM 72768 72768 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609585 609585 0 0.0
RAM 70884 70884 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629221 629221 0 0.0
RAM 73428 73428 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 625289 625289 0 0.0
RAM 73900 73900 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644997 644997 0 0.0
RAM 76444 76444 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593509 593509 0 0.0
RAM 67852 67852 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613361 613361 0 0.0
RAM 70492 70492 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613361 613361 0 0.0
RAM 70492 70492 0 0.0
efr32 lighting-app BRD4187C FLASH 926120 926152 32 0.0
RAM 134528 134528 0 0.0
lock-app BRD4338a FLASH 734524 734516 -8 -0.0
RAM 208004 208004 0 0.0
window-app BRD4187C FLASH 1014604 1014604 0 0.0
RAM 126648 126648 0 0.0
esp32 all-clusters-app c3devkit DRAM 90948 90948 0 0.0
FLASH 1471086 1471120 34 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117428 117428 0 0.0
FLASH 1540211 1540255 44 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2710279 2710279 0 0.0
RAM 125200 125200 0 0.0
all-clusters-app debug unknown 5400 5400 0 0.0
FLASH 5838628 5838962 334 0.0
RAM 494560 494560 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5298426 5298760 334 0.0
RAM 235728 235728 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4699178 4699178 0 0.0
RAM 212992 212992 0 0.0
chip-tool debug unknown 5784 5784 0 0.0
FLASH 12279306 12279306 0 0.0
RAM 548050 548050 0 0.0
chip-tool-ipv6only arm64 unknown 20128 20128 0 0.0
FLASH 10986972 10986972 0 0.0
RAM 597680 597680 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11299679 11299679 0 0.0
RAM 544890 544890 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4453412 4453412 0 0.0
RAM 199024 199024 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5623249 5623585 336 0.0
RAM 224272 224272 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4757630 4757630 0 0.0
RAM 200704 200704 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4402124 4402124 0 0.0
RAM 194880 194880 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4539938 4540272 334 0.0
RAM 199416 199416 0 0.0
shell debug unknown 4168 4168 0 0.0
FLASH 2982829 2983165 336 0.0
RAM 153704 153704 0 0.0
thermostat-no-ble arm64 unknown 9208 9208 0 0.0
FLASH 4259572 4259572 0 0.0
RAM 236360 236360 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 5974781 5974781 0 0.0
RAM 573184 573184 0 0.0
tv-casting-app debug unknown 5168 5168 0 0.0
FLASH 10490877 10490877 0 0.0
RAM 633352 633352 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1503276 1503276 0 0.0
RAM 226720 226720 0 0.0
nxp contact k32w0+release FLASH 576100 576100 0 0.0
RAM 70104 70104 0 0.0
k32w1+release FLASH 591672 591672 0 0.0
RAM 74144 74144 0 0.0
light k32w0+release FLASH 610432 610464 32 0.0
RAM 69564 69564 0 0.0
k32w1+release FLASH 675216 675248 32 0.0
RAM 82872 82872 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1611476 1611572 96 0.0
RAM 209728 209728 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1531828 1531940 112 0.0
RAM 206544 206544 0 0.0
light cy8ckit_062s2_43012 FLASH 1458860 1458956 96 0.0
RAM 199808 199808 0 0.0
lock cy8ckit_062s2_43012 FLASH 1459500 1459500 0 0.0
RAM 224328 224328 0 0.0
qpg lighting-app qpg6105+debug FLASH 651748 651780 32 0.0
RAM 104636 104636 0 0.0
lock-app qpg6105+debug FLASH 612136 612136 0 0.0
RAM 99320 99320 0 0.0
stm32 light STM32WB5MM-DK FLASH 474144 474176 32 0.0
RAM 144260 144260 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 633112 633112 0 0.0
RAM 50576 50576 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658786 658820 34 0.0
RAM 148480 148480 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 779012 779046 34 0.0
RAM 113260 113260 0 0.0
bridge-app tlsr9258a FLASH 676032 676032 0 0.0
RAM 95344 95344 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634696 634696 0 0.0
RAM 50620 50620 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720568 720568 0 0.0
RAM 77196 77196 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 614066 614100 34 0.0
RAM 144684 144684 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801870 801904 34 0.0
RAM 103088 103088 0 0.0
lock-app-dfu tlsr9528a FLASH 666524 666524 0 0.0
RAM 69900 69900 0 0.0
ota-requestor-app tlsr9258a FLASH 695394 695428 34 0.0
RAM 95068 95068 0 0.0
pump-app tlsr9518adk80d FLASH 616960 616960 0 0.0
RAM 57000 57000 0 0.0
pump-controller-app tlsr9518adk80d FLASH 607370 607370 0 0.0
RAM 56800 56800 0 0.0
shell tlsr9518adk80d FLASH 466520 466520 0 0.0
RAM 72488 72488 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 641314 641314 0 0.0
RAM 52248 52248 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 651192 651192 0 0.0
RAM 60436 60436 0 0.0
thermostat tlsr9518adk80d FLASH 626078 626078 0 0.0
RAM 57124 57124 0 0.0
window-covering tlsr9118bdk40d FLASH 519462 519462 0 0.0
RAM 97856 97856 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1640516 1640836 320 0.0
RAM 48708 48708 0 0.0
chip-tool-ubsan arm unknown 2388 2388 0 0.0
FLASH 16290886 16290886 0 0.0
RAM 7153232 7153232 0 0.0

@mergify mergify bot merged commit c4a25e6 into project-chip:master Jul 25, 2024
69 checks passed
j-ororke pushed a commit to j-ororke/connectedhomeip that referenced this pull request Jul 31, 2024
…hip#34396)

* Add checks for OffWithEffect command parameters contraints

* Update src/app/clusters/on-off-server/on-off-server.cpp

Co-authored-by: Andrei Litvin <[email protected]>

* address comment

* For unknownd effect variant, Default to the respective 0 value enum variant

* Update src/app/clusters/on-off-server/on-off-server.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* fix up rename

---------

Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Jul 31, 2024
…hip#34396)

* Add checks for OffWithEffect command parameters contraints

* Update src/app/clusters/on-off-server/on-off-server.cpp

Co-authored-by: Andrei Litvin <[email protected]>

* address comment

* For unknownd effect variant, Default to the respective 0 value enum variant

* Update src/app/clusters/on-off-server/on-off-server.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* fix up rename

---------

Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
@jmartinez-silabs jmartinez-silabs deleted the fix/onoff_with_effect_variant branch September 4, 2024 14:20
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.

OnOff Cluster does not enforce EffectVariant value requirements correctly
4 participants