Add PushAV Test script for persistence of CurrentConnections attribute.#43172
Add PushAV Test script for persistence of CurrentConnections attribute.#43172pidarped wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Code Review
The pull request introduces a new test script, TC_PAVST_2_14.py, to validate the persistence of the CurrentConnections attribute in the PushAVTransport cluster across device reboots. The test logic correctly covers allocation, reboot verification, deallocation, and subsequent reboot verification. However, there are several implementation issues in the Python script, specifically regarding incorrect handling of return values from helper functions and redundant attribute reads that should be addressed to ensure the test runs correctly and efficiently.
There was a problem hiding this comment.
Pull request overview
Adds a new Matter Python test case (TC_PAVST_2_14) to validate that the PushAV Stream Transport cluster’s CurrentConnections attribute persists across DUT reboots (and is cleared appropriately after deallocation).
Changes:
- Introduces
TC_PAVST_2_14test script covering allocate → reboot → verify persistence, then deallocate → reboot → verify cleared state. - Adds CI runner argument block for executing the test with the camera app.
|
PR #43172: Size comparison from 214f2d7 to 91dcd45 Full report (30 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, nrfconnect, psoc6, qpg, realtek, stm32, telink)
|
c5c29e4 to
5ce6828
Compare
|
PR #43172: Size comparison from 214f2d7 to 5ce6828 Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
cf72cc0 to
45e1723
Compare
|
PR #43172: Size comparison from 1be2abb to 45e1723 Full report (27 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32)
|
45e1723 to
84bc20e
Compare
|
PR #43172: Size comparison from 1be2abb to 84bc20e Full report (27 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32)
|
84bc20e to
01d7b8e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #43172 +/- ##
==========================================
- Coverage 54.89% 54.88% -0.01%
==========================================
Files 1619 1619
Lines 110385 110411 +26
Branches 13484 13494 +10
==========================================
+ Hits 60597 60604 +7
- Misses 49788 49807 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
PR #43172: Size comparison from d93b463 to 01d7b8e Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
You can also share your feedback on Copilot code review. Take the survey.
|
PR #43172: Size comparison from d93b463 to e3a09cd Full report (34 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
| current_connections = await self.read_pavst_attribute_expect_success(endpoint, pavst_attributes.CurrentConnections) | ||
| asserts.assert_equal(len(current_connections), 1, "CurrentConnections list should have 1 entry after reboot") | ||
| asserts.assert_equal(current_connections[0].connectionID, aConnectionID, "ConnectionID does not match after reboot") |
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
cf104bf to
92411d5
Compare
|
PR #43172: Size comparison from 0844858 to 92411d5 Full report (33 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
|
Summary
Add TC_PAVST_2_14 as a persistence test for CurrentConnections attribute in PushAVTransport cluster.
Testing
Readability checklist
The checklist below will help the reviewer finish PR review in time and keep the
code readable:
descriptive
“When in Rome…”
rule (coding style)
See: Pull Request Guidelines