Skip to content

Commit 378263a

Browse files
linesightclaude
andcommitted
Fix macOS CI: run network service in-process to avoid Mach port rendezvous failures
Mirror the Linux CI fix (NetworkServiceInProcess / StorageServiceOutOfProcess) on macOS: the network utility subprocess cannot look up MachPortRendezvousServer on CI runners, causing an infinite crash-restart loop. Running it inside the browser process eliminates the subprocess spawn and the rendezvous lookup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 370784d commit 378263a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

unittests/main_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ def test_main(self):
188188
# Prevent macOS keychain authorization prompts during init
189189
# (matches CEF's own test infrastructure on macOS).
190190
switches["use-mock-keychain"] = ""
191+
# Run network service in-process to avoid Mach port rendezvous
192+
# failures for utility subprocesses on macOS CI runners.
193+
switches["disable-features"] = "StorageServiceOutOfProcess"
194+
switches["enable-features"] = "NetworkServiceInProcess"
191195
cef.Initialize(settings, switches=switches)
192196
subtest_message("cef.Initialize() ok")
193197

unittests/osr_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ def test_osr(self):
146146
# Prevent macOS keychain authorization prompts during init
147147
# (matches CEF's own test infrastructure on macOS).
148148
switches["use-mock-keychain"] = ""
149+
# Run network service in-process to avoid Mach port rendezvous
150+
# failures for utility subprocesses on macOS CI runners.
151+
switches["disable-features"] = "StorageServiceOutOfProcess"
152+
switches["enable-features"] = "NetworkServiceInProcess"
149153
browser_settings = {
150154
# Tweaking OSR performance (Issue #240)
151155
"windowless_frame_rate": 30, # Default frame rate in CEF is 30

0 commit comments

Comments
 (0)