Keep ESP contact saves responsive on PSRAM boards
Extend the cooperative contact transaction to uncached ESP32 storage, including the PSRAM policy used by the XIAO and V4. Preserve owned contact copies, the 152-byte disk format, revision cancellation and synchronous durability operations. Keep contact capacities unchanged. Avoid SDK error logs when optional blob or transaction cleanup files are absent, while preserving metadata and deletion failure handling. Validate cached ESP/nRF and uncached PSRAM paths under ASan/UBSan, including bounded writes, mutation cancellation, faults, recovery and reboot readback. Update the existing uncached production fixture.
This commit is contained in:
1 parent
49a02f59d7
commit
acfcfb6008
12 files changed
+713
-175
No files matched your search
@@ -64,7 +64,7 @@ class ContactCacheTest(unittest.TestCase):
|
||||
helper_end = store.index("bool DataStore::readStoredPath(", helper_start)
|
||||
implementation = store[helper_start:helper_end]
|
||||
header = (ROOT / "examples/companion_radio/DataStore.h").read_text()
|
||||
state_start = header.index(" File _contact_path_reader;")
|
||||
state_start = header.index(" mesh::ContactFileTransaction* _contact_write")
|
||||
state_end = header.index("\n#endif", state_start)
|
||||
(temp / "contact_write_state_under_test.h").write_text(
|
||||
header[state_start:state_end])
|
||||
@@ -73,7 +73,7 @@ class ContactCacheTest(unittest.TestCase):
|
||||
functions.extend((
|
||||
"void DataStore::cancelContactWrite(",
|
||||
"bool DataStore::cancelCooperativeWrite(",
|
||||
"bool DataStore::serviceCachedContactWrite(",
|
||||
"bool DataStore::serviceContactWrite(",
|
||||
"bool DataStore::markContactDirty(",
|
||||
"bool DataStore::releaseContact(",
|
||||
"bool DataStore::serviceContactWrites(",
|
||||
|
||||
Reference in new issue
Block a user