-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Implement TC-SC-3.6 as a Python test #21719
Implement TC-SC-3.6 as a Python test #21719
Conversation
PR #21719: Size comparison from 34a8570 to 79c05c2 Increases (5 builds for bl602, cc13x2_26x2, k32w, telink)
Decreases (2 builds for cc13x2_26x2, esp32)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
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.
Requesting changes just so that I can get a chance to review this and auto-merge doesn't just merge it.
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.
LGTM.
src/controller/python/chip/utils/CommissioningBuildingBlocks.py
Outdated
Show resolved
Hide resolved
- Test TC-SC-3.6 was not feasible with chip-tool and manual intervention due to the complexity of validating that the correct sessions were established, establishing all of them, and ensuring all subscriptions fire as intended. This PR: - Adds a version of TC-SC-3.6 in Python - Updates the Python code with minor improvements needed during the development of the test - **Touches no C++ SDK code** Testing done: - Ran the test as it could be done by an end-user, passed on Linux and on ESP32 (after some changes to resources in the examples, not included in this PR) To run: - Build all-clusters app Linux: - `scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone chip_config_network_layer_ble=false` - In a shell, run: `clear && rm -f kvs1 && out/debug/standalone/chip-all-clusters-app --discriminator 2118 --KVS kvs1` - Build the Python environment, activate it, then run the test - `./scripts/build_python.sh -m platform -i separate` - `. ./out/python_env/bin/activate` - Run the test: `rm -f admin_storage.json && python src/python_testing/TC_SC_3_6.py -m on-network -d 2118 -p 20202021`
0ab0bc6
to
0de5681
Compare
PR #21719: Size comparison from 397d642 to 0de5681 Increases (1 build for cc13x2_26x2)
Decreases (5 builds for bl602, cc13x2_26x2, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
* Implement TC-SC-3.6 as a Python test - Test TC-SC-3.6 was not feasible with chip-tool and manual intervention due to the complexity of validating that the correct sessions were established, establishing all of them, and ensuring all subscriptions fire as intended. This PR: - Adds a version of TC-SC-3.6 in Python - Updates the Python code with minor improvements needed during the development of the test - **Touches no C++ SDK code** Testing done: - Ran the test as it could be done by an end-user, passed on Linux and on ESP32 (after some changes to resources in the examples, not included in this PR) To run: - Build all-clusters app Linux: - `scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone chip_config_network_layer_ble=false` - In a shell, run: `clear && rm -f kvs1 && out/debug/standalone/chip-all-clusters-app --discriminator 2118 --KVS kvs1` - Build the Python environment, activate it, then run the test - `./scripts/build_python.sh -m platform -i separate` - `. ./out/python_env/bin/activate` - Run the test: `rm -f admin_storage.json && python src/python_testing/TC_SC_3_6.py -m on-network -d 2118 -p 20202021` * Apply review comments
Problem
intervention due to the complexity of validating that the
correct sessions were established, establishing all of them,
and ensuring all subscriptions fire as intended.
Issue #21009
Change overview
the development of the test
Testing
and on ESP32 (after some changes to resources in the examples, not
included in this PR)
To run:
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug/standalone chip_config_network_layer_ble=false
clear && rm -f kvs1 && out/debug/standalone/chip-all-clusters-app --discriminator 2118 --KVS kvs1
./scripts/build_python.sh -m platform -i separate
. ./out/python_env/bin/activate
rm -f admin_storage.json && python src/python_testing/TC_SC_3_6.py -m on-network -d 2118 -p 20202021