mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-09 14:38:59 +02:00
fix(sandbox-doctor): bashrc block re-heals the /dev/shm remount on sandbox restart
The 4G remount does not survive restarts; a reverted 64M shm made the multi-tab browse handoff test fail consistently under suite concurrency (observed live: two consecutive full-run failures, green in isolation, green again after remounting). Same guarded arithmetic as the doctor body. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
b811d4c311
commit
29d32aa308
@@ -114,6 +114,10 @@ export GSTACK_FREE_RETRY_FLAKY=1
|
||||
export DISPLAY=:99
|
||||
[ -e /dev/fd ] || sudo -n ln -sfn /proc/self/fd /dev/fd 2>/dev/null || true
|
||||
[ -e /tmp/.X11-unix/X99 ] || (Xvfb :99 -screen 0 1280x800x24 >/dev/null 2>&1 &)
|
||||
# The 4G /dev/shm remount does not survive sandbox restarts; a 64M shm makes
|
||||
# concurrent Chromium (multi-tab browse tests) fail under suite load.
|
||||
shm_kb="$(df -k /dev/shm 2>/dev/null | awk 'NR==2 {print $2}')"
|
||||
[ "${shm_kb:-0}" -gt 0 ] && [ "$shm_kb" -lt 1048576 ] && sudo -n mount -o remount,size=4G /dev/shm 2>/dev/null || true
|
||||
EOF
|
||||
say 'seeded ~/.bashrc test env'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user