Skip to content

Commit 6ff8464

Browse files
linesightclaude
andcommitted
Fix CI: resize /dev/shm and disable out-of-process storage service
GitHub Actions limits /dev/shm to 64 MB; Chromium 146's Mojo IPC bootstrap needs more shared memory, causing the storage utility subprocess to fail 'global descriptor lookup: 7'. Fix by remounting /dev/shm at 512 MB in the test job and adding --disable-features=StorageServiceOutOfProcess so the storage service runs in-process instead of as a subprocess. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 076f8dc commit 6ff8464

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci-linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ jobs:
126126
cp -r build/artifacts/. cefpython3/
127127
chmod +x cefpython3/subprocess
128128
129+
- name: Resize /dev/shm for Chromium shared memory
130+
run: sudo mount -o remount,size=512m /dev/shm
131+
129132
- name: Run unit tests
130133
run: xvfb-run python unittests/_test_runner.py
131134
env:

unittests/main_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ def test_main(self):
158158
# OnContextInitialized from firing and browser creation fails.
159159
switches["in-process-gpu"] = ""
160160
switches["no-zygote"] = ""
161+
# Run the storage service in-process so it doesn't need the
162+
# Mojo bootstrap FD (global descriptor 7) that fails in CI.
163+
switches["disable-features"] = "StorageServiceOutOfProcess"
161164
cef.Initialize(settings, switches=switches)
162165
subtest_message("cef.Initialize() ok")
163166

unittests/osr_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ def test_osr(self):
124124
# OnContextInitialized from firing.
125125
switches["in-process-gpu"] = ""
126126
switches["no-zygote"] = ""
127+
# Run the storage service in-process so it doesn't need the
128+
# Mojo bootstrap FD (global descriptor 7) that fails in CI.
129+
switches["disable-features"] = "StorageServiceOutOfProcess"
127130
browser_settings = {
128131
# Tweaking OSR performance (Issue #240)
129132
"windowless_frame_rate": 30, # Default frame rate in CEF is 30

0 commit comments

Comments
 (0)