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

Rebase test #34285

Closed
wants to merge 38 commits into from
Closed

Rebase test #34285

wants to merge 38 commits into from

Conversation

lazarkov
Copy link
Contributor

!!!!!!!!!! Please delete the instructions below and replace with PR description

If you have an issue number, please use a syntax of
Fixes #12345 and a brief change description

If you do not have an issue number, please have a good description of
the problem and the fix. Help the reviewer understand what to expect.

Make sure you delete these instructions (to prove you have read them).

!!!!!!!!!! Instructions end

lazarkov and others added 30 commits July 8, 2024 13:35
* There is no need for SupportsAliroProvisioning checks in Aliro command
  handlers.  If we got into that code, that means that we recognized the command
  ID on the relevant endpoint's Door Lock cluster, and if we passed cert that
  means that we had the right feature map bit set too.

* There is no reason to do conditional MatterReportingAttributeChangeCallback
  for the AliroGroupResolvingKey attribute.  If we don't support the attribute,
  the call will just be a no-op.

* There's no reason to pass attribute paths to methods that do not use them.
…ion soft timer expiry (project-chip#34095)

* Adds fix for WiFi task looping

* Adds fix for BLE task priority and indication soft timer expiry

* Adds fix for return check

* Remove unused cred and add length check

* aligned include

* Replace `lx` with `x` for all sl_status_t logging

* Refactor posting of events to the end of the codeblock

* Adds `BLE_DRIVER_TASK_PRIORITY`

* Adds static_cast for status in ChipLogging

* chore: Refactor show_scan_results function to improve readability and maintainability

* chore: Update WiFi join function to use strnlen for SSID length calculation

* chore: Update WiFi join function to use strnlen for SSID length calculation

* chore: Update BSSID array size in WiFi scan result struct

* chore: Update SLAAC OK log message to use formatted IPv6 address

* Refactor show_scan_results function for improved readability and maintainability

* Refactor show_scan_results function to fix null termination bug

* Refactor show_scan_results function to fix null termination bug

* Adds fix for NCP macros

* Revert BLE timer changes

* Fix passkey length validation in sl_wifi_if.cpp

* Refactor BLEManagerImpl::_OnPlatformEvent for improved code readability and maintainability

* Refactor BLEManagerImpl::_OnPlatformEvent for improved code readability and maintainability

* Revert "Refactor BLEManagerImpl::_OnPlatformEvent for improved code readability and maintainability"

This reverts commit 9f1b180.

* Added locks to avoid race conditions

* Addressed comments

* Refactor sl_wifi_if.cpp for improved code readability and maintainability

* Fix passkey length validation in sl_wifi_if.cpp

* Fix BSSID length in wfx_rsi_get_ap_info and wfx_rsi_save_ap_info

* Refactor log statement after length checks

* Adds missing replace

---------

Co-authored-by: brosahay <3526930+brosahay@users.noreply.github.com>
examples/all-clusters-app was broken. Now it points to the correct location again
…ntext project-chip#30392  (project-chip#33481)

* Plumb Peer DNS-SD advertisement for TCP support into SessionSetup context

* Restyled by clang-format

* Fix unit tests

* Fix build error

* address Boris comments

* reflect mdns tcp support in session estabishment

* Restyled by clang-format

* Update src/app/OperationalSessionSetup.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Update src/app/OperationalSessionSetup.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* fixing minor comments

* Restyled by clang-format

* add an extra check on tcp support

* Restyled by clang-format

* add a check on tcp server enablement

* add peer info in log

* Restyled by clang-format

* update log message

---------

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
…34261)

- Address spec PRs project-chip#9305/project-chip#9401 re: removing gaps in
  attribute and command numbering.
