Improve room retention, moderation and local browser access
Add opt-in bounded chat history, persist explicit room ACL roles, enforce full-key bans and per-user quotas, and provide versioned information-board reads plus an ESP32 local room page. Preserve stored evidence on faults and withhold room delivery acknowledgments when a Companion cannot retain the message. Exercise production handlers and filesystem fault recovery, pinned official-app JavaScript, real Chromium interactions, and representative ESP32, nRF52, RP2040 and STM32 builds. Add regression suites and bounded browser-workspace RAM reservations to CI.
This commit is contained in:
1 parent
b6b6b4eaaa
commit
74bc91bf69
61 files changed
+6993
-91
No files matched your search
@@ -156,6 +156,19 @@ class FirmwareRamTest(unittest.TestCase):
|
||||
self.assertEqual(local["components"]["browser_terminal_session"], 2048)
|
||||
self.assertEqual(local["components"]["browser_terminal_scrollback"], 4096)
|
||||
|
||||
def test_room_browser_workspaces_are_bounded_and_only_budgeted_on_eligible_rooms(self):
|
||||
flags = {"ADMIN_PASSWORD": "test"}
|
||||
enabled = ram.requirements("ESP32_PLATFORM", flags, "v4_room_server")
|
||||
disabled = ram.requirements("ESP32_PLATFORM", {**flags, "WEBCONFIG_DISABLED": 1}, "v4_room_server")
|
||||
self.assertEqual(enabled["components"]["room_browser_mailbox"], 6656 + 16)
|
||||
self.assertEqual(enabled["components"]["room_browser_request_workspace"], 8192 + 2048 + 16)
|
||||
self.assertGreaterEqual(enabled["required_contiguous_bytes"], 8192)
|
||||
for policy in (disabled, ram.requirements("ESP32_PLATFORM", flags, "v4_repeater"),
|
||||
ram.requirements("ESP32_PLATFORM", flags, "v4_companion"),
|
||||
ram.requirements("NRF52_PLATFORM", flags, "RAK_4631_room_server")):
|
||||
self.assertNotIn("room_browser_mailbox", policy["components"])
|
||||
self.assertNotIn("room_browser_request_workspace", policy["components"])
|
||||
|
||||
def test_longer_display_previews_reserve_heap_and_contiguous_history(self):
|
||||
defines = {"DISPLAY_CLASS": "SSD1306Display", "UI_SMALL_MESSAGE_FONT": 0}
|
||||
base = ram.requirements("ESP32_PLATFORM", defines, "v4_companion")
|
||||
|
||||
Reference in new issue
Block a user