Skip to content

[Camera] Update TC-AVSM Test Cases (TC-AVSM-2.1, TC-AVSM-2.13) #40406

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 13 commits into
base: master
Choose a base branch
from

Conversation

chulspro
Copy link
Contributor

@chulspro chulspro commented Jul 31, 2025

Addresses the following issues:

project-chip/matter-test-scripts#669

  • Add verification steps to TC-AVSM-2.1

project-chip/certification-tool#682

  • Verify VDO support for TC-AVSM-2.13

Testing

Build python wheel and activate venv:

. ./scripts/activate.sh
./scripts/build_python.sh -i out/python_env
source out/python_env/bin/activate

Run TC-AVSM-2.1, TC-AVSM-2.13:

./scripts/tests/run_python_test.py --factory-reset --app <chip-camera-app> --app-args "--trace-to json:log" --script src/python_testing/TC_AVSM_2_1.py --script-args "--commissioning-method on-network --qr-code MT:-24J0AFN00KA0648G00"

./scripts/tests/run_python_test.py --factory-reset --app <chip-camera-app> --app-args "--trace-to json:log" --script src/python_testing/TC_AVSM_2_13.py --script-args "--commissioning-method on-network --qr-code MT:-24J0AFN00KA0648G00"

Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
@chulspro chulspro requested a review from pidarped July 31, 2025 23:48
@github-actions github-actions bot added the tests label Jul 31, 2025
@chulspro chulspro requested a review from marktrayer July 31, 2025 23:48
@chulspro chulspro requested review from yufengwangca and cecille July 31, 2025 23:48
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 adds verification steps to the TC_AVSM_2_1 test case by adding assertions after reading attribute values. The changes are generally good, but there are a couple of recurring issues with the new assertions. Firstly, there are redundant assert_is_not_none calls, as the helper function read_single_attribute_check_success already handles this check. Secondly, the matter_asserts functions are used with incorrect description strings, which would lead to confusing assertion failure messages. I've added a comment on the first occurrence of this pattern with a suggested fix that should be applied throughout the file for consistency and correctness.

Copy link

github-actions bot commented Aug 1, 2025

PR #40406: Size comparison from dab4098 to 3fcbc87

