From 1cb1e5bc69a91d948d135029c17c1d2596c12afa Mon Sep 17 00:00:00 2001 From: Pranav Malewadkar <7400617+pranavosu@users.noreply.github.com> Date: Thu, 2 Jul 2026 15:19:02 -0700 Subject: [PATCH] ci: fix TS canary failures --- .github/workflows/callable-ts-version-unit-test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/callable-ts-version-unit-test.yml b/.github/workflows/callable-ts-version-unit-test.yml index 852a27bf..b6aef908 100644 --- a/.github/workflows/callable-ts-version-unit-test.yml +++ b/.github/workflows/callable-ts-version-unit-test.yml @@ -36,4 +36,9 @@ jobs: force: true - name: Run tests working-directory: ./amplify-data + # Newer TypeScript compilers use more memory type-checking this repo's + # generic-heavy types via ts-jest, exceeding V8's default (~4GB) heap. + # Raise the limit so the canary reports real regressions, not OOMs. + env: + NODE_OPTIONS: --max-old-space-size=8192 run: yarn lint && yarn test