Skip to content

Commit 72a16c0

Browse files
linesightclaude
andcommitted
Fix macOS CI tests: add no-sandbox and in-process-gpu switches
Child processes (GPU, renderer, network service) crash on macOS CI runners with "No rendezvous client" because the macOS sandbox blocks bootstrap_look_up for the Mach port rendezvous server. Add no-sandbox, in-process-gpu, and disable-gpu{,-compositing} for MAC, mirroring the existing LINUX block. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8c9b1b2 commit 72a16c0

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

unittests/main_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ def test_main(self):
158158
# OnContextInitialized from firing and browser creation fails.
159159
switches["in-process-gpu"] = ""
160160
switches["no-zygote"] = ""
161+
if MAC:
162+
# Mach port rendezvous (IPC) fails for child processes on CI
163+
# runners because the macOS sandbox blocks bootstrap_look_up.
164+
switches["no-sandbox"] = ""
165+
switches["disable-gpu"] = ""
166+
switches["disable-gpu-compositing"] = ""
167+
switches["in-process-gpu"] = ""
161168
cef.Initialize(settings, switches=switches)
162169
subtest_message("cef.Initialize() ok")
163170

unittests/osr_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ def test_osr(self):
124124
# OnContextInitialized from firing.
125125
switches["in-process-gpu"] = ""
126126
switches["no-zygote"] = ""
127+
if MAC:
128+
# Mach port rendezvous (IPC) fails for child processes on CI
129+
# runners because the macOS sandbox blocks bootstrap_look_up.
130+
switches["no-sandbox"] = ""
131+
switches["in-process-gpu"] = ""
127132
browser_settings = {
128133
# Tweaking OSR performance (Issue #240)
129134
"windowless_frame_rate": 30, # Default frame rate in CEF is 30

0 commit comments

Comments
 (0)