Deploy to the handset from the cluster
Deploy to the handset / build-and-deploy (push) Successful in 2m14s
CI / test (push) Failing after 2m41s

CI builds an arm64 image (compositor, host, chandra-remote, modules) and deploys
the updater pod that installs it on the phone. chandra-remote updates go in live
(SIGUSR2 restarts it in place); the compositor waits for an idle, locked phone or
an approval, and a locked session restarts locked. Host tests: the launcher no
longer draws its label in a narrow panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-11-29 16:34:12 -08:00
1 parent d2e00b4658
commit 2aa3de5741
14 files changed
+675 -2

No files matched your search

+22
View File
@@ -7,6 +7,7 @@ import json
import mmap
import os
import shutil
import signal
import socket
import struct
import subprocess
@@ -831,6 +832,27 @@ class RemoteTests(unittest.TestCase):
self.assertEqual(self.clip_request("POST", b"y", {**hdr, "Cookie": "chandra_remote=" + tok})[0], 200)
self.assertEqual(self.ctl.clips, [("text/plain", b"x"), ("text/plain", b"y")])
def test_09_sigusr2_restarts_in_place(self):
self.start_daemon(auth="none")
ws, status_line, _, _ = ws_connect("127.0.0.1", self.web_port)
self.assertIn("101", status_line)
ws.settimeout(5)
pid = self.proc.pid
self.proc.send_signal(signal.SIGUSR2)
while ws.recv(65536): # the client is let go, so it can reconnect
pass
ws.close()
deadline = time.time() + 5
while time.time() < deadline:
try:
if self.clip_request("GET")[0] == 200:
break
except OSError:
time.sleep(0.05)
self.assertIsNone(self.proc.poll())
self.assertEqual(self.proc.pid, pid)
self.assertEqual(self.clip_request("GET"), (200, {"ok": True, "serial": 0}))
if __name__ == "__main__":
unittest.main()