Skip to content

Commit 9f40f3b

Browse files
linesightclaude
andcommitted
Fix Linux CI: add --no-zygote to bypass zygote FD-passing failure
The zygote process fails to pass shared-memory file descriptors (global descriptor 7) to renderer subprocesses in GitHub Actions CI containers. --disable-dev-shm-usage alone doesn't help because the zygote's FD-passing mechanism runs before that flag is processed. --no-zygote makes CEF launch renderers directly from the browser process, bypassing the broken path entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 28f2bca commit 9f40f3b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

unittests/main_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ def test_main(self):
154154
# reduces startup time and avoids GPU process launch failures.
155155
switches["disable-gpu"] = ""
156156
switches["disable-gpu-compositing"] = ""
157+
# Zygote FD-passing fails in CI containers; launch renderers
158+
# directly from the browser process instead.
159+
switches["no-zygote"] = ""
157160
cef.Initialize(settings, switches=switches)
158161
subtest_message("cef.Initialize() ok")
159162

unittests/osr_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def test_osr(self):
119119
# /dev/shm is too small in CI containers; renderer subprocess
120120
# fails shared-memory descriptor lookup (global descriptor 7).
121121
switches["disable-dev-shm-usage"] = ""
122+
# Zygote FD-passing fails in CI containers; launch renderers
123+
# directly from the browser process instead.
124+
switches["no-zygote"] = ""
122125
browser_settings = {
123126
# Tweaking OSR performance (Issue #240)
124127
"windowless_frame_rate": 30, # Default frame rate in CEF is 30

0 commit comments

Comments
 (0)