Skip to content

Commit 30bb0da

Browse files
committed
ci: downsize pg/integration/ai test tiers from 4vcpu to 2vcpu
1 parent 72f5ac4 commit 30bb0da

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/run-tests.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
# =========================================================================
144144
pg-tests:
145145
needs: build
146-
runs-on: blacksmith-4vcpu-ubuntu-2404
146+
runs-on: blacksmith-2vcpu-ubuntu-2404
147147
timeout-minutes: 15
148148
strategy:
149149
fail-fast: false
@@ -194,6 +194,9 @@ jobs:
194194
PGPORT: 5432
195195
PGUSER: postgres
196196
PGPASSWORD: password
197+
# Pin an explicit heap cap: on smaller runners Node's memory-derived
198+
# default can land near ~2GB and OOM Jest.
199+
NODE_OPTIONS: '--max-old-space-size=4096'
197200

198201
services:
199202
pg_db:
@@ -259,7 +262,7 @@ jobs:
259262
# =========================================================================
260263
integration-tests:
261264
needs: build
262-
runs-on: blacksmith-4vcpu-ubuntu-2404
265+
runs-on: blacksmith-2vcpu-ubuntu-2404
263266
timeout-minutes: 15
264267
strategy:
265268
fail-fast: false
@@ -296,6 +299,9 @@ jobs:
296299
AWS_ACCESS_KEY: minioadmin
297300
AWS_SECRET_KEY: minioadmin
298301
AWS_REGION: us-east-1
302+
# Pin an explicit heap cap: on smaller runners Node's memory-derived
303+
# default can land near ~2GB and OOM Jest.
304+
NODE_OPTIONS: '--max-old-space-size=4096'
299305

300306
services:
301307
pg_db:
@@ -375,7 +381,7 @@ jobs:
375381
# =========================================================================
376382
ai-tests:
377383
needs: build
378-
runs-on: blacksmith-4vcpu-ubuntu-2404
384+
runs-on: blacksmith-2vcpu-ubuntu-2404
379385
timeout-minutes: 15
380386
strategy:
381387
fail-fast: false
@@ -389,6 +395,9 @@ jobs:
389395
PGPORT: 5432
390396
PGUSER: postgres
391397
PGPASSWORD: password
398+
# Pin an explicit heap cap: on smaller runners Node's memory-derived
399+
# default can land near ~2GB and OOM Jest.
400+
NODE_OPTIONS: '--max-old-space-size=4096'
392401

393402
services:
394403
pg_db:

0 commit comments

Comments
 (0)