openvibers/openvibe.link Commits

Desks: a first browser start in a cold sandbox gets 90 s (#94)

OP OpenVibers committed 11 days ago · f6f4268190 · 2 files, +2 −2

Changes

ddiff --git a/plugins/computer/openvibe_computer/browser.py b/plugins/computer/openvibe_computer/browser.py
iindex e30dd07..33e0947 100644
---- a/plugins/computer/openvibe_computer/browser.py
++++ b/plugins/computer/openvibe_computer/browser.py
@@@ -24,7 +24,7 @@ import threading
import time
MAX_TEXT = 20000
--STARTUP_S = 45.0
++STARTUP_S = 90.0 # a first start in a cold sandbox (CI runners took over 45 s on 2026-11-02)
MAX_LINKS = 60
MAX_ELEMENTS = 120
MAX_APPEARED = 8
ddiff --git a/plugins/computer/tests/test_shared_desks.py b/plugins/computer/tests/test_shared_desks.py
iindex 9d5af4d..40ef2b1 100644
---- a/plugins/computer/tests/test_shared_desks.py
++++ b/plugins/computer/tests/test_shared_desks.py
@@@ -189,7 +189,7 @@ class RealSharedDeskTest(unittest.TestCase):
n[0] += 1
cid = "r%d" % n[0]
rt.dispatch({"op": "command", "id": cid, "kind": kind, "value": value, "deadline_ms": 60000})
-- return out.wait_for(lambda m: m.get("id") == cid and m.get("op") in ("ack", "nack"), timeout=60)
++ return out.wait_for(lambda m: m.get("id") == cid and m.get("op") in ("ack", "nack"), timeout=120) # the browser gets STARTUP_S (90 s) for a first start
self.assertEqual(cmd("desk", {"action": "start", "desk": "desk-a", "kind": "browser", "width": 800, "height": 600})["op"], "ack")
try:
shot = cmd("screen", {"desk": "desk-a", "max_width": 400})