Skip to content

Commit 596b998

Browse files
linesightclaude
andcommitted
Add --disable-dev-shm-usage for Linux CI to fix shared memory failure
CI containers have a small /dev/shm; the renderer subprocess logs "Failed global descriptor lookup: 7" and CreateBrowserSync() returns None. --disable-dev-shm-usage tells Chrome to use /tmp instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b409173 commit 596b998

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
@@ -147,6 +147,9 @@ def test_main(self):
147147
# Sandbox setup (user-namespace) fails on CI runners; GPU process
148148
# also needs --no-sandbox to launch successfully under xvfb.
149149
switches["no-sandbox"] = ""
150+
# /dev/shm is too small in CI containers; renderer subprocess
151+
# fails shared-memory descriptor lookup (global descriptor 7).
152+
switches["disable-dev-shm-usage"] = ""
150153
cef.Initialize(settings, switches=switches)
151154
subtest_message("cef.Initialize() ok")
152155

unittests/osr_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def test_osr(self):
116116
# Sandbox setup fails on CI runners; subprocess won't launch
117117
# without this under xvfb even with --disable-gpu.
118118
switches["no-sandbox"] = ""
119+
# /dev/shm is too small in CI containers; renderer subprocess
120+
# fails shared-memory descriptor lookup (global descriptor 7).
121+
switches["disable-dev-shm-usage"] = ""
119122
browser_settings = {
120123
# Tweaking OSR performance (Issue #240)
121124
"windowless_frame_rate": 30, # Default frame rate in CEF is 30

0 commit comments

Comments
 (0)