-
Notifications
You must be signed in to change notification settings - Fork 7.4k
tests: bsim: bluetooth: mesh: Remove TinyCrypt bsim tests #90208
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
tests: bsim: bluetooth: mesh: Remove TinyCrypt bsim tests #90208
Conversation
6aa2327
to
5e78f0a
Compare
If you want to test the low latency feature of Controller, please, implement bsim tests for Controller. Mesh is not correct place for testing this feature. |
Could you show me where I added a new test for low latency feature in this PR? |
5e78f0a
to
f6b500e
Compare
f6b500e
to
6f2a6be
Compare
here: 3d813ab all tests those are run with the low latency feature except transport and friendship are unnecessary |
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.
Testing of the low latency feature should go to ZLL bsim tests.
I disagree with this. This should be discussed separately. This PR is not about low latency feature at all. |
This PR increases test scope on unnecessary manner. It should be done correctly. I will not approve such approach. |
It doesn't if you see the final diff except legacyt advertiser tests, same as yours. |
This is a preparation for switching to PSA. |
It is why it should be done properly. |
I guess it is worth to split removing Tinycrypt and refactoring the low latency feature usage in different PRs to not block Tinycrypt deprecation procedure by not related discussion. |
6f2a6be
to
92ff351
Compare
Yes, therefore I swithed low latency tests to PSA as well, so the scope doesn't change (except legacy advertiser tests w/o low lat feature). |
92ff351
to
325c890
Compare
After adding legacy advertiser tests w/o low latency feature, all these tests with the low latency became obsolete and should be removed. |
It is possible to simply create some light-weight advertiser test by calling host's advertiser APIs and test low latency using that. |
Different topic. |
# Enable tinycrypt as a crypto backend | ||
CONFIG_BT_MESH_USES_TINYCRYPT=y | ||
# Increase the number of key slots in PSA Crypto core | ||
CONFIG_MBEDTLS_PSA_KEY_SLOT_COUNT=64 |
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.
Side note: We will have to write recommendation on how to compute this number. When people start changing Netkey/Appkey indices this number will change, and unfortunately Kconfig parser does not do mathematical operations.
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.
Unfortunately, static key slot allocation is available only here. Our Zephyr fork doesn't support it at the moment since different mbedTLS backend. They are allocated from heap.
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.
This looks ok to me. It will nice if we can take the low latency tests as a seperate discussion or PR, and let developers who want these tests to update them or refactor them to be not dependent on mesh.
I already suggested moving these changes to different PR and continue discussion there. This is not correct to push these changes here motivating by Tinycrypt deprecation importance. |
This is a preparation commit for switching all bsim tests to PSA as TinyCrypt will be removed soon. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
325c890
to
05b6708
Compare
Removed tests for legacy advertiser. Kept low latency tests. |
6cb411d
to
6b76107
Compare
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.
It looks much better but still requires minor fixes. Please take a look at my comments.
tests/bsim/bluetooth/mesh/compile.sh
Outdated
@@ -15,24 +15,16 @@ app=tests/bsim/bluetooth/mesh conf_overlay=overlay_pst.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_gatt.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_gatt_separate.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_low_lat.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_psa.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_workq_sys.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_multi_adv_sets.conf compile | |||
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_lpn_scan_on.conf compile | |||
app=tests/bsim/bluetooth/mesh \ |
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.
I guess this line should be removed too. It doesn't throw error only because line 22 is empty.
@@ -15,3 +15,6 @@ CONFIG_BT_MESH_SEQ_STORE_RATE=1 | |||
CONFIG_BT_MESH_RPL_STORE_TIMEOUT=1 | |||
CONFIG_BT_MESH_STORE_TIMEOUT=1 | |||
CONFIG_BT_MESH_COMP_PST_BUF_SIZE=600 | |||
|
|||
# Required for PSA | |||
CONFIG_SECURE_STORAGE=y |
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.
Please fix commit message:
- merging `overlay_ss.conf` into `overlay_pst.conf` as secure storage is
required for running persistent storage bsim tests with PSA;
6b76107
to
6b9d10f
Compare
As TinyCrypt gets deprecated, we need to remove all bsim tests that use it. This commit switches all Bluetooth mesh bsim tests to PSA as a default crypto backend. This includes: - removing `CONFIG_BT_MESH_USES_TINYCRYPT` as PSA is default crypto backend for mesh. `CONFIG_BT_MESH_USES_MBEDTLS_PSA` is not required to be enabled; - merging `overlay_psa.conf` into `prj.conf` as this configuration becomes default for all mesh bsim tests; - merging `overlay_ss.conf` into `overlay_pst.conf` as secure storage is required for running persistent storage bsim tests with PSA; Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
6b9d10f
to
340c91d
Compare
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
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.
From my POV I don't see any issue, so this can be considered a +1.
I do not know if you guys want any more reviews from the mesh side though.
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.
+1
This PR removes TinyCrypt Bluetooth mesh bsim tests.