-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Removing unneeded get_test_info call #39967
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
Removing unneeded get_test_info call #39967
Conversation
There was a problem hiding this 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 prevents an error by skipping a call to get_test_info
for CommissionDeviceTest
. The feedback suggests using is not
for comparing class types.
src/python_testing/matter_testing_infrastructure/chip/testing/runner.py
Outdated
Show resolved
Hide resolved
…runner.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
PR #39967: Size comparison from 6d5aa8c to 51fdb21 Full report (59 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
src/python_testing/matter_testing_infrastructure/chip/testing/runner.py
Outdated
Show resolved
Hide resolved
Hi @andy31415 and @jtrejoespinoza-grid Looking closer, I noticed the I tested removing it, and the code still behaves as expected. Do you see any issues with just removing this call? |
Not sufficiently familiar with this, but if you checked and our tests pass, we can remove |
I'll wait @jtrejoespinoza-grid 's feedback before proceeding with the change. |
Hi @rquidute regarding your comments I made some test by removing the line with the code : I re-built the python files again and the run some test with commissioning on-network with the Linux App and then commissioning ble-wifi with a M5 Stack flashed with Let me provide the information that I was able to gather. ![]() Then build python env:
Then load the env:
Run one test locally using commissioning on-network using the Linux app:
![]() Logs: Run one test using a device with commissioning ble-wifi:
![]() Logs : |
Thanks @jtrejoespinoza-grid |
PR #39967: Size comparison from 6d5aa8c to 336c36a Full report (59 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
CommissionDeviceTest
's get_test_info
calls
I think it's fine to remove this for now to unblock the TH. @jtrejoespinoza-grid - I think I didn't realize the commissioning device test was refactored to pull from the base rather than MatterBaseTest. Can you open up a follow up issue to fix this up? IMO it does make sense to have CommissioningDeviceTest derive from the MatterBase test. I think the circular include might need to be solved in the other direction. |
Hi @andy31415 do you have any remaining questions or concerns on this PR before it can be merged? |
* Add checking for CommissionDeviceTest inside runner.py run_tests_no_exit method * Update src/python_testing/matter_testing_infrastructure/chip/testing/runner.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Removed get_test_info call from run_tests_no_exit, since it seems not being used --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Summary
This PR removes the call
get_test_info(test_class, matter_test_config)
since it doesn't seem to be doing anything in this context.Related issues
project-chip/certification-tool#652
Testing
Running the following command successfully:
python3 /root/python_testing/scripts/sdk/TC_CADMIN_1_11.py --commissioning-method on-network --trace-to json:log --discriminator 3840 --passcode 20202021
Running using TH client successfully (Commissioning):
python3 /root/python_testing/scripts/sdk/matter_testing_infrastructure/chip/testing/test_harness_client.py commission --trace-to json:log --commissioning-method on-network --discriminator 3840 --passcode 20202021 --storage_path /root/python_testing/admin_storage2.json
Running using TH client successfully (Test Execution):
python3 /root/python_testing/scripts/sdk/matter_testing_infrastructure/chip/testing/test_harness_client.py sdk/TC_ACE_1_3 TC_ACE_1_3 --tests test_TC_ACE_1_3 --trace-to json:log --in-test-commissioning-method on-network --discriminator 3840 --passcode 20202021