- Introduce maturity level to everything.
… to serve as PW test fixture classes. (project-chip#34036)

* Modified MessagingContext and its subclasses as well as AppContext to reflect PW migration.

* Modifed all tests that use LoopbackMessagingContext or AppContext.  Moved LoopbackMessagingContext data to heap.

* Removed unneeded scope from call to parent setup/teardown

* Made some helper functions into class methods.

* Restyled by prettier-markdown

* Reverted TestICDManager back to using LoopbackMessagingContext

* fixing merge conflicts

* fixing merge conflicts

* Fixed duplicate code and missing semicolon

* Trying to update TestReadHandler_DataVersionFiltersTruncated

* Restyled by whitespace

* Restyled by clang-format

* fixed problem with the new TestReadHandler_DataVersionFiltersTruncated

* fix in tracing

* Changes to MessagingContext member variable initialization in response to code review

* Used std::unique_ptr for MessagingContext.mpData

---------

Co-authored-by: Restyled.io <commits@restyled.io>
…roject-chip#33299)

* test

* Adds 1/2 second to delay in step 8

* Adds loop in 0.1s cheks for 10s for reading updated attribute

* draft commit

* progress

* ready for review

* review comments

* review comments

* review comments

* Updates tests.yaml

* Fix lint

* Fix restyle

* Fix restyle

* Fix restyle

* Fix restyle

* pr review comments

* Removes get_attribute_value_wait function

* Step 10 wrapped in exception

* Removed unused imports

* Removes except Exception from step 10

* AttributeChangeCallback refactor

* Removes unnecessary variable

* Update endpoint assignment in step 5

* Moves steps into step array for TH

* Stardardizes reportInterval values for most steps

* Fix restyle

* Fix restyle

* Step 2 update (max_interval_ceiling_sec, min_interval_floor_sec)

* Removes print statement

* Fix restyle

* Updates AttributeChangeCallback

* Fix restyle

* Removes comment

* Removes comment

* Removes redundant acl restore lines

* Adds idm 4.2 to tests.yaml

* Adds idm 4.2 to tests.yaml

* Fix restyle

* Update tests.yaml

* Updates tests.yaml

* Adds comments for execution

* Updates AttributePath to AttributePath.from_attribute due to class changes

* Downgrades logging.info to logging.debug

* Removes setting min interval
When a CommandHandler went away, it invalidated its handles, but did not remove
them from the list.  This would cause it to fail a fatal assert when the
non-empty list was destroyed.

The fix is to clear the list once we have invalidated all the handles, since we
no longer need to track them once they have been invalidated.
There is no need for SupportsAliroProvisioning checks in Aliro command
handlers. If we got into that code, that means that we recognized the command ID
on the relevant endpoint's Door Lock cluster, and if we passed cert that means
that we had the right feature map bit set too.
* Updated device-energy-management-cluster.xml and energy-evse-cluster.xml using Alchemy and spec commit: dbf7c6dd7206fa4a4647f8a6218325fbe6c8ec6c Note more DEM PRs are yet to merge.

* Regen_all checked in.

* Added missing energy-management-app.matter

* Updated with spec PR project-chip#9251 merged to master.

* Updated with spec PR project-chip#9266 (change ForecastId -> ForecastID)

* regen_all

* Removed extra entryType="PowerAdjustStruct" which causes incorrect generation of a top-level list in the PowerAdjustmentCapability attribute.

* Removed extra min="-4611686018427387904" max="4611686018427387903" which causes ZAP to complain about more than 2 byte length.

* Updated after regen_all

* Reverted max="86400" in RANDOMIZATION_DELAY_WINDOW which upsets some builds

* Added missing autogen'd code for DEM changes.

* Fix up compilation errors caused by change to forecastID and powerAdjustementCapability list moving one level below.

* Added Water Heater Management cluster XML

* Added Water Heater Management to controller-clusters.zap

* Added Water Heater Management to zap_cluster_list.json

* Added Water Heater Management cluster to all-clusters-app.zap

* Tried to add apiMaturity="provisional" to silence deprecation warnings when running zap_regen_all.py. Also used Alchemy --featureXML.

* Added all-clusters-app.matter and controller-clusters.matter after regen_all

* Added output from regen_all.py

* Updated .zap files after adding provisional flag.

* Added Java matter controller now that apiMaturity=provisional has popped out.

* Trying to remove Thread Border Router Management in controller-clusters.zap as a test.

* Removed water-heater-management-server for now so compilers don't try to compile it.

* Reverted all-clusters-app.zap (removed Water heater). Reverted controller-clusters.zap (put back Thread Border Router, removed Water Heater)

* updated all-clusters-app.matter after removing WaterHeaterManagement cluster (to avoid compile failures).

* Candidate fix for THREAD_BORDER_ROUTER_MANAGEMENT_CLUSTER which resolves the error. [Should be a duplicate of PR project-chip#34000 when that merges.

* Addressing review comments from Boris

* Regenerate files

* Regenerate files correctly

* Removal optional conformance fro DayOfWeekForSequence/ChargingTargets fields in ChargingTargetScheduleStruct + regen zap files

* Updated energy-evse-cluster using Alchemy to match Spec PR:9317 based on review that DischargingCurrent was inconsistent.

* Updated after regen_all

---------

Co-authored-by: pcoleman <pcoleman@geotogether.com>
Co-authored-by: Andrei Litvin <andy314@gmail.com>
…nabled (project-chip#32807)

* Modify android chiptool crash

* Update src/controller/CHIPDeviceController.cpp

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>

* Change FindCommissionedDevice timing

* Change CommissioningStageComplete call timing

---------

Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
This makes it simpler to figure out who CASE establishments are happening with.
…w use the 3rd arg of TestStep to split the verification step into a separate string. Helps with readability and PEP8 long line warnings. (project-chip#34243)
…p#34257)

Contact sensor uses some gn args to enable OTA encryption.
This means that an upcoming OTA image must be encrypted
with the same key provided by chip_with_ota_key.

Signed-off-by: marius-alex-tache <marius.tache@nxp.com>
…hip#34155)

This mainly reuses the default defines for test setup parameters.
No functional changes.
Copy link

github-actions bot commented Jul 10, 2024

PR #34285: Size comparison from 171843d to 3ed9651

Increases above 0.2%:

platform target config section 171843d 3ed9651 change % change
linux tv-app debug FLASH 5605920 5626432 20512 0.4
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 171843d 3ed9651 change % change
bl602 lighting-app bl602 FLASH 1271340 1271340 0 0.0
RAM 95328 95328 0 0.0
bl602+mfd FLASH 1285598 1285598 0 0.0
RAM 95472 95472 0 0.0
bl602+rpc FLASH 1310300 1310300 0 0.0
RAM 103752 103752 0 0.0
bl702 lighting-app bl702 FLASH 1092178 1092178 0 0.0
RAM 15265 15265 0 0.0
bl702+mfd FLASH 1102872 1102872 0 0.0
RAM 15417 15417 0 0.0
bl702+rpc FLASH 1181988 1181988 0 0.0
RAM 24285 24285 0 0.0
bl706-eth FLASH 875510 875510 0 0.0
RAM 27376 27376 0 0.0
bl706-wifi FLASH 1127608 1127608 0 0.0
RAM 14709 14709 0 0.0
bl702l lighting-app bl702l FLASH 1079060 1079060 0 0.0
RAM 21836 21836 0 0.0
bl702l+mfd FLASH 1090322 1090322 0 0.0
RAM 21996 21996 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 798348 798348 0 0.0
RAM 109180 109180 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 816320 816320 0 0.0
RAM 116956 116956 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 807820 807820 0 0.0
RAM 111236 111236 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 760692 760692 0 0.0
RAM 105336 105336 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 746412 746412 0 0.0
RAM 105576 105576 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 606074 606074 0 0.0
RAM 204508 204508 0 0.0
lock CC3235SF_LAUNCHXL FLASH 651118 651118 0 0.0
RAM 204780 204780 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 667497 667497 0 0.0
RAM 77644 77644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 687341 687341 0 0.0
RAM 80276 80276 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 687341 687341 0 0.0
RAM 80276 80276 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 644277 644277 0 0.0
RAM 72712 72712 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 609129 609129 0 0.0
RAM 70804 70804 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 628765 628765 0 0.0
RAM 73348 73348 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 628765 628765 0 0.0
RAM 73348 73348 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624633 624633 0 0.0
RAM 73820 73820 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 644349 644349 0 0.0
RAM 76364 76364 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 644349 644349 0 0.0
RAM 76364 76364 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 593221 593221 0 0.0
RAM 67788 67788 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 613073 613073 0 0.0
RAM 70428 70428 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 613073 613073 0 0.0
RAM 70428 70428 0 0.0
efr32 lighting-app BRD4187C FLASH 924456 924456 0 0.0
RAM 137516 137516 0 0.0
lock-app BRD4338a FLASH 733244 733236 -8 -0.0
RAM 207900 207900 0 0.0
window-app BRD4187C FLASH 1012300 1012300 0 0.0
RAM 129620 129620 0 0.0
esp32 all-clusters-app c3devkit DRAM 90860 90860 0 0.0
FLASH 1469090 1469090 0 0.0
IRAM 75570 75570 0 0.0
m5stack DRAM 117412 117412 0 0.0
FLASH 1538087 1538087 0 0.0
IRAM 125403 125403 0 0.0
linux air-purifier-app debug unknown 4592 4592 0 0.0
FLASH 2529936 2529936 0 0.0
RAM 125072 125072 0 0.0
all-clusters-app debug unknown 5368 5368 0 0.0
FLASH 5590606 5590606 0 0.0
RAM 492176 492176 0 0.0
all-clusters-minimal-app debug unknown 5288 5288 0 0.0
FLASH 5061520 5061520 0 0.0
RAM 235488 235488 0 0.0
bridge-app debug unknown 5256 5256 0 0.0
FLASH 4478256 4478256 0 0.0
RAM 212744 212744 0 0.0
chip-tool debug unknown 5728 5728 0 0.0
FLASH 11769703 11769703 0 0.0
RAM 545946 545946 0 0.0
chip-tool-ipv6only arm64 unknown 20064 20064 0 0.0
FLASH 10882348 10882348 0 0.0
RAM 594728 594728 0 0.0
fabric-admin debug unknown 5616 5616 0 0.0
FLASH 10850375 10850375 0 0.0
RAM 542754 542754 0 0.0
fabric-bridge-app debug unknown 4528 4528 0 0.0
FLASH 4243776 4243776 0 0.0
RAM 198808 198808 0 0.0
lighting-app debug+rpc+ui unknown 5936 5936 0 0.0
FLASH 5382594 5382594 0 0.0
RAM 224096 224096 0 0.0
lock-app debug unknown 5192 5192 0 0.0
FLASH 4541600 4541600 0 0.0
RAM 200240 200240 0 0.0
ota-provider-app debug unknown 4576 4576 0 0.0
FLASH 4197648 4197648 0 0.0
RAM 194520 194520 0 0.0
ota-requestor-app debug unknown 4512 4512 0 0.0
FLASH 4323200 4323200 0 0.0
RAM 199176 199176 0 0.0
shell debug unknown 4112 4112 0 0.0
FLASH 2804925 2804925 0 0.0
RAM 153000 153000 0 0.0
thermostat-no-ble arm64 unknown 9144 9144 0 0.0
FLASH 4167996 4167996 0 0.0
RAM 235640 235640 0 0.0
tv-app debug unknown 5472 5472 0 0.0
FLASH 5605920 5626432 20512 0.4
RAM 341760 342080 320 0.1
tv-casting-app debug unknown 5096 5096 0 0.0
FLASH 9939582 9939582 0 0.0
RAM 402128 402128 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1502500 1502500 0 0.0
RAM 226640 226640 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 882448 882448 0 0.0
RAM 142109 142109 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 952948 952948 0 0.0
RAM 140537 140537 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 827984 827984 0 0.0
RAM 141023 141023 0 0.0
nxp contact k32w0+release FLASH 576028 576028 0 0.0
RAM 70004 70004 0 0.0
k32w1+release FLASH 591368 591368 0 0.0
RAM 74056 74056 0 0.0
light k32w0+release FLASH 610224 610224 0 0.0
RAM 69480 69480 0 0.0
k32w1+release FLASH 674968 674968 0 0.0
RAM 82816 82816 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1615252 1615252 0 0.0
RAM 209692 209692 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1536092 1536092 0 0.0
RAM 206580 206580 0 0.0
light cy8ckit_062s2_43012 FLASH 1462724 1462724 0 0.0
RAM 199852 199852 0 0.0
lock cy8ckit_062s2_43012 FLASH 1463236 1463236 0 0.0
RAM 224380 224380 0 0.0
qpg lighting-app qpg6105+debug FLASH 651244 651244 0 0.0
RAM 104560 104560 0 0.0
lock-app qpg6105+debug FLASH 611368 611368 0 0.0
RAM 99228 99228 0 0.0
stm32 light STM32WB5MM-DK FLASH 473576 473576 0 0.0
RAM 144204 144204 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 632734 632734 0 0.0
RAM 50424 50424 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 658574 658574 0 0.0
RAM 148296 148296 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 778900 778900 0 0.0
RAM 113116 113116 0 0.0
bridge-app tlsr9258a FLASH 675720 675720 0 0.0
RAM 95200 95200 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 634318 634318 0 0.0
RAM 50468 50468 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 720192 720192 0 0.0
RAM 77044 77044 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 613722 613722 0 0.0
RAM 144532 144532 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 801474 801474 0 0.0
RAM 102936 102936 0 0.0
lock-app-dfu tlsr9528a FLASH 665886 665886 0 0.0
RAM 69756 69756 0 0.0
ota-requestor-app tlsr9258a FLASH 695050 695050 0 0.0
RAM 94924 94924 0 0.0
pump-app tlsr9518adk80d FLASH 616582 616582 0 0.0
RAM 56848 56848 0 0.0
pump-controller-app tlsr9518adk80d FLASH 606966 606966 0 0.0
RAM 56648 56648 0 0.0
shell tlsr9518adk80d FLASH 466316 466316 0 0.0
RAM 72460 72460 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 640936 640936 0 0.0
RAM 52096 52096 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 650792 650792 0 0.0
RAM 60284 60284 0 0.0
thermostat tlsr9518adk80d FLASH 625856 625856 0 0.0
RAM 56980 56980 0 0.0
window-covering tlsr9118bdk40d FLASH 519116 519116 0 0.0
RAM 97696 97696 0 0.0
tizen all-clusters-app arm unknown 1584 1584 0 0.0
FLASH 1638592 1638592 0 0.0
RAM 48540 48540 0 0.0
chip-tool-ubsan arm unknown 2384 2384 0 0.0
FLASH 16235438 16235438 0 0.0
RAM 7138096 7138096 0 0.0

@lazarkov lazarkov deleted the rebase-test branch July 10, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.