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.ymlindex 3c1bd79a75..4710ae9154 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -63,6 +63,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -230,6 +231,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -312,6 +314,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -498,6 +501,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -592,6 +596,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -675,6 +680,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -844,6 +850,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5s@@ -982,6 +989,7 @@ jobs:ports:- 5432:5432options: >-+ --shm-size=1g--health-cmd pg_isready--health-interval 10s--health-timeout 5sdiff --git a/docker-compose.ci.yml b/docker-compose.ci.ymlindex 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: 1genvironment:POSTGRES_USER: postgresPOSTGRES_PASSWORD: postgres@@ -43,6 +44,7 @@ services:postgres-2:image: pgvector/pgvector:pg16+ shm_size: 1genvironment:POSTGRES_USER: postgresPOSTGRES_PASSWORD: postgres@@ -59,6 +61,7 @@ services:postgres-3:image: pgvector/pgvector:pg16+ shm_size: 1genvironment:POSTGRES_USER: postgresPOSTGRES_PASSWORD: postgres@@ -75,6 +78,7 @@ services:postgres-4:image: pgvector/pgvector:pg16+ shm_size: 1genvironment:POSTGRES_USER: postgresPOSTGRES_PASSWORD: postgresdiff --git a/scripts/ubicloud/setup-ci-vm.sh b/scripts/ubicloud/setup-ci-vm.shindex 3fe8f8f18d..4ef9de79a2 100755--- a/scripts/ubicloud/setup-ci-vm.sh+++ b/scripts/ubicloud/setup-ci-vm.sh@@ -101,7 +101,7 @@ fiinstall_systemsudo docker network create gbrain-ci >/dev/null 2>&1 || truefor 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