Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

ci: give CI Postgres containers a 1 GiB /dev/shm so a parallel HNSW build's 64 MiB DSM segment fits (gate failed with 53100 No space left on device at Docker's 64 MiB default)

garrytan70fac24f2cb8
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 3c1bd79a75..4710ae9154 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -63,6 +63,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -230,6 +231,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -312,6 +314,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -498,6 +501,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -592,6 +596,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -675,6 +680,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -844,6 +850,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
@@ -982,6 +989,7 @@ jobs:
ports:
- 5432:5432
options: >-
+ --shm-size=1g
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml
index dfd114a9c3..01605481a5 100644
--- a/docker-compose.ci.yml
+++ b/docker-compose.ci.yml
@@ -27,6 +27,7 @@
services:
postgres-1:
image: pgvector/pgvector:pg16
+ shm_size: 1g
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
@@ -43,6 +44,7 @@ services:
postgres-2:
image: pgvector/pgvector:pg16
+ shm_size: 1g
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
@@ -59,6 +61,7 @@ services:
postgres-3:
image: pgvector/pgvector:pg16
+ shm_size: 1g
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
@@ -75,6 +78,7 @@ services:
postgres-4:
image: pgvector/pgvector:pg16
+ shm_size: 1g
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
diff --git a/scripts/ubicloud/setup-ci-vm.sh b/scripts/ubicloud/setup-ci-vm.sh
index 3fe8f8f18d..4ef9de79a2 100755
--- a/scripts/ubicloud/setup-ci-vm.sh
+++ b/scripts/ubicloud/setup-ci-vm.sh
@@ -101,7 +101,7 @@ fi
install_system
sudo docker network create gbrain-ci >/dev/null 2>&1 || true
for i in $(seq 1 "$SLOTS"); do
- sudo docker run -d --name "pg-$i" --network gbrain-ci \
+ sudo docker run -d --name "pg-$i" --network gbrain-ci --shm-size=1g \
-p "127.0.0.1:$((15432 + i)):5432" \
-e POSTGRES_USER=postgres -e POSTGRES_PASSWORD="$PG_PASSWORD" -e POSTGRES_DB=gbrain_test \
"$PG_IMAGE" -c fsync=off -c synchronous_commit=off -c full_page_writes=off >/dev/null