Full report (57 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section dab4098 3fcbc87 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1104364 1104364 0 0.0
RAM 179058 179058 0 0.0
bl702 lighting-app bl702+eth FLASH 656990 656990 0 0.0
RAM 134921 134921 0 0.0
bl702+wifi FLASH 834782 834782 0 0.0
RAM 124541 124541 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066612 1066612 0 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 896050 896050 0 0.0
RAM 105644 105644 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 979764 979764 0 0.0
RAM 109828 109828 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 766800 766800 0 0.0
RAM 103320 103320 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 778412 778412 0 0.0
RAM 108488 108488 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 724080 724080 0 0.0
RAM 96884 96884 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 708396 708396 0 0.0
RAM 97092 97092 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 550546 550546 0 0.0
RAM 205080 205080 0 0.0
lock CC3235SF_LAUNCHXL FLASH 582854 582854 0 0.0
RAM 205296 205296 0 0.0
efr32 lock-app BRD4187C FLASH 958100 958100 0 0.0
RAM 126512 126512 0 0.0
BRD4338a FLASH 752492 752484 -8 -0.0
RAM 251856 251856 0 0.0
window-app BRD4187C FLASH 1050720 1050712 -8 -0.0
RAM 122708 122708 0 0.0
esp32 all-clusters-app c3devkit DRAM 102288 102288 0 0.0
FLASH 1750226 1750226 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121156 121156 0 0.0
FLASH 1698714 1698714 0 0.0
IRAM 117051 117051 0 0.0
linux air-purifier-app debug unknown 4864 4864 0 0.0
FLASH 2589722 2589722 0 0.0
RAM 116808 116808 0 0.0
all-clusters-app debug unknown 5688 5688 0 0.0
FLASH 5977996 5977996 0 0.0
RAM 534392 534392 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5205078 5205078 0 0.0
RAM 228088 228088 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4591412 4591412 0 0.0
RAM 208432 208432 0 0.0
camera-app debug unknown 8976 8976 0 0.0
FLASH 6699803 6699803 0 0.0
RAM 230720 230720 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 13640155 13640155 0 0.0
RAM 662136 662136 0 0.0
chip-tool debug unknown 6264 6264 0 0.0
FLASH 13701829 13701829 0 0.0
RAM 655616 655616 0 0.0
chip-tool-ipv6only arm64 unknown 40744 40744 0 0.0
FLASH 12729911 12729911 0 0.0
RAM 690616 690616 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4573128 4573128 0 0.0
RAM 200328 200328 0 0.0
fabric-admin debug unknown 5944 5944 0 0.0
FLASH 12047150 12047150 0 0.0
RAM 654696 654696 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4390292 4390292 0 0.0
RAM 194096 194096 0 0.0
fabric-sync debug unknown 5056 5056 0 0.0
FLASH 5475109 5475109 0 0.0
RAM 493520 493520 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5472273 5472273 0 0.0
RAM 209688 209688 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4618960 4618960 0 0.0
RAM 196952 196952 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4249030 4249030 0 0.0
RAM 185552 185552 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4312242 4312242 0 0.0
RAM 188376 188376 0 0.0
shell debug unknown 4312 4312 0 0.0
FLASH 2931171 2931171 0 0.0
RAM 148584 148584 0 0.0
thermostat-no-ble arm64 unknown 9976 9976 0 0.0
FLASH 4227231 4227231 0 0.0
RAM 226568 226568 0 0.0
tv-app debug unknown 5824 5824 0 0.0
FLASH 5803445 5803445 0 0.0
RAM 617896 617896 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 11840325 11840325 0 0.0
RAM 772368 772368 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 909604 909604 0 0.0
RAM 152824 152824 0 0.0
nxp contact mcxw71+release FLASH 627072 627072 0 0.0
RAM 64012 64012 0 0.0
lock mcxw71+release FLASH 737264 737264 0 0.0
RAM 65096 65096 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1657772 1657772 0 0.0
RAM 211144 211144 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1579412 1579412 0 0.0
RAM 208416 208416 0 0.0
light cy8ckit_062s2_43012 FLASH 1450540 1450540 0 0.0
RAM 197144 197144 0 0.0
lock cy8ckit_062s2_43012 FLASH 1482876 1482876 0 0.0
RAM 224856 224856 0 0.0
qpg lighting-app qpg6200+debug FLASH 819512 819512 0 0.0
RAM 127600 127600 0 0.0
lock-app qpg6200+debug FLASH 756788 756788 0 0.0
RAM 118552 118552 0 0.0
stm32 light STM32WB5MM-DK FLASH 466484 466484 0 0.0
RAM 141320 141320 0 0.0
telink bridge-app tl7218x FLASH 703656 703656 0 0.0
RAM 93544 93544 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795446 795446 0 0.0
RAM 43960 43960 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783852 783852 0 0.0
RAM 100848 100848 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 711450 711450 0 0.0
RAM 54180 54180 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748044 748044 0 0.0
RAM 77336 77336 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724770 724770 0 0.0
RAM 36936 36936 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604712 604712 0 0.0
RAM 112512 112512 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819456 819460 4 0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 5184 5184 0 0.0
FLASH 1767172 1767172 0 0.0
RAM 92212 92212 0 0.0
chip-tool-ubsan arm unknown 20776 20776 0 0.0
FLASH 21119338 21119338 0 0.0
RAM 9187836 9187836 0 0.0

@chulspro chulspro changed the title [Camera] Add verification steps to TC-AVSM-2.1 [Camera] Add verification steps to (TC-AVSM-2.1, TC-AVSM-2.13) Aug 1, 2025
Subodh Singh and others added 2 commits August 1, 2025 16:26
Signed-off-by: Subodh Singh <subodh.singh@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
@github-actions github-actions bot added the tests label Aug 1, 2025
@chulspro chulspro changed the title [Camera] Add verification steps to (TC-AVSM-2.1, TC-AVSM-2.13) [Camera] Update TC-AVSM Test Cases (TC-AVSM-2.1, TC-AVSM-2.13) Aug 1, 2025
Copy link

github-actions bot commented Aug 1, 2025

PR #40406: Size comparison from dab4098 to 8bf363d

Full report (57 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section dab4098 8bf363d change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1104364 1104428 64 0.0
RAM 179058 179058 0 0.0
bl702 lighting-app bl702+eth FLASH 656990 657054 64 0.0
RAM 134921 134921 0 0.0
bl702+wifi FLASH 834782 834846 64 0.0
RAM 124541 124541 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066612 1066676 64 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 896050 896114 64 0.0
RAM 105644 105644 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 979764 979828 64 0.0
RAM 109828 109828 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 766800 766848 48 0.0
RAM 103320 103320 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 778412 778452 40 0.0
RAM 108488 108488 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 724080 724120 40 0.0
RAM 96884 96884 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 708396 708436 40 0.0
RAM 97092 97092 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 550546 550594 48 0.0
RAM 205080 205080 0 0.0
lock CC3235SF_LAUNCHXL FLASH 582854 582902 48 0.0
RAM 205296 205296 0 0.0
efr32 lock-app BRD4187C FLASH 958100 958132 32 0.0
RAM 126512 126512 0 0.0
BRD4338a FLASH 752492 752548 56 0.0
RAM 251856 251856 0 0.0
window-app BRD4187C FLASH 1050720 1050744 24 0.0
RAM 122708 122708 0 0.0
esp32 all-clusters-app c3devkit DRAM 102288 102288 0 0.0
FLASH 1750226 1750290 64 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121156 121156 0 0.0
FLASH 1698714 1698782 68 0.0
IRAM 117051 117051 0 0.0
linux air-purifier-app debug unknown 4864 4864 0 0.0
FLASH 2589722 2590152 430 0.0
RAM 116808 116808 0 0.0
all-clusters-app debug unknown 5688 5688 0 0.0
FLASH 5977996 5978426 430 0.0
RAM 534392 534392 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5205078 5205508 430 0.0
RAM 228088 228088 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4591412 4591842 430 0.0
RAM 208432 208432 0 0.0
camera-app debug unknown 8976 8976 0 0.0
FLASH 6699803 6700235 432 0.0
RAM 230720 230720 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 13640155 13640187 32 0.0
RAM 662136 662136 0 0.0
chip-tool debug unknown 6264 6264 0 0.0
FLASH 13701829 13701859 30 0.0
RAM 655616 655616 0 0.0
chip-tool-ipv6only arm64 unknown 40744 40744 0 0.0
FLASH 12729911 12729943 32 0.0
RAM 690616 690616 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4573128 4573558 430 0.0
RAM 200328 200328 0 0.0
fabric-admin debug unknown 5944 5944 0 0.0
FLASH 12047150 12047180 30 0.0
RAM 654696 654696 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4390292 4390690 398 0.0
RAM 194096 194096 0 0.0
fabric-sync debug unknown 5056 5056 0 0.0
FLASH 5475109 5475509 400 0.0
RAM 493520 493520 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5472273 5472705 432 0.0
RAM 209688 209688 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4618960 4619390 430 0.0
RAM 196952 196952 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4249030 4249460 430 0.0
RAM 185552 185552 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4312242 4312672 430 0.0
RAM 188376 188376 0 0.0
shell debug unknown 4312 4312 0 0.0
FLASH 2931171 2931603 432 0.0
RAM 148584 148584 0 0.0
thermostat-no-ble arm64 unknown 9976 9976 0 0.0
FLASH 4227231 4227567 336 0.0
RAM 226568 226568 0 0.0
tv-app debug unknown 5824 5824 0 0.0
FLASH 5803445 5803877 432 0.0
RAM 617896 617896 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 11840325 11840757 432 0.0
RAM 772368 772368 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 909604 909648 44 0.0
RAM 152824 152824 0 0.0
nxp contact mcxw71+release FLASH 627072 627120 48 0.0
RAM 64012 64012 0 0.0
lock mcxw71+release FLASH 737264 737312 48 0.0
RAM 65096 65096 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1657772 1657820 48 0.0
RAM 211144 211144 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1579412 1579460 48 0.0
RAM 208416 208416 0 0.0
light cy8ckit_062s2_43012 FLASH 1450540 1450604 64 0.0
RAM 197144 197144 0 0.0
lock cy8ckit_062s2_43012 FLASH 1482876 1482940 64 0.0
RAM 224856 224856 0 0.0
qpg lighting-app qpg6200+debug FLASH 819512 819560 48 0.0
RAM 127600 127600 0 0.0
lock-app qpg6200+debug FLASH 756788 756836 48 0.0
RAM 118552 118552 0 0.0
stm32 light STM32WB5MM-DK FLASH 466484 466532 48 0.0
RAM 141320 141320 0 0.0
telink bridge-app tl7218x FLASH 703656 703720 64 0.0
RAM 93544 93544 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795446 795510 64 0.0
RAM 43960 43960 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783852 783916 64 0.0
RAM 100848 100848 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 711450 711514 64 0.0
RAM 54180 54180 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748044 748108 64 0.0
RAM 77336 77336 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724770 724834 64 0.0
RAM 36936 36936 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604712 604776 64 0.0
RAM 112512 112512 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819456 819524 68 0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 5184 5184 0 0.0
FLASH 1767172 1767328 156 0.0
RAM 92212 92212 0 0.0
chip-tool-ubsan arm unknown 20776 20776 0 0.0
FLASH 21119338 21120066 728 0.0
RAM 9187836 9188028 192 0.0

@chulspro chulspro enabled auto-merge (squash) August 1, 2025 10:56
Copy link

github-actions bot commented Aug 1, 2025

PR #40406: Size comparison from f263ab7 to 26026a8

Full report (57 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section f263ab7f 26026a8 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1104428 1104428 0 0.0
RAM 179058 179058 0 0.0
bl702 lighting-app bl702+eth FLASH 657054 657054 0 0.0
RAM 134921 134921 0 0.0
bl702+wifi FLASH 834846 834846 0 0.0
RAM 124541 124541 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066676 1066676 0 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 896114 896114 0 0.0
RAM 105644 105644 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 979828 979828 0 0.0
RAM 109828 109828 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 766848 766848 0 0.0
RAM 103320 103320 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 778452 778452 0 0.0
RAM 108488 108488 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 724120 724120 0 0.0
RAM 96884 96884 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 708436 708436 0 0.0
RAM 97092 97092 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 550594 550594 0 0.0
RAM 205080 205080 0 0.0
lock CC3235SF_LAUNCHXL FLASH 582902 582902 0 0.0
RAM 205296 205296 0 0.0
efr32 lock-app BRD4187C FLASH 958132 958132 0 0.0
RAM 126512 126512 0 0.0
BRD4338a FLASH 752556 752548 -8 -0.0
RAM 251856 251856 0 0.0
window-app BRD4187C FLASH 1050752 1050744 -8 -0.0
RAM 122708 122708 0 0.0
esp32 all-clusters-app c3devkit DRAM 102288 102288 0 0.0
FLASH 1750290 1750290 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121156 121156 0 0.0
FLASH 1698782 1698782 0 0.0
IRAM 117051 117051 0 0.0
linux air-purifier-app debug unknown 4864 4864 0 0.0
FLASH 2590152 2590152 0 0.0
RAM 116808 116808 0 0.0
all-clusters-app debug unknown 5688 5688 0 0.0
FLASH 5978426 5978426 0 0.0
RAM 534392 534392 0 0.0
all-clusters-minimal-app debug unknown 5536 5536 0 0.0
FLASH 5205508 5205508 0 0.0
RAM 228088 228088 0 0.0
bridge-app debug unknown 5568 5568 0 0.0
FLASH 4591842 4591842 0 0.0
RAM 208432 208432 0 0.0
camera-app debug unknown 8976 8976 0 0.0
FLASH 6700235 6700235 0 0.0
RAM 230720 230720 0 0.0
camera-controller debug unknown 9216 9216 0 0.0
FLASH 13640187 13640187 0 0.0
RAM 662136 662136 0 0.0
chip-tool debug unknown 6264 6264 0 0.0
FLASH 13701859 13701859 0 0.0
RAM 655616 655616 0 0.0
chip-tool-ipv6only arm64 unknown 40744 40744 0 0.0
FLASH 12729943 12729943 0 0.0
RAM 690616 690616 0 0.0
closure-app debug unknown 5536 5536 0 0.0
FLASH 4573558 4573558 0 0.0
RAM 200328 200328 0 0.0
fabric-admin debug unknown 5944 5944 0 0.0
FLASH 12047180 12047180 0 0.0
RAM 654696 654696 0 0.0
fabric-bridge-app debug unknown 4816 4816 0 0.0
FLASH 4390690 4390690 0 0.0
RAM 194096 194096 0 0.0
fabric-sync debug unknown 5056 5056 0 0.0
FLASH 5475509 5475509 0 0.0
RAM 493520 493520 0 0.0
lighting-app debug+rpc+ui unknown 6280 6280 0 0.0
FLASH 5472705 5472705 0 0.0
RAM 209688 209688 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4619390 4619390 0 0.0
RAM 196952 196952 0 0.0
ota-provider-app debug unknown 4856 4856 0 0.0
FLASH 4249460 4249460 0 0.0
RAM 185552 185552 0 0.0
ota-requestor-app debug unknown 4736 4736 0 0.0
FLASH 4312672 4312672 0 0.0
RAM 188376 188376 0 0.0
shell debug unknown 4312 4312 0 0.0
FLASH 2931603 2931603 0 0.0
RAM 148584 148584 0 0.0
thermostat-no-ble arm64 unknown 9976 9976 0 0.0
FLASH 4227567 4227567 0 0.0
RAM 226568 226568 0 0.0
tv-app debug unknown 5824 5824 0 0.0
FLASH 5803877 5803877 0 0.0
RAM 617896 617896 0 0.0
tv-casting-app debug unknown 5352 5352 0 0.0
FLASH 11840757 11840757 0 0.0
RAM 772368 772368 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 909648 909648 0 0.0
RAM 152824 152824 0 0.0
nxp contact mcxw71+release FLASH 627120 627120 0 0.0
RAM 64012 64012 0 0.0
lock mcxw71+release FLASH 737312 737312 0 0.0
RAM 65096 65096 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1657820 1657820 0 0.0
RAM 211144 211144 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1579460 1579460 0 0.0
RAM 208416 208416 0 0.0
light cy8ckit_062s2_43012 FLASH 1450604 1450604 0 0.0
RAM 197144 197144 0 0.0
lock cy8ckit_062s2_43012 FLASH 1482940 1482940 0 0.0
RAM 224856 224856 0 0.0
qpg lighting-app qpg6200+debug FLASH 819560 819560 0 0.0
RAM 127600 127600 0 0.0
lock-app qpg6200+debug FLASH 756836 756836 0 0.0
RAM 118552 118552 0 0.0
stm32 light STM32WB5MM-DK FLASH 466532 466532 0 0.0
RAM 141320 141320 0 0.0
telink bridge-app tl7218x FLASH 703720 703720 0 0.0
RAM 93544 93544 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795510 795510 0 0.0
RAM 43960 43960 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 783916 783916 0 0.0
RAM 100848 100848 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 711514 711514 0 0.0
RAM 54180 54180 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 748108 748108 0 0.0
RAM 77336 77336 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724834 724834 0 0.0
RAM 36936 36936 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604776 604776 0 0.0
RAM 112512 112512 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819520 819524 4 0.0
RAM 99100 99100 0 0.0
tizen all-clusters-app arm unknown 5184 5184 0 0.0
FLASH 1767328 1767328 0 0.0
RAM 92212 92212 0 0.0
chip-tool-ubsan arm unknown 20776 20776 0 0.0
FLASH 21120066 21120066 0 0.0
RAM 9188028 9188028 0 0.0

@mergify mergify bot added the conflict label Aug 7, 2025
@@ -264,20 +284,23 @@ async def test_TC_AVSM_2_1(self):
endpoint=endpoint, cluster=cluster, attribute=attr.AllocatedVideoStreams
)
logger.info(f"Rx'd AllocatedVideoStreams: {value}")
asserts.assert_is_not_none(value, "AllocatedVideoStreams is None")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This also needs to verify that values of the fields within the list of structs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for review. Since video stream is not allocated, the returned list in empty, how should we verify the struct?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That will possibly depend on the order in which test cases are run, either way, we could deliberately allocate a stream and then verify the population is correct. We can address that in a follow-up PR though.


self.step(18)
if self.pics_guard(self.check_pics("AVSM.S.A0010")):
value = await self.read_single_attribute_check_success(
endpoint=endpoint, cluster=cluster, attribute=attr.AllocatedAudioStreams
)
logger.info(f"Rx'd AllocatedAudioStreams: {value}")
asserts.assert_is_not_none(value, "AllocatedAudioStreams is None")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This also needs to verify the values within the fields of the list of structs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for review. Since audio stream is not allocated, the returned list in empty, how should we verify the struct?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That will possibly depend on the order in which test cases are run, either way, we could deliberately allocate a stream and then verify the population is correct. We can address that in a follow-up PR though.


self.step(19)
if self.pics_guard(self.check_pics("AVSM.S.A0011")):
value = await self.read_single_attribute_check_success(
endpoint=endpoint, cluster=cluster, attribute=attr.AllocatedSnapshotStreams
)
logger.info(f"Rx'd AllocatedSnapshotStreams: {value}")
asserts.assert_is_not_none(value, "AllocatedSnapshotStreams is None")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This also needs to verify the values within the fields of the list of structs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for review. Since snapshot stream is not allocated, the returned list in empty, how should we verify the struct?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That will possibly depend on the order in which test cases are run, either way, we could deliberately allocate a stream and then verify the population is correct. We can address that in a follow-up PR though.

Copy link
Contributor

Choose a reason for hiding this comment

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

The contents of AllocatedSnapshotStreams should be tested by a different test case that is functional. Checking that read succeeds here is actually not relevant and is already done by TC-IDM-10.2. If not checking contents, we should not blind-read.

Copy link
Collaborator

Choose a reason for hiding this comment

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

What should happen is that the attribute is read, and if not an empty list (as no streams are maybe allocated), then the contents of the struct verified. I'm fine with doing this in a follow-up PR though.

marktrayer and others added 9 commits August 20, 2025 20:38
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Subodh Singh <subodh.singh@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Subodh Singh <subodh.singh@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Subodh Singh <subodh.singh@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
Signed-off-by: Subodh Singh <subodh.singh@samsung.com>
Signed-off-by: Charles Kim <chulspro.kim@samsung.com>
@chulspro chulspro force-pushed the feature/contribution-camera-22 branch from 819ff81 to 7dff55f Compare August 20, 2025 11:40
@mergify mergify bot added the conflict label Aug 20, 2025
@@ -161,276 +164,443 @@ async def test_TC_AVSM_2_1(self):
endpoint=endpoint, cluster=cluster, attribute=attr.MaxConcurrentEncoders
)
logger.info(f"Rx'd MaxConcurrentEncoders: {value}")
asserts.assert_is_not_none(value, "MaxConcurrentEncoders is None")
matter_asserts.assert_valid_uint8(value, "MaxConcurrentEncoders")

self.step(3)
if self.pics_guard(self.check_pics("AVSM.S.A0001")):
Copy link
Contributor

Choose a reason for hiding this comment

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

Please replace ALL of these PICS guards with:

if await self.attribute_guard(endpoint=endpoint, attribute=attr.ATTR_NAME_HERE):

So:

        if self.pics_guard(self.check_pics("AVSM.S.A0001")):
            value = await self.read_single_attribute_check_success(
                endpoint=endpoint, cluster=cluster, attribute=attr.MaxEncodedPixelRate
            )

becomes:

        if await self.attribute_guard(endpoint=endpoint, attribute=attr.MaxEncodedPixelRate):
            value = await self.read_single_attribute_check_success(
                endpoint=endpoint, cluster=cluster, attribute=attr.MaxEncodedPixelRate
            )

This will remove dependies on PICS for this test, and make it more likely to catch issues.


self.step(13)
if self.pics_guard(self.check_pics("AVSM.S.A000B")):
value = await self.read_single_attribute_check_success(
endpoint=endpoint, cluster=cluster, attribute=attr.MaxNetworkBandwidth
)
logger.info(f"Rx'd MaxNetworkBandwidth: {value}")
matter_asserts.assert_valid_uint32(value, "MaxNetworkBandwidth")
Copy link
Contributor

Choose a reason for hiding this comment

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

This cannot be zero. Please check > 1

Comment on lines +375 to +377
asserts.assert_less(
value, cluster.Enums.TriStateAutoEnum.kUnknownEnumValue, "NightVision is not a valid TriStateAutoEnum"
)
Copy link
Contributor

Choose a reason for hiding this comment

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

The correct method for all enum assertions:

asserts.assert_in(value, cluster.Enums.TristateAutoEnum, "some error")

This properly validates enums with gaps and is less brittle.

Ex:

>>> from enum import IntEnum
>>> class SomeEnum(IntEnum):
...     kFirst = 1
...     kThird = 3
... 
>>> a = 1
>>> a in SomeEnum
True
>>> a = 2
>>> a in SomeEnum
False
>>> 

@mergify mergify bot removed the conflict label Aug 23, 2025
Copy link

github-actions bot commented Aug 23, 2025

PR #40406: Size comparison from e086a20 to 04c303f

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section e086a20 04c303f change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105874 1105874 0 0.0
RAM 179018 179018 0 0.0
bl702 lighting-app bl702+eth FLASH 659208 659208 0 0.0
RAM 135025 135025 0 0.0
bl702+wifi FLASH 836380 836380 0 0.0
RAM 124509 124509 0 0.0
bl706+mfd+rpc+littlefs FLASH 1068388 1068388 0 0.0
RAM 117349 117349 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 897826 897826 0 0.0
RAM 105660 105660 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981540 981540 0 0.0
RAM 109844 109844 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 768324 768324 0 0.0
RAM 103392 103392 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 779944 779944 0 0.0
RAM 108560 108560 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 725548 725548 0 0.0
RAM 96932 96932 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 710024 710024 0 0.0
RAM 97140 97140 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 552246 552246 0 0.0
RAM 205120 205120 0 0.0
lock CC3235SF_LAUNCHXL FLASH 584562 584562 0 0.0
RAM 205352 205352 0 0.0
efr32 lock-app BRD4187C FLASH 959824 959824 0 0.0
RAM 126408 126408 0 0.0
BRD4338a FLASH 755272 755264 -8 -0.0
RAM 255732 255732 0 0.0
window-app BRD4187C FLASH 1053940 1053940 0 0.0
RAM 122604 122604 0 0.0
esp32 all-clusters-app c3devkit DRAM 102536 102536 0 0.0
FLASH 1769494 1769494 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 121388 121388 0 0.0
FLASH 1716750 1716750 0 0.0
IRAM 117051 117051 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 912220 912220 0 0.0
RAM 152898 152898 0 0.0
nxp contact mcxw71+release FLASH 632472 632472 0 0.0
RAM 64124 64124 0 0.0
lock mcxw71+release FLASH 742264 742264 0 0.0
RAM 65200 65200 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1661588 1661588 0 0.0
RAM 211216 211216 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1582916 1582916 0 0.0
RAM 208480 208480 0 0.0
light cy8ckit_062s2_43012 FLASH 1453876 1453876 0 0.0
RAM 197200 197200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1486204 1486204 0 0.0
RAM 224920 224920 0 0.0
qpg lighting-app qpg6200+debug FLASH 820984 820984 0 0.0
RAM 127644 127644 0 0.0
lock-app qpg6200+debug FLASH 758316 758316 0 0.0
RAM 118604 118604 0 0.0
realtek light-switch-app rtl8777g FLASH 704040 704040 0 0.0
RAM 106676 106676 0 0.0
lighting-app rtl8777g FLASH 755624 755624 0 0.0
RAM 127056 127056 0 0.0
stm32 light STM32WB5MM-DK FLASH 468060 468060 0 0.0
RAM 141400 141400 0 0.0
telink bridge-app tl7218x FLASH 709988 709988 0 0.0
RAM 93472 93472 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 798900 798900 0 0.0
RAM 44032 44032 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 790114 790114 0 0.0
RAM 100776 100776 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 716272 716272 0 0.0
RAM 54260 54260 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 749628 749628 0 0.0
RAM 77408 77408 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 726418 726418 0 0.0
RAM 37008 37008 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 606406 606406 0 0.0
RAM 112584 112584 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 822834 822838 4 0.0
RAM 99172 99172 0 0.0

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

Successfully merging this pull request may close these issues.

5 participants