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

[ICD] Improve ICDClientStorage #36054

Closed

Conversation

yunhanw-google
Copy link
Contributor

CP #36036 to 1.4 branch, which has been merged to master

mkardous-silabs and others added 7 commits October 8, 2024 12:58
…Time ICDs (project-chip#35956) (project-chip#35960)

* Remove optional spec check

* Add static_assert for the slow poll config for SIT ICDs

* Add missing include

* fix restyler error

* fix spacing

* Remove client build flag since it is not used
* Add missing feature map bit

* Generation

Co-authored-by: Andrei Litvin <[email protected]>
* Refactor Sensor and LCD code

* Address review comments
…ect-chip#36028)

* [Android] Add StayActive support during commission flow for LIT (project-chip#35959)

* Fix crash when handling jStayActiveMsec (project-chip#35997)
…ip#36025) (project-chip#36031)

* Attempt to fix ESP32 builds by not compiling insights at all. This breaks insights, but should make CI pass

* Fix typo

* Another better fix: pull in the other dependency too

---------

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

-- when DeleteAllEntries is triggered, and all fabric are removed, we need remove
ICDFabricList from persistent storage, if there is at least 1 fabric in
table, we would update fabricList vector and persistent storage.
-- when fabric does not exist, storeEntry needs to return invalid fabric
error, and deleteEntry or deleteAllEntries needs to return no error.
-- Add multiple unit tests to cover
DeleteAllEntries/StoreEntry/CheckInHandling for
multiple fabrics

* Update DefaultICDClientStorage.cpp

Co-authored-by: mkardous-silabs <[email protected]>

* Update DefaultICDClientStorage.cpp

Co-authored-by: mkardous-silabs <[email protected]>

* Update DefaultICDClientStorage.cpp

Co-authored-by: mkardous-silabs <[email protected]>

* Update DefaultICDClientStorage.cpp

Co-authored-by: mkardous-silabs <[email protected]>

* Update DefaultICDClientStorage.cpp

Co-authored-by: mkardous-silabs <[email protected]>

* address comments

* Restyled by whitespace

* Restyled by clang-format

* address comments

* address comments and add more tests

* Restyled by whitespace

* Restyled by clang-format

---------

Co-authored-by: mkardous-silabs <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
@yunhanw-google yunhanw-google requested review from a team as code owners October 12, 2024 21:52
Copy link

semanticdiff-com bot commented Oct 12, 2024

Review changes with SemanticDiff.

Analyzed 2 of 43 files.

File Information
Filename Status
third_party/silabs/efr32_sdk.gni Unsupported file format
✔️ third_party/silabs/matter_support Analyzed
third_party/silabs/silabs_board.gni Unsupported file format
src/controller/java/AndroidDeviceControllerWrapper.cpp Unsupported file format
✔️ src/controller/java/src/chip/devicecontroller/ICDRegistrationInfo.java Analyzed
src/app/tests/BUILD.gn Unsupported file format
src/app/tests/TestCheckInHandler.cpp Unsupported file format
src/app/tests/TestDefaultICDClientStorage.cpp Unsupported file format
src/app/icd/icd.gni Unsupported file format
src/app/icd/server/BUILD.gn Unsupported file format
src/app/icd/server/ICDConfigurationData.cpp Unsupported file format
src/app/icd/server/ICDConfigurationData.h Unsupported file format
src/app/icd/server/ICDManager.cpp Unsupported file format
src/app/icd/client/CheckInHandler.cpp Unsupported file format
src/app/icd/client/DefaultICDClientStorage.cpp Unsupported file format
src/app/icd/client/DefaultICDClientStorage.h Unsupported file format
examples/thermostat/silabs/BUILD.gn Unsupported file format
examples/thermostat/silabs/src/SensorManager.cpp Unsupported file format
examples/smoke-co-alarm-app/silabs/build_for_wifi_args.gni Unsupported file format
examples/smoke-co-alarm-app/silabs/openthread.gni Unsupported file format
examples/platform/silabs/Si70xxSensor.cpp Unsupported file format
examples/platform/silabs/Si70xxSensor.h Unsupported file format
examples/platform/silabs/TemperatureSensor.cpp Unsupported file format
examples/platform/silabs/TemperatureSensor.h Unsupported file format
examples/platform/silabs/efr32/BUILD.gn Unsupported file format
examples/platform/silabs/display/demo-ui.c Unsupported file format
examples/platform/silabs/display/lcd.h Unsupported file format
examples/platform/silabs/SiWx917/BUILD.gn Unsupported file format
examples/lock-app/nxp/mcxw71/args.gni Unsupported file format
examples/lock-app/nxp/k32w1/args.gni Unsupported file format
examples/lit-icd-app/silabs/build_for_wifi_args.gni Unsupported file format
examples/lit-icd-app/silabs/openthread.gni Unsupported file format
examples/light-switch-app/light-switch-common/light-switch-app.matter Unsupported file format
examples/light-switch-app/light-switch-common/light-switch-app.zap Unsupported file format
examples/contact-sensor-app/nxp/mcxw71/args.gni Unsupported file format
examples/contact-sensor-app/nxp/k32w1/args.gni Unsupported file format
examples/contact-sensor-app/nxp/k32w0/args.gni Unsupported file format
examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/DeviceProvisioningFragment.kt Unsupported file format
docs/guides/ti/matter-users-guide/enabling_icd_on_ti_devices.md Unsupported file format
config/nrfconnect/chip-module/CMakeLists.txt Unsupported file format
config/esp32/components/chip/CMakeLists.txt Unsupported file format
config/esp32/components/chip/Kconfig Unsupported file format
config/esp32/components/chip/idf_component.yml Unsupported file format

@github-actions github-actions bot added documentation Improvements or additions to documentation examples platform controller app config tests icd Intermittently Connected Devices labels Oct 12, 2024
Copy link

mergify bot commented Oct 12, 2024

⚠️ The sha of the head commit of this PR conflicts with #36055. Mergify cannot evaluate rules on this PR. ⚠️

Copy link

github-actions bot commented Oct 12, 2024

PR #36054: Size comparison from bf37d4e to 286f03f

Full report (93 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section bf37d4e 286f03f change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1349682 1349682 0 0.0
RAM 104120 104120 0 0.0
bl702 lighting-app bl702+eth FLASH 647718 647718 0 0.0
RAM 25233 25233 0 0.0
bl702+wifi FLASH 825204 825204 0 0.0
RAM 13965 13965 0 0.0
bl706+mfd+rpc+littlefs FLASH 1053834 1053834 0 0.0
RAM 23821 23821 0 0.0
bl702l lighting-app bl702l+mfd+littlefs FLASH 974974 974974 0 0.0
RAM 16468 16468 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 829492 829492 0 0.0
RAM 123452 123452 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 814832 814832 0 0.0
RAM 125332 125332 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 761396 761396 0 0.0
RAM 113824 113824 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 745624 745624 0 0.0
RAM 114016 114016 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 617154 617154 0 0.0
RAM 205908 205908 0 0.0
lock CC3235SF_LAUNCHXL FLASH 657258 657258 0 0.0
RAM 206060 206060 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 678477 678477 0 0.0
RAM 78668 78668 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 698321 698321 0 0.0
RAM 81300 81300 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 698321 698321 0 0.0
RAM 81300 81300 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 655257 655257 0 0.0
RAM 73736 73736 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 614805 614805 0 0.0
RAM 71628 71628 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634433 634433 0 0.0
RAM 74180 74180 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634433 634433 0 0.0
RAM 74180 74180 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 634125 634125 0 0.0
RAM 74676 74676 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 653833 653833 0 0.0
RAM 77228 77228 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 653833 653833 0 0.0
RAM 77228 77228 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609429 609429 0 0.0
RAM 68764 68764 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 629289 629289 0 0.0
RAM 71396 71396 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 629289 629289 0 0.0
RAM 71396 71396 0 0.0
efr32 lock-app BRD4187C FLASH 924824 924824 0 0.0
RAM 159708 159708 0 0.0
BRD4338a FLASH 741352 741344 -8 -0.0
RAM 231008 231008 0 0.0
window-app BRD4187C FLASH 1018140 1018140 0 0.0
RAM 128052 128052 0 0.0
esp32 all-clusters-app c3devkit DRAM 94248 94248 0 0.0
FLASH 1538700 1538700 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115192 115192 0 0.0
FLASH 1549010 1549010 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4688 4688 0 0.0
FLASH 2781021 2781021 0 0.0
RAM 129520 129520 0 0.0
all-clusters-app debug unknown 5528 5528 0 0.0
FLASH 6085626 6085626 0 0.0
RAM 514752 514752 0 0.0
all-clusters-minimal-app debug unknown 5424 5424 0 0.0
FLASH 5418300 5418300 0 0.0
RAM 241200 241200 0 0.0
bridge-app debug unknown 5408 5408 0 0.0
FLASH 4751760 4751760 0 0.0
RAM 218384 218384 0 0.0
chip-tool debug unknown 5960 5960 0 0.0
FLASH 12781402 12781402 0 0.0
RAM 567890 567890 0 0.0
chip-tool-ipv6only arm64 unknown 20880 20880 0 0.0
FLASH 11397584 11397584 0 0.0
RAM 618432 618432 0 0.0
fabric-admin debug unknown 5792 5792 0 0.0
FLASH 1109230 1109230 0 0.0
RAM 567578 567578 0 0.0
fabric-bridge-app debug unknown 4632 4632 0 0.0
FLASH 4575394 4575394 0 0.0
RAM 205048 205048 0 0.0
lighting-app debug+rpc+ui unknown 6056 6056 0 0.0
FLASH 5692353 5692353 0 0.0
RAM 228488 228488 0 0.0
lock-app debug unknown 5344 5344 0 0.0
FLASH 4801336 4801336 0 0.0
RAM 204472 204472 0 0.0
ota-provider-app debug unknown 4720 4720 0 0.0
FLASH 4430760 4430760 0 0.0
RAM 198192 198192 0 0.0
ota-requestor-app debug unknown 4656 4656 0 0.0
FLASH 4569574 4569574 0 0.0
RAM 202760 202760 0 0.0
shell debug unknown 4216 4216 0 0.0
FLASH 3111085 3111085 0 0.0
RAM 159280 159280 0 0.0
thermostat-no-ble arm64 unknown 9448 9448 0 0.0
FLASH 4319488 4319488 0 0.0
RAM 242888 242888 0 0.0
tv-app debug unknown 5624 5624 0 0.0
FLASH 6029669 6029669 0 0.0
RAM 588256 588256 0 0.0
tv-casting-app debug unknown 5208 5208 0 0.0
FLASH 10979373 10979373 0 0.0
RAM 656960 656960 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 914460 914460 0 0.0
RAM 142359 142359 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 885276 885276 0 0.0
RAM 140498 140498 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 847880 847880 0 0.0
RAM 141261 141261 0 0.0
light-switch-app nrf52840dk_nrf52840 FLASH 791968 791968 0 0.0
RAM 132331 132331 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 936376 936376 0 0.0
RAM 130904 130904 0 0.0
lighting-app nrf52840dk_nrf52840+rpc FLASH 883564 883564 0 0.0
RAM 146749 146749 0 0.0
nrf52840dongle_nrf52840 FLASH 824280 824280 0 0.0
RAM 154611 154611 0 0.0
nrf5340dk_nrf5340_cpuapp FLASH 780548 780548 0 0.0
RAM 145759 145759 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 936376 936376 0 0.0
RAM 130904 130904 0 0.0
lock-app nrf52840dk_nrf52840 FLASH 807032 807032 0 0.0
RAM 132886 132886 0 0.0
nrf5340dk_nrf5340_cpuapp FLASH 732584 732584 0 0.0
RAM 133016 133016 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 952376 952376 0 0.0
RAM 131459 131459 0 0.0
pump-app nrf52840dk_nrf52840 FLASH 759808 759808 0 0.0
RAM 131677 131677 0 0.0
pump-controller-app nrf52840dk_nrf52840 FLASH 744996 744996 0 0.0
RAM 131436 131436 0 0.0
nxp contact k32w0+release FLASH 582216 582216 0 0.0
RAM 70952 70952 0 0.0
k32w1+release FLASH 597048 597048 0 0.0
RAM 63176 63176 0 0.0
mcxw71+release FLASH 596808 596808 0 0.0
RAM 63176 63176 0 0.0
light k32w0+release FLASH 618732 618732 0 0.0
RAM 70416 70416 0 0.0
k32w1+release FLASH 683040 683040 0 0.0
RAM 48808 48808 0 0.0
mcxw71+release FLASH 683040 683040 0 0.0
RAM 48808 48808 0 0.0
lock k32w1+release FLASH 705408 705408 0 0.0
RAM 67316 67316 0 0.0
mcxw71+release FLASH 705416 705416 0 0.0
RAM 67316 67316 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1646340 1646340 0 0.0
RAM 211400 211400 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1552388 1552388 0 0.0
RAM 208200 208200 0 0.0
light cy8ckit_062s2_43012 FLASH 1467860 1467860 0 0.0
RAM 201200 201200 0 0.0
lock cy8ckit_062s2_43012 FLASH 1464932 1464932 0 0.0
RAM 225560 225560 0 0.0
qpg lighting-app qpg6105+debug FLASH 660528 660528 0 0.0
RAM 105396 105396 0 0.0
lock-app qpg6105+debug FLASH 618548 618548 0 0.0
RAM 99864 99864 0 0.0
stm32 light STM32WB5MM-DK FLASH 481824 481824 0 0.0
RAM 144844 144844 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 620986 620986 0 0.0
RAM 50648 50648 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 688188 688188 0 0.0
RAM 148488 148488 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 781180 781180 0 0.0
RAM 110440 110440 0 0.0
bridge-app tlsr9258a FLASH 681086 681086 0 0.0
RAM 91304 91304 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 620750 620750 0 0.0
RAM 50600 50600 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 708692 708692 0 0.0
RAM 73940 73940 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 625692 625692 0 0.0
RAM 144468 144468 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 811452 811452 0 0.0
RAM 99100 99100 0 0.0
lock-app-dfu tlsr9528a FLASH 656656 656656 0 0.0
RAM 66660 66660 0 0.0
ota-requestor-app tlsr9258a FLASH 697064 697064 0 0.0
RAM 90896 90896 0 0.0
pump-app-usb tlsr9518adk80d FLASH 634384 634384 0 0.0
RAM 55476 55476 0 0.0
pump-controller-app tlsr9518adk80d FLASH 611574 611574 0 0.0
RAM 52720 52720 0 0.0
shell tlsr9518adk80d FLASH 467872 467872 0 0.0
RAM 68168 68168 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 627900 627900 0 0.0
RAM 52320 52320 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 653706 653706 0 0.0
RAM 56268 56268 0 0.0
thermostat tlsr9518adk80d FLASH 638306 638306 0 0.0
RAM 53112 53112 0 0.0
window-covering tlsr9118bdk40d FLASH 524444 524444 0 0.0
RAM 97444 97444 0 0.0
tizen all-clusters-app arm unknown 4904 4904 0 0.0
FLASH 1726772 1726772 0 0.0
RAM 89084 89084 0 0.0
chip-tool-ubsan arm unknown 10528 10528 0 0.0
FLASH 17719674 17719674 0 0.0
RAM 7715160 7715160 0 0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app config controller documentation Improvements or additions to documentation examples icd Intermittently Connected Devices platform review - pending tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants