Skip to content

Conversation

Hayk10002
Copy link
Contributor

@Hayk10002 Hayk10002 commented Oct 3, 2025

Summary

Add unit tests for the

  • ResetWatermark command
  • SoftwareFault event

Related issues

#41059

Testing

Adds new unit tests, just needs to pass CI.

Notes

There is the attribute ThreadMetrics that can be tested but isn't. It needs an AttributeValueEncoder and possibly an AttributeValueDecoder to be set up to be tested, and this can be made very easy with an infrustructure for this. There is already TestServerClusterContext implemented, so a more capable infrastructure can be made from it.

@github-actions github-actions bot added the app label Oct 3, 2025
Copy link

github-actions bot commented Oct 3, 2025

PR #41246: Size comparison from 7f569a7 to 22fd1f1

Full report (5 builds for cc32xx, realtek, stm32)
platform target config section 7f569a7 22fd1f1 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 552994 552994 0 0.0
RAM 204928 204928 0 0.0
lock CC3235SF_LAUNCHXL FLASH 585686 585686 0 0.0
RAM 205160 205160 0 0.0
realtek light-switch-app rtl8777g FLASH 704160 704160 0 0.0
RAM 106720 106720 0 0.0
lighting-app rtl8777g FLASH 755320 755320 0 0.0
RAM 127076 127076 0 0.0
stm32 light STM32WB5MM-DK FLASH 467764 467764 0 0.0
RAM 141152 141152 0 0.0

Copy link

github-actions bot commented Oct 3, 2025

PR #41246: Size comparison from 7f569a7 to e18ab40

