Skip to content

Commit 89f54a0

Browse files
linesightclaude
andcommitted
Re-add utility service in-process flags for Linux CI
With --in-process-gpu and --single-process, the GPU and renderer no longer spawn subprocesses. However StorageServiceOutOfProcess and the network service utility processes still spawn and fail the global descriptor lookup (key 7) because CEF 146 does not pass the Mojo bootstrap fd to subprocesses in --no-sandbox mode, causing CreateBrowserSync() to block ~60s and return None. Add --disable-features=StorageServiceOutOfProcess so the storage service runs in the browser process, and --enable-features= NetworkServiceInProcess so the network service does the same. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 36a45c1 commit 89f54a0

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

unittests/main_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ def test_main(self):
162162
# CreateBrowserSync() returns None.
163163
switches["single-process"] = ""
164164
switches["no-zygote"] = ""
165+
# Run utility services in-process so they don't need the Mojo
166+
# bootstrap fd (global descriptor 7) that CEF 146 does not pass
167+
# to subprocesses in --no-sandbox mode on Linux CI.
168+
switches["disable-features"] = "StorageServiceOutOfProcess"
169+
switches["enable-features"] = "NetworkServiceInProcess"
165170
cef.Initialize(settings, switches=switches)
166171
subtest_message("cef.Initialize() ok")
167172

unittests/osr_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@ def test_osr(self):
128128
# CreateBrowserSync() returns None.
129129
switches["single-process"] = ""
130130
switches["no-zygote"] = ""
131+
# Run utility services in-process so they don't need the Mojo
132+
# bootstrap fd (global descriptor 7) that CEF 146 does not pass
133+
# to subprocesses in --no-sandbox mode on Linux CI.
134+
switches["disable-features"] = "StorageServiceOutOfProcess"
135+
switches["enable-features"] = "NetworkServiceInProcess"
131136
browser_settings = {
132137
# Tweaking OSR performance (Issue #240)
133138
"windowless_frame_rate": 30, # Default frame rate in CEF is 30

0 commit comments

Comments
 (0)