From 9bfd11a36a2d3efa0b0ed1aa40c81c87b229b79f Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Wed, 14 Jan 2026 18:42:09 -0300 Subject: [PATCH] fix: increase type-check memory limit to 12GB (#26853) * fix: detect OOM errors in type-check CI workflow Turborepo has a known bug where tasks killed by signals (like OOM) are incorrectly marked as successful because the exit code is -1, and Turborepo takes max(-1, 0) = 0. This fix captures the type-check output and explicitly checks for OOM error patterns, failing the job if detected. See: https://github.com/vercel/turbo/issues/4227 Co-Authored-By: Volnei Munhoz * fix: increase type-check memory limit to 6144MB and add OOM detection Co-Authored-By: Volnei Munhoz * fix: increase type-check memory limit to 12GB Co-Authored-By: Volnei Munhoz --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/check-types.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml index dfccf1abaf..3028842537 100644 --- a/.github/workflows/check-types.yml +++ b/.github/workflows/check-types.yml @@ -2,7 +2,7 @@ name: Check types on: workflow_call: env: - NODE_OPTIONS: --max-old-space-size=4096 + NODE_OPTIONS: --max-old-space-size=12288 TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ secrets.TURBO_TEAM }} permissions: