-
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
Update KVS to handle zero length elements #21977
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.
Approve as platform-change, however I wonder if this is actually a minimal delta - more changes seem to be contained here than just the KVS update.
This was necessary for updating the test example for persistent storage. I can remove those changes if that example is not needed anymore. |
PR #21977: Size comparison from fc45b77 to 07ddad4 Increases (8 builds for cc13x2_26x2, nrfconnect)
Decreases (8 builds for bl602, cc13x2_26x2, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
PR #21977: Size comparison from fc45b77 to 3a1dde0 Increases above 0.2%:
Increases (16 builds for cc13x2_26x2, esp32, linux, nrfconnect)
Decreases (10 builds for cc13x2_26x2, esp32, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
PR #21977: Size comparison from 1ea6bbe to 79ae854 Increases (7 builds for cc13x2_26x2, telink)
Decreases (8 builds for cc13x2_26x2, nrfconnect)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
PR #21977: Size comparison from 67d6821 to df379ea Increases (13 builds for bl602, cc13x2_26x2, esp32, nrfconnect, psoc6, telink)
Decreases (9 builds for cc13x2_26x2, cyw30739, psoc6)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
PR #21977: Size comparison from 6ca1f85 to c8ef977 Increases (7 builds for cc13x2_26x2, esp32)
Decreases (11 builds for cc13x2_26x2, cyw30739, psoc6, telink)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
PR #21977: Size comparison from b85c5ec to c5bddd4 Increases (10 builds for cc13x2_26x2, psoc6, telink)
Decreases (11 builds for bl602, cc13x2_26x2, nrfconnect, psoc6)
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
* allow for nullptr in KVS write * complete audit with chip_support_enable_storage_api_audit=true
PR #21977: Size comparison from f68b948 to c785fde Increases (9 builds for cc13x2_26x2, psoc6, telink)
Decreases (13 builds for bl602, cc13x2_26x2, cyw30739, esp32, psoc6, telink)
Full report (32 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, telink)
|
1.0 justification: platform-specific fix to pass tests (in this case storage audit) |
* allow for nullptr in KVS write * complete audit with chip_support_enable_storage_api_audit=true
* allow for nullptr in KVS write * complete audit with chip_support_enable_storage_api_audit=true Co-authored-by: Seth Rickard <[email protected]>
* allow for nullptr in KVS write * complete audit with chip_support_enable_storage_api_audit=true
Problem
fixes #21912
Fix the CC13X2_26X2 KVS implementation to allow for zero length values.
Change overview
If a key item exists without a value item, we now assume that the value is a zero length element. The read/write/delete functions have been updated to reflect this new assumption. The KVS interfaces have been updated to not reject values of zero length.
The persistent-storage example has been updated with a new test for binary values of zero length.
Testing
the persistent-storage application was run and produced passing results.