Full report (36 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 7f569a7 e18ab40 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1104336 1104336 0 0.0
RAM 178698 178698 0 0.0
bl702 lighting-app bl702+eth FLASH 658780 658780 0 0.0
RAM 134761 134761 0 0.0
bl702+wifi FLASH 834848 834848 0 0.0
RAM 124245 124245 0 0.0
bl706+mfd+rpc+littlefs FLASH 1068114 1068114 0 0.0
RAM 117077 117077 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 898334 898334 0 0.0
RAM 105412 105412 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 980754 980754 0 0.0
RAM 109572 109572 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 768156 768156 0 0.0
RAM 103152 103152 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 779792 779792 0 0.0
RAM 108312 108312 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 725772 725772 0 0.0
RAM 97220 97220 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 710240 710240 0 0.0
RAM 97436 97436 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 552994 552994 0 0.0
RAM 204928 204928 0 0.0
lock CC3235SF_LAUNCHXL FLASH 585686 585686 0 0.0
RAM 205160 205160 0 0.0
efr32 lock-app BRD4187C FLASH 959864 959864 0 0.0
RAM 126184 126184 0 0.0
BRD4338a FLASH 755528 755520 -8 -0.0
RAM 255484 255484 0 0.0
window-app BRD4187C FLASH 1053692 1053692 0 0.0
RAM 122344 122344 0 0.0
esp32 all-clusters-app c3devkit DRAM 102976 102976 0 0.0
FLASH 1787310 1787310 0 0.0
IRAM 83862 83862 0 0.0
nxp contact mcxw71+release FLASH 690368 690368 0 0.0
RAM 61392 61392 0 0.0
lighting mcxw71+release FLASH 721928 721928 0 0.0
RAM 68036 68036 0 0.0
lock mcxw71+release FLASH 769024 769024 0 0.0
RAM 61764 61764 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1668932 1668932 0 0.0
RAM 213004 213004 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1587356 1587356 0 0.0
RAM 210268 210268 0 0.0
light cy8ckit_062s2_43012 FLASH 1454788 1454788 0 0.0
RAM 197000 197000 0 0.0
lock cy8ckit_062s2_43012 FLASH 1487100 1487100 0 0.0
RAM 224720 224720 0 0.0
qpg lighting-app qpg6200+debug FLASH 833872 833872 0 0.0
RAM 127548 127548 0 0.0
lock-app qpg6200+debug FLASH 770868 770868 0 0.0
RAM 118516 118516 0 0.0
realtek light-switch-app rtl8777g FLASH 704160 704160 0 0.0
RAM 106720 106720 0 0.0
lighting-app rtl8777g FLASH 755320 755320 0 0.0
RAM 127076 127076 0 0.0
stm32 light STM32WB5MM-DK FLASH 467764 467764 0 0.0
RAM 141152 141152 0 0.0
telink bridge-app tl7218x FLASH 707538 707538 0 0.0
RAM 90308 90308 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795368 795368 0 0.0
RAM 40860 40860 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 786570 786570 0 0.0
RAM 93504 93504 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 713362 713362 0 0.0
RAM 51680 51680 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 746666 746666 0 0.0
RAM 70728 70728 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 723518 723518 0 0.0
RAM 34428 34428 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 600792 600792 0 0.0
RAM 108552 108552 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819190 819194 4 0.0
RAM 91900 91900 0 0.0

Copy link

codecov bot commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.95%. Comparing base (f902839) to head (fc292bc).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #41246   +/-   ##
=======================================
  Coverage   50.94%   50.95%           
=======================================
  Files        1378     1378           
  Lines      100698   100698           
  Branches    13058    13056    -2     
=======================================
+ Hits        51302    51310    +8     
+ Misses      49396    49388    -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Hayk10002 Hayk10002 force-pushed the SoftwareDiagnosticsClusterUnitTesting branch from e18ab40 to 7cd9644 Compare October 6, 2025 12:19
Copy link

github-actions bot commented Oct 6, 2025

PR #41246: Size comparison from 4df7a27 to 7cd9644

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 4df7a27 7cd9644 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105078 1105078 0 0.0
RAM 178738 178738 0 0.0
bl702 lighting-app bl702+eth FLASH 659582 659582 0 0.0
RAM 134801 134801 0 0.0
bl702+wifi FLASH 835650 835650 0 0.0
RAM 124285 124285 0 0.0
bl706+mfd+rpc+littlefs FLASH 1068794 1068794 0 0.0
RAM 117117 117117 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899020 899020 0 0.0
RAM 105460 105460 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981812 981812 0 0.0
RAM 109612 109612 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 769208 769208 0 0.0
RAM 103184 103184 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 780868 780868 0 0.0
RAM 108352 108352 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 726840 726840 0 0.0
RAM 97252 97252 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 711316 711316 0 0.0
RAM 97468 97468 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 553942 553942 0 0.0
RAM 204968 204968 0 0.0
lock CC3235SF_LAUNCHXL FLASH 586674 586674 0 0.0
RAM 205200 205200 0 0.0
efr32 lock-app BRD4187C FLASH 961000 961000 0 0.0
RAM 126220 126220 0 0.0
BRD4338a FLASH 756832 756832 0 0.0
RAM 255520 255520 0 0.0
window-app BRD4187C FLASH 1055236 1055228 -8 -0.0
RAM 122416 122416 0 0.0
esp32 all-clusters-app c3devkit DRAM 103024 103024 0 0.0
FLASH 1788902 1788902 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 928944 928944 0 0.0
RAM 160991 160991 0 0.0
nxp contact mcxw71+release FLASH 691552 691552 0 0.0
RAM 61424 61424 0 0.0
lighting mcxw71+release FLASH 723104 723104 0 0.0
RAM 68076 68076 0 0.0
lock mcxw71+release FLASH 770344 770344 0 0.0
RAM 61788 61788 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1670812 1670812 0 0.0
RAM 213060 213060 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1589252 1589252 0 0.0
RAM 210324 210324 0 0.0
light cy8ckit_062s2_43012 FLASH 1456116 1456116 0 0.0
RAM 197040 197040 0 0.0
lock cy8ckit_062s2_43012 FLASH 1488412 1488412 0 0.0
RAM 224760 224760 0 0.0
qpg lighting-app qpg6200+debug FLASH 835200 835200 0 0.0
RAM 127592 127592 0 0.0
lock-app qpg6200+debug FLASH 771972 771972 0 0.0
RAM 118552 118552 0 0.0
realtek light-switch-app rtl8777g FLASH 705184 705184 0 0.0
RAM 106756 106756 0 0.0
lighting-app rtl8777g FLASH 756376 756376 0 0.0
RAM 127120 127120 0 0.0
stm32 light STM32WB5MM-DK FLASH 468884 468884 0 0.0
RAM 141192 141192 0 0.0
telink bridge-app tl7218x FLASH 708284 708284 0 0.0
RAM 90340 90340 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795816 795816 0 0.0
RAM 40896 40896 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 787012 787012 0 0.0
RAM 93540 93540 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 713818 713818 0 0.0
RAM 51712 51712 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 747122 747122 0 0.0
RAM 70760 70760 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 723974 723974 0 0.0
RAM 34460 34460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601240 601240 0 0.0
RAM 108588 108588 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819632 819636 4 0.0
RAM 91936 91936 0 0.0

@Hayk10002 Hayk10002 force-pushed the SoftwareDiagnosticsClusterUnitTesting branch from 7cd9644 to 7b8e089 Compare October 7, 2025 13:17
@Hayk10002
Copy link
Contributor Author

/gemini review

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 valuable unit tests for the ResetWatermark command and the SoftwareFault event in the SoftwareDiagnostics cluster. The implementation is well done. I've identified one high-severity issue in the new SoftwareFaultListenerTest where a global listener is not cleaned up after the test, which could cause other tests to fail. Please see my detailed comment for the suggested fix.

@Hayk10002
Copy link
Contributor Author

/gemini review

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

The pull request adds valuable unit tests for the SoftwareDiagnostics cluster, specifically for the ResetWatermark command and the SoftwareFault event. The new tests are well-structured and follow existing patterns in the codebase. The changes to the build files and test helpers are appropriate. I have one minor suggestion to improve code conciseness.

Copy link

github-actions bot commented Oct 7, 2025

PR #41246: Size comparison from 867bf47 to f9a08bd

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section 867bf47 f9a08bd change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105078 1105078 0 0.0
RAM 178738 178738 0 0.0
bl702 lighting-app bl702+eth FLASH 659582 659582 0 0.0
RAM 134801 134801 0 0.0
bl702+wifi FLASH 835650 835650 0 0.0
RAM 124285 124285 0 0.0
bl706+mfd+rpc+littlefs FLASH 1068794 1068794 0 0.0
RAM 117117 117117 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899020 899020 0 0.0
RAM 105460 105460 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981812 981812 0 0.0
RAM 109612 109612 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 769208 769208 0 0.0
RAM 103184 103184 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 780868 780868 0 0.0
RAM 108352 108352 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 726840 726840 0 0.0
RAM 97252 97252 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 711316 711316 0 0.0
RAM 97468 97468 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 553942 553942 0 0.0
RAM 204968 204968 0 0.0
lock CC3235SF_LAUNCHXL FLASH 586674 586674 0 0.0
RAM 205200 205200 0 0.0
efr32 lock-app BRD4187C FLASH 961000 961000 0 0.0
RAM 126220 126220 0 0.0
BRD4338a FLASH 756960 756960 0 0.0
RAM 255520 255520 0 0.0
window-app BRD4187C FLASH 1055236 1055228 -8 -0.0
RAM 122416 122416 0 0.0
esp32 all-clusters-app c3devkit DRAM 103024 103024 0 0.0
FLASH 1788902 1788902 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 928944 928944 0 0.0
RAM 160991 160991 0 0.0
nxp contact mcxw71+release FLASH 691552 691552 0 0.0
RAM 61424 61424 0 0.0
lighting mcxw71+release FLASH 723104 723104 0 0.0
RAM 68076 68076 0 0.0
lock mcxw71+release FLASH 770344 770344 0 0.0
RAM 61788 61788 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1670812 1670812 0 0.0
RAM 213060 213060 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1589252 1589252 0 0.0
RAM 210324 210324 0 0.0
light cy8ckit_062s2_43012 FLASH 1456116 1456116 0 0.0
RAM 197040 197040 0 0.0
lock cy8ckit_062s2_43012 FLASH 1488412 1488412 0 0.0
RAM 224760 224760 0 0.0
qpg lighting-app qpg6200+debug FLASH 835216 835216 0 0.0
RAM 127592 127592 0 0.0
lock-app qpg6200+debug FLASH 771972 771972 0 0.0
RAM 118552 118552 0 0.0
realtek light-switch-app rtl8777g FLASH 705184 705184 0 0.0
RAM 106756 106756 0 0.0
lighting-app rtl8777g FLASH 756376 756376 0 0.0
RAM 127120 127120 0 0.0
stm32 light STM32WB5MM-DK FLASH 468884 468884 0 0.0
RAM 141192 141192 0 0.0
telink bridge-app tl7218x FLASH 708284 708284 0 0.0
RAM 90340 90340 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795816 795816 0 0.0
RAM 40896 40896 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 787012 787012 0 0.0
RAM 93540 93540 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 713818 713818 0 0.0
RAM 51712 51712 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 747122 747122 0 0.0
RAM 70760 70760 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 723974 723974 0 0.0
RAM 34460 34460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601240 601240 0 0.0
RAM 108588 108588 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819632 819636 4 0.0
RAM 91936 91936 0 0.0

@Hayk10002 Hayk10002 marked this pull request as ready for review October 8, 2025 13:42
@Hayk10002 Hayk10002 force-pushed the SoftwareDiagnosticsClusterUnitTesting branch from f9a08bd to 0ecb518 Compare October 8, 2025 13:42
Copy link

github-actions bot commented Oct 8, 2025

PR #41246: Size comparison from e72c900 to 0ecb518

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section e72c900 0ecb518 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105094 1105094 0 0.0
RAM 178738 178738 0 0.0
bl702 lighting-app bl702+eth FLASH 659594 659594 0 0.0
RAM 134801 134801 0 0.0
bl702+wifi FLASH 835662 835662 0 0.0
RAM 124285 124285 0 0.0
bl706+mfd+rpc+littlefs FLASH 1068806 1068806 0 0.0
RAM 117117 117117 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899020 899020 0 0.0
RAM 105460 105460 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981824 981824 0 0.0
RAM 109612 109612 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 769224 769224 0 0.0
RAM 103184 103184 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 780868 780868 0 0.0
RAM 108344 108344 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 726856 726856 0 0.0
RAM 97252 97252 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 711316 711316 0 0.0
RAM 97468 97468 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 553942 553942 0 0.0
RAM 204968 204968 0 0.0
lock CC3235SF_LAUNCHXL FLASH 586674 586674 0 0.0
RAM 205200 205200 0 0.0
efr32 lock-app BRD4187C FLASH 960968 960968 0 0.0
RAM 126220 126220 0 0.0
BRD4338a FLASH 757000 756992 -8 -0.0
RAM 255512 255512 0 0.0
window-app BRD4187C FLASH 1055268 1055268 0 0.0
RAM 122416 122416 0 0.0
esp32 all-clusters-app c3devkit DRAM 103016 103016 0 0.0
FLASH 1789026 1789026 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 928944 928944 0 0.0
RAM 160985 160985 0 0.0
nxp contact mcxw71+release FLASH 691552 691552 0 0.0
RAM 61424 61424 0 0.0
lighting mcxw71+release FLASH 723120 723120 0 0.0
RAM 68076 68076 0 0.0
lock mcxw71+release FLASH 770344 770344 0 0.0
RAM 61788 61788 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1670868 1670868 0 0.0
RAM 213052 213052 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1589292 1589292 0 0.0
RAM 210316 210316 0 0.0
light cy8ckit_062s2_43012 FLASH 1456124 1456124 0 0.0
RAM 197040 197040 0 0.0
lock cy8ckit_062s2_43012 FLASH 1488452 1488452 0 0.0
RAM 224752 224752 0 0.0
qpg lighting-app qpg6200+debug FLASH 835208 835208 0 0.0
RAM 127592 127592 0 0.0
lock-app qpg6200+debug FLASH 771956 771956 0 0.0
RAM 118552 118552 0 0.0
realtek light-switch-app rtl8777g FLASH 705184 705184 0 0.0
RAM 106756 106756 0 0.0
lighting-app rtl8777g FLASH 756392 756392 0 0.0
RAM 127120 127120 0 0.0
stm32 light STM32WB5MM-DK FLASH 468892 468892 0 0.0
RAM 141192 141192 0 0.0
telink bridge-app tl7218x FLASH 708284 708284 0 0.0
RAM 90340 90340 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795816 795816 0 0.0
RAM 40896 40896 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 787012 787012 0 0.0
RAM 93540 93540 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 713818 713818 0 0.0
RAM 51712 51712 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 747122 747122 0 0.0
RAM 70760 70760 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 723974 723974 0 0.0
RAM 34460 34460 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601240 601240 0 0.0
RAM 108588 108588 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819632 819636 4 0.0
RAM 91936 91936 0 0.0

@Hayk10002 Hayk10002 force-pushed the SoftwareDiagnosticsClusterUnitTesting branch from 0ecb518 to acdf6be Compare October 9, 2025 17:28
Copy link

github-actions bot commented Oct 9, 2025

PR #41246: Size comparison from bfddff8 to acdf6be

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section bfddff8 acdf6be change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105398 1105398 0 0.0
RAM 178754 178754 0 0.0
bl702 lighting-app bl702+eth FLASH 659886 659886 0 0.0
RAM 134817 134817 0 0.0
bl702+wifi FLASH 835970 835970 0 0.0
RAM 124301 124301 0 0.0
bl706+mfd+rpc+littlefs FLASH 1069106 1069106 0 0.0
RAM 117133 117133 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899320 899320 0 0.0
RAM 105476 105476 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981868 981868 0 0.0
RAM 109628 109628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 769396 769396 0 0.0
RAM 103200 103200 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 781040 781040 0 0.0
RAM 108360 108360 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 727028 727028 0 0.0
RAM 97268 97268 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 711496 711496 0 0.0
RAM 97484 97484 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554146 554146 0 0.0
RAM 204976 204976 0 0.0
lock CC3235SF_LAUNCHXL FLASH 586862 586862 0 0.0
RAM 205208 205208 0 0.0
efr32 lock-app BRD4187C FLASH 961136 961136 0 0.0
RAM 126224 126224 0 0.0
BRD4338a FLASH 755880 755872 -8 -0.0
RAM 255500 255500 0 0.0
window-app BRD4187C FLASH 1055476 1055476 0 0.0
RAM 122420 122420 0 0.0
esp32 all-clusters-app c3devkit DRAM 103016 103016 0 0.0
FLASH 1789684 1789684 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 929632 929632 0 0.0
RAM 160987 160987 0 0.0
nxp contact mcxw71+release FLASH 691768 691768 0 0.0
RAM 61440 61440 0 0.0
lighting mcxw71+release FLASH 723336 723336 0 0.0
RAM 68092 68092 0 0.0
lock mcxw71+release FLASH 770560 770560 0 0.0
RAM 61804 61804 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671708 1671708 0 0.0
RAM 213052 213052 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1589524 1589524 0 0.0
RAM 210332 210332 0 0.0
light cy8ckit_062s2_43012 FLASH 1456340 1456340 0 0.0
RAM 197056 197056 0 0.0
lock cy8ckit_062s2_43012 FLASH 1488668 1488668 0 0.0
RAM 224768 224768 0 0.0
qpg lighting-app qpg6200+debug FLASH 835384 835384 0 0.0
RAM 127604 127604 0 0.0
lock-app qpg6200+debug FLASH 772132 772132 0 0.0
RAM 118572 118572 0 0.0
realtek light-switch-app rtl8777g FLASH 705360 705360 0 0.0
RAM 106776 106776 0 0.0
lighting-app rtl8777g FLASH 756560 756560 0 0.0
RAM 127132 127132 0 0.0
stm32 light STM32WB5MM-DK FLASH 469028 469028 0 0.0
RAM 141200 141200 0 0.0
telink bridge-app tl7218x FLASH 708400 708400 0 0.0
RAM 90356 90356 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795932 795932 0 0.0
RAM 40908 40908 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 787128 787128 0 0.0
RAM 93552 93552 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 713934 713934 0 0.0
RAM 51724 51724 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 747238 747238 0 0.0
RAM 70772 70772 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724090 724090 0 0.0
RAM 34472 34472 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601358 601358 0 0.0
RAM 108600 108600 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819748 819752 4 0.0
RAM 91948 91948 0 0.0

@Hayk10002 Hayk10002 force-pushed the SoftwareDiagnosticsClusterUnitTesting branch from acdf6be to fc292bc Compare October 13, 2025 13:26
Copy link

github-actions bot commented Oct 13, 2025

PR #41246: Size comparison from f902839 to fc292bc

Full report (37 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
platform target config section f902839 fc292bc change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1105406 1105406 0 0.0
RAM 178754 178754 0 0.0
bl702 lighting-app bl702+eth FLASH 659894 659894 0 0.0
RAM 134825 134825 0 0.0
bl702+wifi FLASH 835978 835978 0 0.0
RAM 124301 124301 0 0.0
bl706+mfd+rpc+littlefs FLASH 1069114 1069114 0 0.0
RAM 117141 117141 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 899328 899328 0 0.0
RAM 105476 105476 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 981876 981876 0 0.0
RAM 109628 109628 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 769432 769432 0 0.0
RAM 103208 103208 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 781076 781076 0 0.0
RAM 108360 108360 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 727072 727072 0 0.0
RAM 97276 97276 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 711540 711540 0 0.0
RAM 97484 97484 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 554310 554310 0 0.0
RAM 205544 205544 0 0.0
lock CC3235SF_LAUNCHXL FLASH 587034 587034 0 0.0
RAM 205768 205768 0 0.0
efr32 lock-app BRD4187C FLASH 961168 961168 0 0.0
RAM 126228 126228 0 0.0
BRD4338a FLASH 755896 755888 -8 -0.0
RAM 255516 255516 0 0.0
window-app BRD4187C FLASH 1055508 1055508 0 0.0
RAM 122424 122424 0 0.0
esp32 all-clusters-app c3devkit DRAM 103016 103016 0 0.0
FLASH 1792516 1792516 0 0.0
IRAM 83862 83862 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 929968 929968 0 0.0
RAM 160987 160987 0 0.0
nxp contact mcxw71+release FLASH 691800 691800 0 0.0
RAM 61440 61440 0 0.0
lighting mcxw71+release FLASH 723368 723368 0 0.0
RAM 68100 68100 0 0.0
lock mcxw71+release FLASH 770592 770592 0 0.0
RAM 61804 61804 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1672460 1672460 0 0.0
RAM 213620 213620 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1589940 1589940 0 0.0
RAM 210900 210900 0 0.0
light cy8ckit_062s2_43012 FLASH 1456772 1456772 0 0.0
RAM 197616 197616 0 0.0
lock cy8ckit_062s2_43012 FLASH 1489084 1489084 0 0.0
RAM 225328 225328 0 0.0
qpg lighting-app qpg6200+debug FLASH 835432 835432 0 0.0
RAM 127604 127604 0 0.0
lock-app qpg6200+debug FLASH 772180 772180 0 0.0
RAM 118580 118580 0 0.0
realtek light-switch-app rtl8777g FLASH 705368 705368 0 0.0
RAM 106784 106784 0 0.0
lighting-app rtl8777g FLASH 756568 756568 0 0.0
RAM 127132 127132 0 0.0
stm32 light STM32WB5MM-DK FLASH 469068 469068 0 0.0
RAM 141208 141208 0 0.0
telink bridge-app tl7218x FLASH 708408 708408 0 0.0
RAM 90356 90356 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 795940 795940 0 0.0
RAM 40908 40908 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 787136 787136 0 0.0
RAM 93552 93552 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 713942 713942 0 0.0
RAM 51724 51724 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 747246 747246 0 0.0
RAM 70772 70772 0 0.0
light-switch-app-ota-factory-data tl3218x_retention FLASH 724098 724098 0 0.0
RAM 34472 34472 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601366 601366 0 0.0
RAM 108600 108600 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 819756 819760 4 0.0
RAM 91948 91948 0 0.0

@andy31415 andy31415 requested a review from Copilot October 14, 2025 12:57
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds unit tests for the SoftwareDiagnostics cluster, specifically targeting the ResetWatermark command and SoftwareFault event functionality. The changes enhance test coverage for cluster operations that were previously untested.

Key changes:

  • Adds unit test for the ResetWatermark command to verify it correctly calls through to the provider
  • Adds unit test for the SoftwareFault event listener to verify event generation and data integrity
  • Introduces test infrastructure dependencies to support event testing

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/app/clusters/software-diagnostics-server/tests/TestSoftwareDiagnosticsCluster.cpp Adds new unit tests for ResetWatermark command and SoftwareFault event, includes necessary headers and test infrastructure
src/app/clusters/software-diagnostics-server/tests/BUILD.gn Adds dependency on server-cluster testing framework to support new test functionality

@andy31415 andy31415 added the sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews. label Oct 14, 2025
@mergify mergify bot merged commit be6d3f9 into project-chip:master Oct 14, 2025
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app review - pending sdk-maintainer-approved PR marked by `matter-sdk-maintainers` as suitable for MERGE - meets guideline & sufficient reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants