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

test for TH [WIP] #37486

Draft
wants to merge 15 commits into
base: v1.4-branch
Choose a base branch
from
Draft

Conversation

cecille
Copy link
Contributor

@cecille cecille commented Feb 10, 2025

Note - changing submodules label comes from #37049

Testing

app compiles, python compiles, chip-tool compiles, python tests work. I have NOT tested chip-tool, nor have I ported the other tests.

Draft still, need feedback from CI

cecille and others added 9 commits February 9, 2025 23:02
Something about the last cherry pick broke zap. Re-applying the
changes manually and re-running zap.
* Add initial feature logic for Terms and Conditions (TC) acknowledgements

This commit introduces the initial logic for handling Terms and
Conditions (TC) acknowledgements in the General Commissioning cluster.
The logic includes support for setting and checking TC acknowledgements
and versions during the commissioning process.

Changes include:
- Handling TC acknowledgements and TC acknowledgement version in the
  pairing command.
- Logic to read TC attributes and check TC acceptance in the General
  Commissioning server.
- Introduction of classes to manage TC acceptance logic.
- Initialization and use of TC providers in the server setup.
- Addition of a new commissioning stage for TC acknowledgements in the
  commissioning flow.

The feature logic is currently disabled and will be enabled in an
example in a subsequent commit.

* ./scripts/helpers/restyle-diff.sh @{u}

* Ignore file reference check on TermsAndConditionsManager.cpp

The TermsAndConditionsManager.cpp file is only referenced within sample
apps that utilize the Terms and Conditions feature.

* Make `terms and conditions required` build configurable:

- Moved the configuration from core into app buildconfig
- renamed the flag to expand `TC` into `TERMS AND CONDITIONS`
- updated includes in general-commissioning to include the right header
- added the configuration as a build option into targets.py/host.py
- updated unit test

* Move terms and conditions to its own target and include cpp file

- Create a separate source set for terms and conditions
- include the manager cpp in that file
- make the build conditional (this required flag moving)
- fixed typo in targets.py to make things compile

Compile-tested only (the -terms-and-conditions variant of all clusters
compiled)

* Fix mangled license blurb

* Remove edited date for CHIPConfig.h

* Fix unit tests dependencies

* Add back some includes

---------

Co-authored-by: Andrei Litvin <[email protected]>
…chip#36836)

* Decouple ember functions from general commissioning cluster

* Address review comments

* Rename gAttrAccess

* Remove new added log info

* Flag SetTCAcknowledgements command

* Revert "Flag SetTCAcknowledgements command"

This reverts commit 90de8a1.

* Add the original debug log back
…p#36950)

* feat: Add terms-and-conditions sample app for CI testing

Add a new sample application that demonstrates and tests the terms and
conditions feature. This app will be integrated into the CI pipeline to
prevent regressions and ensure the feature continues to work as
expected.

The sample app serves as both a reference implementation and an
automated test case for the terms and conditions functionality.

```bash
./scripts/build/build_examples.py --target linux-x64-terms-and-conditions build
```

* Update cluster configurations for app testing

- Enable switch cluster for basic app control testing
- Enable network commissioning cluster for in-app commission testing
- Disable provisional clusters as they are not required
- Disable other non-required clusters to streamline testing setup

This change focuses the cluster configuration on essential components
needed for basic app control and commissioning testing scenarios.

* refactor: Remove unused attributes from Switch cluster

Remove unused attributes from the Switch cluster to comply with the "On/Off Light"
device type specification as defined in the Matter device library v1.4. This change
removes several server-side attributes including ServerList, ClientList, PartsList,
and various internal lists that are not required for the basic On/Off Light
functionality.

* feat: Add Descriptor cluster and enable attribute reporting

Add the mandatory Descriptor cluster to endpoint 1 and enable attribute reporting
for the device. Changes include:
- Add Descriptor cluster with all required attributes (deviceTypeList, serverList, etc.)
- Enable reportable flag for multiple attributes with min/max reporting intervals
- Configure all Descriptor cluster attributes as external callbacks

This change ensures compliance with the Matter specification for the On/Off Light
device type.
…ject-chip#36863)

* Add Terms and Conditions (T&C) Feature Support for Commissioning

This commit introduces comprehensive support for handling Terms and
Conditions (T&C) during the commissioning process, enhancing
compatibility with Matter device certification requirements.

Key changes include:

1. **Commissioning Process Updates**:
   - Introduced `SetRequireTermsAndConditionsAcknowledgement`,
     `SetTermsAcknowledgements`, and `SetSkipCommissioningComplete` APIs
     in the commissioning library.
   - Updated commissioning stages to include `kGetTCAcknowledgments` and
     `kConfigureTCAcknowledgments` for seamless integration of T&C
     acknowledgements.
   - Added methods for processing T&C acknowledgements and advancing
     commissioning stages upon user response.

2. **Test Framework Enhancements**:
   - Added arguments (`tc_version`, `tc_user_response`,
     `in_test_commissioning_method`) for specifying T&C configuration in
     tests.
   - Enhanced `populate_commissioning_args` to manage new T&C-related
     arguments.
   - Updated Python test bindings and Matter test infrastructure to
     support T&C workflows.

3. **Chip-Tool Improvements**:
   - Extended `PairingCommand` to handle T&C-related arguments
     (`require-tc-acknowledgements`, `tc-acknowledgements`,
     `tc-acknowledgements-version`) for test scenarios.
   - Ensured backward compatibility by defaulting new parameters to
     preserve pre-1.4 behavior.

* Removed the "wait for terms and conditions stage"

The wait-stage is not required. The user input availability must be a
pre-condition for starting the AutoCommissioner process. The wait stage
was previously to support requesting user input after identifying the
device VID/PID using a different channel than within the pairing
payload.

* [doc] Improve Terms and Conditions commissioning arguments documentation

Updated documentation for T&C-related commissioning arguments to better
reflect their actual usage and purpose:

- require-tc-acknowledgements: Clarified the impact on commissioning flow
- tc-acknowledgements: Explained the bit-field usage for user acceptance
- tc-acknowledgements-version: Added context about version tracking

* [controller] Remove T&C acknowledgements from external buffer clearing

The Terms and Conditions acknowledgements parameter was incorrectly included
in ClearExternalBufferDependentValues(). This parameter contains a fixed-size
struct with two uint16_t values and does not reference any external buffers.

The CommissioningParameters class appears to be designed for additive-only
parameter setting without explicit clear/reset functionality, so removing
this inappropriate clearing operation is the correct approach.

* [controller] Fix CommissioningStage enum order for T&C acknowledgements

Move kConfigureTCAcknowledgments before kCleanup in the CommissioningStage
enum to fix cirque test failures. The tests validate that commissioning stages
do not exceed kCleanup, which was causing failures when T&C acknowledgements
were positioned after it.

While the original comment from 2 years ago suggested the enum order was
fixed, testing reveals that the stages can be reordered. The cirque tests
now pass with this corrected ordering, indicating that any previous
constraints on enum ordering no longer apply.

* [doc] Clarify required arguments for T&C acknowledgements

Update help text for require-tc-acknowledgements to explicitly state which
arguments must be provided when T&C acknowledgements are required. Instead
of the vague "valid T&C acknowledgements", now specifically mentions that
both tc-acknowledgements and tc-acknowledgements-version arguments are
mandatory for successful commissioning when this option is enabled.

* Update src/python_testing/matter_testing_infrastructure/chip/testing/matter_testing.py

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>

* Restyle

* Renamed variable

---------

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>
…#36966)

* Remove [commissioner] redundant TC acknowledgement flag

The flag controlling whether to require TC acknowledgement is no longer
needed since TC acceptance is now a mandatory pre-condition for
commissioning. This flag was originally added to support delayed TC
acceptance during the commissioning process, but since that flow has
been removed, the flag serves no purpose.

The TC acknowledgement state itself is still required and maintained,
but the additional boolean flag controlling the requirement is redundant
and can be safely removed.
…L) to chip-tool (project-chip#37049)

* [chip-tool] Add chip-tool dcl fake cluster commands

* [chip-tool] Add a fake local dcl server script for testing/developement purposes

* [chip-tool] Add chip-tool dcl tc-display and tc-display-by-payload commands

* [General Commissioning Server] Dynamically encode the feature map 'GeneralCommissioning::Feature::kTermsAndConditions' if CHIP_CONFIG_TERMS_AND_CONDITIONS_REQUIRED is set

* [Examples/platform/linux] Set default TermsAndConditions if requested from the command line

* [chip-tool] Add TermsAndConditions support to chip-tool pairing code command
Copy link

semanticdiff-com bot commented Feb 10, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  src/app/zap-templates/zcl/data-model/chip/general-commissioning-cluster.xml  63% smaller
  src/python_testing/matter_testing_support.py  50% smaller
  scripts/build/builders/host.py  15% smaller
  .github/workflows/tests.yaml  0% smaller
  examples/chip-tool/BUILD.gn Unsupported file format
  examples/chip-tool/commands/dcl/Commands.h Unsupported file format
  examples/chip-tool/commands/dcl/DCLClient.cpp Unsupported file format
  examples/chip-tool/commands/dcl/DCLClient.h Unsupported file format
  examples/chip-tool/commands/dcl/DCLCommands.h Unsupported file format
  examples/chip-tool/commands/dcl/DisplayTermsAndConditions.cpp Unsupported file format
  examples/chip-tool/commands/dcl/DisplayTermsAndConditions.h Unsupported file format
  examples/chip-tool/commands/dcl/HTTPSRequest.cpp Unsupported file format
  examples/chip-tool/commands/dcl/HTTPSRequest.h Unsupported file format
  examples/chip-tool/commands/dcl/JsonSchemaMacros.cpp Unsupported file format
  examples/chip-tool/commands/dcl/JsonSchemaMacros.h Unsupported file format
  examples/chip-tool/commands/dcl/test_dcl_server.py  0% smaller
  examples/chip-tool/commands/pairing/PairingCommand.cpp Unsupported file format
  examples/chip-tool/commands/pairing/PairingCommand.h Unsupported file format
  examples/chip-tool/main.cpp Unsupported file format
  examples/platform/linux/AppMain.cpp Unsupported file format
  examples/platform/linux/Options.cpp Unsupported file format
  examples/platform/linux/Options.h Unsupported file format
  examples/terms-and-conditions-app/linux/.gn Unsupported file format
  examples/terms-and-conditions-app/linux/BUILD.gn Unsupported file format
  examples/terms-and-conditions-app/linux/args.gni Unsupported file format
  examples/terms-and-conditions-app/linux/build_overrides  0% smaller
  examples/terms-and-conditions-app/linux/main.cpp Unsupported file format
  examples/terms-and-conditions-app/linux/third_party/connectedhomeip  0% smaller
  examples/terms-and-conditions-app/terms-and-conditions-common/BUILD.gn Unsupported file format
  examples/terms-and-conditions-app/terms-and-conditions-common/terms-and-conditions-app.matter Unsupported file format
  examples/terms-and-conditions-app/terms-and-conditions-common/terms-and-conditions-app.zap Unsupported file format
  integrations/docker/images/chip-cert-bins/Dockerfile Unsupported file format
  scripts/build/build/targets.py  0% smaller
  scripts/build/testdata/all_targets_linux_x64.txt Unsupported file format
  scripts/tests/local.py  0% smaller
  scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/IMClusterCommandHandler.cpp Unsupported file format
  scripts/tools/zap/tests/outputs/lighting-app/app-templates/IMClusterCommandHandler.cpp Unsupported file format
  src/app/BUILD.gn Unsupported file format
  src/app/FailSafeContext.cpp Unsupported file format
  src/app/FailSafeContext.h Unsupported file format
  src/app/chip_data_model.cmake Unsupported file format
  src/app/clusters/general-commissioning-server/general-commissioning-server.cpp Unsupported file format
  src/app/common/templates/config-data.yaml  0% smaller
  src/app/common_flags.gni Unsupported file format
  src/app/server/BUILD.gn Unsupported file format
  src/app/server/DefaultTermsAndConditionsProvider.cpp Unsupported file format
  src/app/server/DefaultTermsAndConditionsProvider.h Unsupported file format
  src/app/server/TermsAndConditionsManager.cpp Unsupported file format
  src/app/server/TermsAndConditionsManager.h Unsupported file format
  src/app/server/TermsAndConditionsProvider.h Unsupported file format
  src/app/tests/BUILD.gn Unsupported file format
  src/app/tests/TestDefaultTermsAndConditionsProvider.cpp Unsupported file format
  src/app/tests/suites/certification/PICS.yaml  0% smaller
  src/app/tests/suites/certification/ci-pics-values Unsupported file format
  src/controller/AutoCommissioner.cpp Unsupported file format
  src/controller/CHIPDeviceController.cpp Unsupported file format
  src/controller/CHIPDeviceController.h Unsupported file format
  src/controller/CommissioningDelegate.cpp Unsupported file format
  src/controller/CommissioningDelegate.h Unsupported file format
  src/controller/python/ChipDeviceController-ScriptBinding.cpp Unsupported file format
  src/controller/python/chip/ChipDeviceCtrl.py  0% smaller
  src/controller/python/chip/clusters/Objects.py Unsupported file format
  src/controller/python/chip/commissioning/__init__.py  0% smaller
  src/controller/python/chip/commissioning/commissioning_flow_blocks.py  0% smaller
  src/include/platform/CHIPDeviceEvent.h Unsupported file format
  src/lib/support/DefaultStorageKeyAllocator.h Unsupported file format
  src/python_testing/TC_CGEN_2_10.py  0% smaller
  src/python_testing/TC_CGEN_2_11.py  0% smaller
  src/python_testing/TC_CGEN_2_5.py  0% smaller
  src/python_testing/TC_CGEN_2_6.py  0% smaller
  src/python_testing/TC_CGEN_2_7.py  0% smaller
  src/python_testing/TC_CGEN_2_8.py  0% smaller
  src/python_testing/TC_CGEN_2_9.py  0% smaller
  src/python_testing/execute_python_tests.py  0% smaller
  src/python_testing/matter_asserts.py  0% smaller
  third_party/boringssl/repo/BUILD.gn Unsupported file format
  zzz_generated/app-common/app-common/zap-generated/callback.h Unsupported file format

@cecille cecille changed the title test for TH test for TH [WIP] Feb 10, 2025
Copy link

PR #37486: Size comparison from 37a2d68 to c99525c

Full report (3 builds for cc32xx, stm32)
platform target config section 37a2d68 c99525c change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 616966 617186 220 0.0
RAM 205908 205948 40 0.0
lock CC3235SF_LAUNCHXL FLASH 657054 657338 284 0.0
RAM 206060 206092 32 0.0
stm32 light STM32WB5MM-DK FLASH 481696 481672 -24 -0.0
RAM 144844 144876 32 0.0

@cecille cecille added the changing-submodules-on-purpose Marker that this PR is changing submodules (and it is not a "commit all" typo/mistake) label Feb 10, 2025
Copy link

github-actions bot commented Feb 10, 2025

PR #37486: Size comparison from 37a2d68 to ae43f11

Increases above 0.2%:

platform target config section 37a2d68 ae43f11 change % change
linux chip-tool debug unknown 5960 6096 136 2.3
FLASH 12655966 12723828 67862 0.5
chip-tool-ipv6only arm64 unknown 20672 20792 120 0.6
FLASH 11293872 11349344 55472 0.5
tv-app debug FLASH 6027989 6043477 15488 0.3
tizen chip-tool-ubsan arm unknown 10424 10848 424 4.1
FLASH 17513530 18023466 509936 2.9
RAM 7628152 7870416 242264 3.2
Full report (88 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 37a2d68 ae43f11 change % change
bl602 lighting-app bl602 FLASH 1280592 1281264 672 0.1
RAM 96000 96040 40 0.0
bl602+mfd FLASH 1308896 1309312 416 0.0
RAM 95656 95696 40 0.0
bl602+rpc FLASH 1335260 1335684 424 0.0
RAM 103976 104016 40 0.0
bl702 lighting-app bl702 FLASH 944994 944870 -124 -0.0
RAM 15105 15105 0 0.0
bl702+mfd FLASH 957704 957580 -124 -0.0
RAM 14769 14769 0 0.0
bl702+rpc FLASH 1051152 1051284 132 0.0
RAM 23661 23661 0 0.0
bl706-eth FLASH 658126 658290 164 0.0
RAM 24745 24745 0 0.0
bl706-wifi FLASH 824922 824798 -124 -0.0
RAM 13965 13965 0 0.0
bl702l lighting-app bl702l FLASH 961930 961806 -124 -0.0
RAM 16804 16804 0 0.0
bl702l+mfd FLASH 974692 974568 -124 -0.0
RAM 16468 16468 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 829372 829312 -60 -0.0
RAM 123452 123484 32 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 814704 814668 -36 -0.0
RAM 125332 125364 32 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761276 761176 -100 -0.0
RAM 113824 113864 40 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 745512 745404 -108 -0.0
RAM 114016 114048 32 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 616966 617186 220 0.0
RAM 205908 205948 40 0.0
lock CC3235SF_LAUNCHXL FLASH 657054 657338 284 0.0
RAM 206060 206092 32 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 678357 678229 -128 -0.0
RAM 78668 78700 32 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 698209 698073 -136 -0.0
RAM 81300 81332 32 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 698209 698073 -136 -0.0
RAM 81300 81332 32 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 655137 655009 -128 -0.0
RAM 73736 73768 32 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 614693 614637 -56 -0.0
RAM 71628 71668 40 0.1
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634329 634265 -64 -0.0
RAM 74180 74220 40 0.1
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634329 634265 -64 -0.0
RAM 74180 74220 40 0.1
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 633997 633941 -56 -0.0
RAM 74676 74708 32 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 653713 653657 -56 -0.0
RAM 77228 77260 32 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 653713 653657 -56 -0.0
RAM 77228 77260 32 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609301 609245 -56 -0.0
RAM 68764 68796 32 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629161 629105 -56 -0.0
RAM 71396 71428 32 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629161 629105 -56 -0.0
RAM 71396 71428 32 0.0
efr32 lighting-app BRD4187C FLASH 934132 934052 -80 -0.0
RAM 136244 136280 36 0.0
lock-app BRD2605a FLASH 741288 741568 280 0.0
RAM 232120 232156 36 0.0
BRD4338a FLASH 741736 742008 272 0.0
RAM 232004 232040 36 0.0
window-app BRD4187C FLASH 1017568 1017840 272 0.0
RAM 128176 128212 36 0.0
esp32 all-clusters-app c3devkit DRAM 94240 94280 40 0.0
FLASH 1538510 1538440 -70 -0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115192 115232 40 0.0
FLASH 1548938 1548946 8 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4688 0 0.0
FLASH 2779879 2781471 1592 0.1
RAM 129488 129680 192 0.1
all-clusters-app debug unknown 5528 5528 0 0.0
FLASH 6083854 6085614 1760 0.0
RAM 510560 510784 224 0.0
all-clusters-minimal-app debug unknown 5424 5424 0 0.0
FLASH 5417104 5418896 1792 0.0
RAM 241200 241424 224 0.1
bridge-app debug unknown 5408 5408 0 0.0
FLASH 4750526 4752318 1792 0.0
RAM 218384 218608 224 0.1
chip-tool debug unknown 5960 6096 136 2.3
FLASH 12655966 12723828 67862 0.5
RAM 560658 561250 592 0.1
chip-tool-ipv6only arm64 unknown 20672 20792 120 0.6
FLASH 11293872 11349344 55472 0.5
RAM 610976 611616 640 0.1
fabric-admin debug unknown 5792 5792 0 0.0
FLASH 11008297 11021391 13094 0.1
RAM 560090 560138 48 0.0
fabric-bridge-app debug unknown 4632 4632 0 0.0
FLASH 4573492 4575120 1628 0.0
RAM 205048 205240 192 0.1
lighting-app debug+rpc+ui unknown 6056 6056 0 0.0
FLASH 5690305 5692065 1760 0.0
RAM 228456 228648 192 0.1
lock-app debug unknown 5344 5344 0 0.0
FLASH 4800122 4801882 1760 0.0
RAM 204472 204696 224 0.1
ota-provider-app debug unknown 4720 4720 0 0.0
FLASH 4429510 4431302 1792 0.0
RAM 198192 198384 192 0.1
ota-requestor-app debug unknown 4656 4656 0 0.0
FLASH 4568326 4570120 1794 0.0
RAM 202760 202952 192 0.1
shell debug unknown 4216 4216 0 0.0
FLASH 3109917 3111613 1696 0.1
RAM 159280 159504 224 0.1
thermostat-no-ble arm64 unknown 9448 9464 16 0.2
FLASH 4317984 4319440 1456 0.0
RAM 242936 243088 152 0.1
tv-app debug unknown 5624 5624 0 0.0
FLASH 6027989 6043477 15488 0.3
RAM 584096 584416 320 0.1
tv-casting-app debug unknown 5208 5208 0 0.0
FLASH 10849981 10851677 1696 0.0
RAM 648944 649184 240 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 914292 914180 -112 -0.0
RAM 142359 142387 28 0.0
nrf7002dk_nrf5340_cpuapp FLASH 885080 885168 88 0.0
RAM 140498 140534 36 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 847696 847592 -104 -0.0
RAM 141253 141281 28 0.0
nxp contact k32w0+release FLASH 582040 582008 -32 -0.0
RAM 70944 70976 32 0.0
k32w1+release FLASH 596752 596688 -64 -0.0
RAM 63168 63200 32 0.1
mcxw71+release FLASH 596512 596432 -80 -0.0
RAM 63168 63200 32 0.1
light k32w0+release FLASH 618644 618604 -40 -0.0
RAM 70416 70448 32 0.0
k32w1+release FLASH 682736 682720 -16 -0.0
RAM 48808 48832 24 0.0
mcxw71+release FLASH 682752 682720 -32 -0.0
RAM 48808 48832 24 0.0
lock k32w1+release FLASH 705088 704992 -96 -0.0
RAM 67308 67348 40 0.1
mcxw71+release FLASH 705112 705016 -96 -0.0
RAM 67308 67348 40 0.1
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646140 1646412 272 0.0
RAM 211400 211432 32 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552196 1552508 312 0.0
RAM 208200 208240 40 0.0
light cy8ckit_062s2_43012 FLASH 1467668 1467964 296 0.0
RAM 201200 201232 32 0.0
lock cy8ckit_062s2_43012 FLASH 1464740 1465020 280 0.0
RAM 225560 225592 32 0.0
qpg lighting-app qpg6105+debug FLASH 660400 660376 -24 -0.0
RAM 105396 105428 32 0.0
lock-app qpg6105+debug FLASH 618412 618356 -56 -0.0
RAM 99864 99904 40 0.0
stm32 light STM32WB5MM-DK FLASH 481696 481672 -24 -0.0
RAM 144844 144876 32 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 620798 620850 52 0.0
RAM 50648 50688 40 0.1
all-clusters-app tlsr9118bdk40d FLASH 688000 688060 60 0.0
RAM 148488 148528 40 0.0
all-clusters-minimal-app tlsr9528a FLASH 780992 781054 62 0.0
RAM 110440 110480 40 0.0
bridge-app tlsr9258a FLASH 680902 680962 60 0.0
RAM 91304 91344 40 0.0
contact-sensor-app tlsr9528a_retention FLASH 620562 620614 52 0.0
RAM 50600 50640 40 0.1
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 708502 708566 64 0.0
RAM 73940 73980 40 0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625506 625548 42 0.0
RAM 144468 144508 40 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811266 811320 54 0.0
RAM 99100 99140 40 0.0
lock-app-dfu tlsr9528a FLASH 656468 656532 64 0.0
RAM 66660 66700 40 0.1
ota-requestor-app tlsr9258a FLASH 696878 696932 54 0.0
RAM 90896 90936 40 0.0
pump-app-usb tlsr9518adk80d FLASH 634194 634264 70 0.0
RAM 55476 55516 40 0.1
pump-controller-app tlsr9518adk80d FLASH 611384 611454 70 0.0
RAM 52720 52760 40 0.1
shell tlsr9518adk80d FLASH 467862 467862 0 0.0
RAM 68168 68168 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 627722 627770 48 0.0
RAM 52312 52352 40 0.1
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 653520 653592 72 0.0
RAM 56268 56308 40 0.1
thermostat tlsr9518adk80d FLASH 638116 638180 64 0.0
RAM 53112 53152 40 0.1
window-covering tlsr9118bdk40d FLASH 524262 524318 56 0.0
RAM 97444 97484 40 0.0
tizen all-clusters-app arm unknown 4904 4912 8 0.2
FLASH 1725936 1727020 1084 0.1
RAM 89076 89172 96 0.1
chip-tool-ubsan arm unknown 10424 10848 424 4.1
FLASH 17513530 18023466 509936 2.9
RAM 7628152 7870416 242264 3.2

swan-amazon and others added 5 commits February 10, 2025 10:42
* test: Implement TC acknowledgement test cases 2.5-2.8

Implements test cases for Terms & Conditions acknowledgement verification:
- TC-*-2.5: SetTCAcknowledgements verification
- TC-*-2.6: CommissioningComplete with no terms accepted
- TC-*-2.7: CommissioningComplete with invalid terms
- TC-*-2.8: TCAcknowledgements reset after Factory Reset

Remaining test cases to be implemented in follow-up changes:
- TC-*-2.9: Reset after fabric removal
- TC-*-2.10: Required terms validation
- TC-*-2.11: Post-commission updates

Testing:
Test cases implemented according to test plan specifications.
Each test verifies specific TC acknowledgement behaviors.

* test: Implement remaining TC acknowledgement test cases 2.9-2.11

Implements remaining test cases for Terms & Conditions acknowledgement verification:
- TC-*-2.9: TCAcknowledgements reset after fabric removal
- TC-*-2.10: Required terms validation
- TC-*-2.11: Post-commission TC updates

This completes the test coverage for TC acknowledgement verification,
following up on the previous implementation of test cases 2.5-2.8.
The new test cases verify:
- TC state after fabric removal
- Protection of required terms
- Ability to update TC version and acknowledgements post-commissioning

Testing:
Test cases implemented according to test plan specifications.
Each test verifies specific TC acknowledgement behaviors.

* wip

* feat(testing): Add PICS guard for Terms & Conditions test steps

- Wrap test steps in PICS guard checks for "CGEN.S" and "CGEN.S.F00(TC)"
- Ensure test steps only execute when Terms & Conditions feature flag is enabled
- Maintain test logic while adding conditional execution based on PICS support

* Added PICS and PIXIT definitions to src/app/tests/suites/certification/PICS.yaml

* refactor: Extract commission_devices functionality into reusable methods

Move commissioning logic from CommissionDeviceTest class into standalone
functions to improve code reusability. Introduce CommissioningInfo dataclass
to encapsulate commissioning parameters and add commission_device/
commission_devices helper functions.

The changes:
- Move SetupPayloadInfo dataclass to module level
- Add new CommissioningInfo dataclass for commissioning parameters
- Extract commission_device and commission_devices as standalone async functions
- Add commission_devices method to MatterBaseTest class
- Maintain backward compatibility with existing usage in CommissionDeviceTest

* Addressed PR comments

* Improve test assertions and manual testing steps

- Use Matter-specific type assertions in TC_CGEN_2_5
- Update TC_CGEN_2_8 manual testing flow and prompts

* restyle

* refactor: simplify CGEN feature identifier from CGEN.S.F00(TC) to CGEN.S.F00

- Update PICS.yaml and ci-pics-values to use simplified feature ID
- Update Python test files to use new feature identifier
- Improve error messaging when commissioning feature check fails
- Affected test files: TC_CGEN_2_5 through TC_CGEN_2_11

* Update TC_CGEN_2_5 to use Nullable type for TCUpdateDeadline validation

* Add type validation for TCAcceptedVersion and TCAcknowledgements
Copy link

github-actions bot commented Feb 10, 2025

PR #37486: Size comparison from 37a2d68 to 62ca908

Full report (3 builds for cc32xx, stm32)
platform target config section 37a2d68 62ca908 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 616966 617186 220 0.0
RAM 205908 205948 40 0.0
lock CC3235SF_LAUNCHXL FLASH 657054 657338 284 0.0
RAM 206060 206092 32 0.0
stm32 light STM32WB5MM-DK FLASH 481696 481672 -24 -0.0
RAM 144844 144876 32 0.0

@mergify mergify bot added the conflict label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants