Commit c2616e2
authored
ci: bump Node heap to 4 GB for sdk-generation pyright step (#43)
The Generate workflow has been OOM-crashing on the v2025-11-15 SDKs:
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation
failed - JavaScript heap out of memory
Diagnosis (run 26171584374):
- Speakeasy CLI's Compile SDK step invokes `uv run python -m pyright`
on each generated SDK.
- Pyright is a Node.js application. On the v2025-11-15 embedded SDK,
pyright's peak RSS is ~3.77 GB (measured locally).
- The Generate runner's default Node max-old-space-size is ~2 GB, so
pyright OOMs before completing.
Reproduced locally:
NODE_OPTIONS=--max-old-space-size=2048 → identical OOM
NODE_OPTIONS=--max-old-space-size=4096 → pyright passes (0 errors)
Pass NODE_OPTIONS via `cli_environment_variables` (the
`Gusto/sdk-generation-action` reusable workflow propagates these into
the Speakeasy CLI's process env, which pyright inherits via
uv → python → node).1 parent ef73ff2 commit c2616e2
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| |||
0 commit comments